0

不幸的是,在 Firefox 更新 (64.0) 后,在具有 contenteditable 属性的 div 中调整大小和选择图像停止工作。我需要更改/添加标志或其他东西以使其正常工作吗?

示例代码:https ://codepen.io/danielpixelz/pen/PXGeaN

<div contenteditable="true" class="i-want-to-be-editable">
<img src="https://placehold.it/200x200">
</div>
4

1 回答 1

0

好的,问题解决了。现在默认禁用:https ://bugzilla.mozilla.org/show_bug.cgi?id=1449564

需要使用手动激活它

document.execCommand(enableObjectResizing, false, "true")

参考:https ://developer.mozilla.org/en-US/docs/Web/API/Document/execCommand

于 2018-12-18T12:58:31.693 回答