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.
我正在通过 javascipt 将 html 添加到 tinymce 编辑器。添加 html 后,我使用 tinymce 使用内置 html 验证器针对 valid_elements 验证添加的 html。我必须调用哪个 js 函数来运行验证?
它被称为 mceCleanup。你需要打电话
ed.execCommand('mceCleanup'); // ed is the editor instance you get calling tinymce.get('your_editor_id')