2

我正在通过 javascipt 将 html 添加到 tinymce 编辑器。添加 html 后,我使用 tinymce 使用内置 html 验证器针对 valid_elements 验证添加的 html。我必须调用哪个 js 函数来运行验证?

4

1 回答 1

1

它被称为 mceCleanup。你需要打电话

ed.execCommand('mceCleanup'); // ed is the editor instance you get calling tinymce.get('your_editor_id')
于 2012-06-19T14:11:15.120 回答