Tinymce + vue 配置与数据回显

每天使用csdn解决问题,也想为社区做个贡献

使用版本:

  "dependencies": {
    "@interactjs/actions": "1.10.2",
    "@interactjs/auto-scroll": "1.10.2",
    "@interactjs/auto-start": "1.10.2",
    "@interactjs/dev-tools": "1.10.2",
    "@interactjs/interactjs": "1.10.2",
    "@interactjs/modifiers": "1.10.2",
    "@tinymce/tinymce-vue": "^3.2.8",
    "@wiris/mathtype-tinymce5": "^8.2.6",
    "element-resize-detector": "^1.2.1",
    "element-ui": "^2.15.13",
    "html2canvas": "^1.4.1",
    "jquery": "^3.6.4",
    "jspdf": "^2.5.1",
    "print-js": "^1.6.0",
    "tinymce": "^5.10.4",
    "vuex": "^3.6.2"
  },

回显代码:

import Editor from "./ImcoderTinymce";
  components: {
    Editor
  },
Editor.get('tinymceTxt').setContent(temForm[field_name])

自定义的ImcoderTinymce:



   
  
  

一定要在public文件夹将node_model下的tinymce复制过来:

Tinymce + vue 配置与数据回显_第1张图片

 

你可能感兴趣的:(vue.js,javascript,前端)