A Pen by jiyoungPAK on CodePen.
Created
February 9, 2023 09:11
-
-
Save mojocn/af87d531b52b652d81f7586919e0c3df to your computer and use it in GitHub Desktop.
Vue2Editor Test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="app"> | |
<vue-editor v-model="content" :editorToolbar="customToolbar"> | |
</vue-editor> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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