问题描述
下面的函数在tinymce执行任何命令之前执行。我使用了设置配置选项。
setup: function(editor) {
editor.on("BeforeExecCommand",editorBeforeExecCommandEventHandler);
}
我想在插入编辑器之前用 包裹要插入编辑器的任何表格元素。我如何创建该功能
function editorBeforeExecCommandEventHandler (event) {
const command = event.command;
if (command === "mceInsertContent") {
// Wrap content in a div if is a table before it is inserted
}
}
我希望我的问题被理解
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)