【发布时间】:2020-09-15 09:48:28
【问题描述】:
Vue 组件
<ckeditor :editor="classiceditor" v-model="report_notes" :config="editorConfig" @blur="editReportNotes()" @keyup.enter="editReportNotes()"></ckeditor>
vuejs 代码
classiceditor:ClassicEditor,
editorConfig: {
// plugins: [ Underline],
toolbar: {
items: [
'bold','italic',
'|','link',
'|','bulletedList', 'numberedList',
]
},
placeholder :'Write a note...',
link: {
defaultProtocol: 'http://'
}
},
问题是 defaultProtocal 未设置。当我将 gogole.com 作为链接时,它以 my-domain/google.com 的形式打开,这是一个不存在的页面
我关注了这个文档defaultProtocal
提前谢谢你
【问题讨论】:
标签: vue.js ckeditor vue-component ckeditor5