标签: dart rich-text-editor dart-html
截至Dart M8,Element.document字段已被删除。在富编辑器中(如在Chris Buckett's editor example中),我们过去常常将某些文本的权重更改为粗体:
Element.document
var el = query("#editme"); el.contentEditable = "true"; el.document.execCommand("bold",true,"");
如何在execCommand属性设置为true的元素上调用contenteditable?
execCommand
contenteditable
答案 0 :(得分:1)
Node.document已重命名为Node.ownerDocument