0
我在页面上有一个dijit.Editor
。
如果我输入“example”并应用bold
功能,它将看起来像“示例”。我从编辑得到的文字是<b>example</br>
。
但是,如果我想将粗体文本添加到编辑器并将内容设置为<b>example</br>
,我可以在编辑器字段中看到'example',而不是示例。
我试图通过如何解析HTML标记到dijit.Editor中的文本功能?
new dijit.Editor({
content: this.text
});
和
editor.execCommand("inserthtml", this.text);
有没有什么办法让dijit.Editor
解析所有这些标记文本功能设置文本?
你如何设定内容? – Marius
对不起,忘了放代码。检查问题。 – Chechulin
据我所知有编辑.set(“价值”,“示例”),你正在使用的dojo版本? – Marius