Ueditor for Vue

1098 단어 vue.js
1:vue 3+에 서 는 보통 vue-ueditor-wrap 을 사용 합 니 다.
1.1:       ueditor        public    

2:ueditor.config.js 변경
2.1:window.UEDITOR_HOME_URL = "ueditor      "
2.2:    serverUrl   

3:vue-ueditor-wrap 를 도입 하여 전역 구성 요소 main.js 로 등록 합 니 다.
3.1:import VueUeditorWrap from 'vue-ueditor-wrap'
3.2:Vue.component('VueUeditorWrap',VueUeditorWrap)
3.3:                
`export default {
   data () {
   return {
    // someTing: “hahahahahha”,
    value: “     vue-ueditor-wrap   ”,
    myConfig: {
      //            
      autoHeightEnabled: false,
      //       
      initialFrameHeight: 600,
      //       
      initialFrameWidth: “100%”,
      //       (                           ,         !!!)
      serverUrl: “      ”,
      // UEditor          ,        vue-cli      ,          ,vue-ueditor-wrap           ,        ,         2
      UEDITOR_HOME_URL: “/UE/”
    }}

} }`
4:오류 가 발생 하지 않 으 면 ueditor 전체 페이지 가 나 와 야 합 니 다.

좋은 웹페이지 즐겨찾기