1.0.7 • Published 3 years ago
jeeyor-editor v1.0.7
jeeyor-editor
富文本编辑
<jeeyor-editor :options="options" v-model="text"> </jeeyor-editor>
export default { components: {jeeyorEditor}, data() { return { text: '', options: { placeholder: '请输入内容...', modules: { toolbar: [ [{'header': [false, 1, 2, 3, 4, 5, 6]}], ['bold', 'italic', 'underline', 'strike'], // toggled buttons [{'align': ['', 'center', 'right', 'justify']}], [{'list': 'ordered'}, {'list': 'bullet'}], [{'script': 'sub'}, {'script': 'super'}], // superscript/subscript [{'indent': '-1'}, {'indent': '+1'}], // outdent/indent [{'color': []}, {'background': []}] // dropdown with defaults from theme ] } } } } }