Examples of using the UPitor in the Vue project

The project generated by Vue-CLI as an example

1.static folder first placed in the UPitor file

2. Index.html Add the following code

       3.WebPack.Base.conf.js Added configuration 

Externals: {‘UE’: ‘UE’,},


WINDOW.UEDITOR_HOME_URL =” / static / ueditor / “; // Configure the path setting to the location placed in UEDITOR

  5.EDitor component    

 Const UE = Require ('UE'); // eslint-disable-lineexport default {name: 'editorview', data: () => ({editor: null,}), methods: {getEtEtETOR () {console.log (this.editor.getContent ()); },}, mouNted () {this.EDitor = ue.geteditor ('editor');}, destroyed () {this.EDitor.destroy ();},};   
In this Vue project, the example of instance using the UPitor is the full content of Xiaobian sharing, I hope I can give you a reference, I hope everyone will support Tumi Cloud.
© Copyright Notice
Just support it if you like
comment Grab the couch

Please log in to comment