tinymce插入内容之后禁止撤销或者前进操作

1. undoManager.clear()  在插入内容之后执行编辑器该方法即可

  ;(this.$refs.editor as any).editor.editorManager.get((this.$refs.editor as any).editor.id).undoManager.clear()
2. .resetContent()  重置编辑器内容
  ;(this.$refs.editor as any).editor.editorManager.get((this.$refs.editor as any).editor.id).resetContent(HTMLStr)  执行该方法后编辑器焦点到首行开始位置
原文地址:https://www.cnblogs.com/daijing/p/13646654.html