문제

As of Dart M8 the Element.document field has been removed. In a rich editor (as in Chris Buckett's editor example) we used to do the following for changing the weight of some text to bold:

var el = query("#editme");
el.contentEditable = "true";
el.document.execCommand("bold",true,"");

How do you call execCommand on a element with the contenteditable attribute set to true?

도움이 되었습니까?

해결책

Node.document was renamed to Node.ownerDocument

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top