获取tinyMCE的内容?

use*_*021 2 javascript tinymce

我有一个 ID 为“文章”的文本区域。

这是我的js中的内容:

tinyMCE.init({
        theme : "advanced",
        mode : "textareas",
        plugins : "fullpage",
        theme_advanced_buttons3_add : "fullpage"
    });
Run Code Online (Sandbox Code Playgroud)

并获取编辑器的内容:

var content = tinyMCE.get('article').getContent();
    alert(content);
Run Code Online (Sandbox Code Playgroud)

但它似乎不起作用,我哪里出错了?

小智 5

tinyMCE.activeEditor.getContent()
Run Code Online (Sandbox Code Playgroud)