Skip to content

Instantly share code, notes, and snippets.

@mojocn
Created February 9, 2023 09:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mojocn/af87d531b52b652d81f7586919e0c3df to your computer and use it in GitHub Desktop.
Save mojocn/af87d531b52b652d81f7586919e0c3df to your computer and use it in GitHub Desktop.
Vue2Editor Test
<div id="app">
<vue-editor v-model="content" :editorToolbar="customToolbar">
</vue-editor>
</div>
console.log(Vue)
// Tell Vue to use view-router
Vue.use(Vue2Editor)
const VueEditor = Vue2Editor.VueEditor
var vm = new Vue({
el: '#app',
data: {
content: '',
},
components: {VueEditor}
});
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.5.3/vue.min.js"></script>
<script src="https://unpkg.com/vue2-editor@2.3.11/dist/index.js"></script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment