Javascript 通过HTML设置TinyMCE文本区域的内容

Javascript 通过HTML设置TinyMCE文本区域的内容,javascript,jquery,html,tinymce,tinymce-4,Javascript,Jquery,Html,Tinymce,Tinymce 4,要设置TinyMCE textarea的内容,我们在JavaScript中使用以下代码: tinymce.activeEditor.selection.setContent('<strong>Some contents</strong>'); tinymce.activeEditor.selection.setContent(“某些内容””); 但是,如果没有JavaScript,我如何通过html设置内容??我试着用 <textarea>Some Con

要设置TinyMCE textarea的内容,我们在JavaScript中使用以下代码:

tinymce.activeEditor.selection.setContent('<strong>Some contents</strong>');
tinymce.activeEditor.selection.setContent(“某些内容””);
但是,如果没有JavaScript,我如何通过html设置内容??我试着用

<textarea>Some Contents</textarea>
一些内容

但这是行不通的。如果您这样定义TinyMCE,请感谢:

tinymce.init({selector:'textarea'});
该代码应该满足您的需要:

<textarea>Some Contents</textarea>
一些内容

这里的例子:

太好了。对于特定的TinyMCE textarea,我可以使用:
TinyMCE.init({selector:'#myid'})完全正确。但请确保您在textarea
上有该id是的,非常感谢