我一直在尝试将我的 tinyMCE 文本编辑器中的表格粘贴到 SpreadJS。我正在使用自定义剪贴板而不是默认剪贴板进行此操作,并且在复制时,来自 tinyMCE 的表值(文本,html)也成功传递到 SpreadJS 剪贴板。但是当我尝试将它粘贴到 SpreadJS 中时,只有文本出现在单元格中。有什么办法可以完成吗?下面是我正在使用的自定义粘贴功能。
spread.commandManager().register('custompastefunction', {
canUndo: true,
execute: (context, options, isUndo) => {
//setting the contents copied from tinymce to spreadJS clipboard here.
designer.actions.doAction("paste", spread, 0 /* All */);
}
}
});