Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我试过这个:
tinymce.activeEditor.setContent("<b>This</b> is <u>my</u> first example.", {format: 'text'});
但是,它仍然是作为 HTML 内容输入的。我没有发现错误。
你错过了“.selection”:
tinymce.activeEditor.selection.setContent("<b>This</b> is <u>my</u> first example.", {format: 'text'});