日本不卡不码高清免费观看,久久国产精品久久w女人spa,黄色aa久久,三上悠亚国产精品一区二区三区

您的位置:首頁技術文章
文章詳情頁

如何在vue中使用kindeditor富文本編輯器

瀏覽:129日期:2022-10-18 11:47:58
第一步,下載依賴

yarn add kindeditor第二步,建立kindeditor.vue組件

<template> <div class='kindeditor'> <textarea : name='content' v-model='outContent'></textarea> </div></template><script>import ’../../node_modules/kindeditor/kindeditor-all.js’import ’../../node_modules/kindeditor/lang/zh-CN.js’import ’../../node_modules/kindeditor/themes/default/default.css’export default { name: ’kindeditor’, data () { return { editor: null, outContent: this.content } }, props: { content: { type: String, default: ’’ }, id: { type: String, required: true }, width: { type: String }, height: { type: String }, minWidth: { type: Number, default: 650 }, minHeight: { type: Number, default: 100 }, items: { type: Array, default: function () { return [ ’source’, ’|’, ’undo’, ’redo’, ’|’, ’preview’, ’print’, ’template’, ’code’, ’cut’, ’copy’, ’paste’, ’plainpaste’, ’wordpaste’, ’|’, ’justifyleft’, ’justifycenter’, ’justifyright’, ’justifyfull’, ’insertorderedlist’, ’insertunorderedlist’, ’indent’, ’outdent’, ’subscript’, ’superscript’, ’clearhtml’, ’quickformat’, ’selectall’, ’|’, ’fullscreen’, ’/’, ’formatblock’, ’fontname’, ’fontsize’, ’|’, ’forecolor’, ’hilitecolor’, ’bold’, ’italic’, ’underline’, ’strikethrough’, ’lineheight’, ’removeformat’, ’|’, ’image’, ’multiimage’, ’flash’, ’media’, ’insertfile’, ’table’, ’hr’, ’emoticons’, ’baidumap’, ’pagebreak’, ’anchor’, ’link’, ’unlink’, ’|’, ’about’ ] } }, noDisableItems: { type: Array, default: function () { return [’source’, ’fullscreen’] } }, filterMode: { type: Boolean, default: true }, htmlTags: { type: Object, default: function () { return { font: [’color’, ’size’, ’face’, ’.background-color’], span: [’style’], div: [’class’, ’align’, ’style’], table: [’class’, ’border’, ’cellspacing’, ’cellpadding’, ’width’, ’height’, ’align’, ’style’], ’td,th’: [’class’, ’align’, ’valign’, ’width’, ’height’, ’colspan’, ’rowspan’, ’bgcolor’, ’style’], a: [’class’, ’href’, ’target’, ’name’, ’style’], embed: [’src’, ’width’, ’height’, ’type’, ’loop’, ’autostart’, ’quality’, ’style’, ’align’, ’allowscriptaccess’, ’/’], img: [’src’, ’width’, ’height’, ’border’, ’alt’, ’title’, ’align’, ’style’, ’/’], hr: [’class’, ’/’], br: [’/’], ’p,ol,ul,li,blockquote,h1,h2,h3,h4,h5,h6’: [’align’, ’style’], ’tbody,tr,strong,b,sub,sup,em,i,u,strike’: [] } } }, wellFormatMode: { type: Boolean, default: true }, resizeType: { type: Number, default: 2 }, themeType: { type: String, default: ’default’ }, langType: { type: String, default: ’zh-CN’ }, designMode: { type: Boolean, default: true }, fullscreenMode: { type: Boolean, default: false }, basePath: { type: String }, themesPath: { type: String }, pluginsPath: { type: String, default: ’’ }, langPath: { type: String }, minChangeSize: { type: Number, default: 5 }, loadStyleMode: { type: Boolean, default: true }, urlType: { type: String, default: ’’ }, newlineTag: { type: String, default: ’p’ }, pasteType: { type: Number, default: 2 }, dialogAlignType: { type: String, default: ’page’ }, shadowMode: { type: Boolean, default: true }, zIndex: { type: Number, default: 811213 }, useContextmenu: { type: Boolean, default: true }, syncType: { type: String, default: ’form’ }, indentChar: { type: String, default: ’t’ }, cssPath: { type: [ String, Array ] }, cssData: { type: String }, bodyClass: { type: String, default: ’ke-content’ }, colorTable: { type: Array }, afterCreate: { type: Function }, afterChange: { type: Function }, afterTab: { type: Function }, afterFocus: { type: Function }, afterBlur: { type: Function }, afterUpload: { type: Function }, uploadJson: { type: String }, fileManagerJson: { type: Function }, allowPreviewEmoticons: { type: Boolean, default: true }, allowImageUpload: { type: Boolean, default: true }, allowFlashUpload: { type: Boolean, default: true }, allowMediaUpload: { type: Boolean, default: true }, allowFileUpload: { type: Boolean, default: true }, allowFileManager: { type: Boolean, default: false }, fontSizeTable: { type: Array, default: function () { return [’9px’, ’10px’, ’12px’, ’14px’, ’16px’, ’18px’, ’24px’, ’32px’] } }, imageTabIndex: { type: Number, default: 0 }, formatUploadUrl: { type: Boolean, default: true }, fullscreenShortcut: { type: Boolean, default: false }, extraFileUploadParams: { type: Array, default: function () { return [] } }, filePostName: { type: String, default: ’imgFile’ }, fillDescAfterUploadImage: { type: Boolean, default: false }, afterSelectFile: { type: Function }, pagebreakHtml: { type: String, default: ’<hr style=”page-break-after: always;” class=”ke-pagebreak” />’ }, allowImageRemote: { type: Boolean, default: true }, autoHeightMode: { type: Boolean, default: false }, fixToolBar: { type: Boolean, default: false }, tabIndex: { type: Number } }, watch: { content (val) { this.editor && val !== this.outContent && this.editor.html(val) }, outContent (val) { this.$emit(’update:content’, val) this.$emit(’on-content-change’, val) } }, mounted () { var _this = this _this.editor = window.KindEditor.create(’#’ + this.id, { width: _this.width, height: _this.height, minWidth: _this.minWidth, minHeight: _this.minHeight, items: _this.items, noDisableItems: _this.noDisableItems, filterMode: _this.filterMode, htmlTags: _this.htmlTags, wellFormatMode: _this.wellFormatMode, resizeType: _this.resizeType, themeType: _this.themeType, langType: _this.langType, designMode: _this.designMode, fullscreenMode: _this.fullscreenMode, basePath: _this.basePath, themesPath: _this.cssPath, pluginsPath: _this.pluginsPath, langPath: _this.langPath, minChangeSize: _this.minChangeSize, loadStyleMode: _this.loadStyleMode, urlType: _this.urlType, newlineTag: _this.newlineTag, pasteType: _this.pasteType, dialogAlignType: _this.dialogAlignType, shadowMode: _this.shadowMode, zIndex: _this.zIndex, useContextmenu: _this.useContextmenu, syncType: _this.syncType, indentChar: _this.indentChar, cssPath: _this.cssPath, cssData: _this.cssData, bodyClass: _this.bodyClass, colorTable: _this.colorTable, afterCreate: _this.afterCreate, afterChange: function () { _this.afterChange _this.outContent = this.html() }, afterTab: _this.afterTab, afterFocus: _this.afterFocus, afterBlur: _this.afterBlur, afterUpload: _this.afterUpload, uploadJson: _this.uploadJson, fileManagerJson: _this.fileManagerJson, allowPreviewEmoticons: _this.allowPreviewEmoticons, allowImageUpload: _this.allowImageUpload, allowFlashUpload: _this.allowFlashUpload, allowMediaUpload: _this.allowMediaUpload, allowFileUpload: _this.allowFileUpload, allowFileManager: _this.allowFileManager, fontSizeTable: _this.fontSizeTable, imageTabIndex: _this.imageTabIndex, formatUploadUrl: _this.formatUploadUrl, fullscreenShortcut: _this.fullscreenShortcut, extraFileUploadParams: _this.extraFileUploadParams, filePostName: _this.filePostName, fillDescAfterUploadImage: _this.fillDescAfterUploadImage, afterSelectFile: _this.afterSelectFile, pagebreakHtml: _this.pagebreakHtml, allowImageRemote: _this.allowImageRemote, autoHeightMode: _this.autoHeightMode, fixToolBar: _this.fixToolBar, tabIndex: _this.tabIndex }) }}</script><style> </style>第三步,引入使用

<template> <div id='app'> <editor :content.sync='editorText' :afterChange='afterChange()' :loadStyleMode='false' @on-content-change='onContentChange'></editor> <div> editorTextCopy: {{ editorTextCopy }} </div> </div></template><script>import editor from ’./components/kindeditor.vue’export default { name: ’app’, components: { editor }, data () { return { editorText: ’直接初始化值’, // 雙向同步的變量 editorTextCopy: ’’ // content-change 事件回掉改變的對象 } }, methods: { onContentChange (val) { this.editorTextCopy = val; window.console.log(this.editorTextCopy) }, afterChange () { } }}</script>效果如下:

如何在vue中使用kindeditor富文本編輯器

以上就是vue中使用kindeditor富文本編輯器的詳細內容,更多關于vue kindeditor富文本編輯器的資料請關注好吧啦網其它相關文章!

標簽: Vue
相關文章:
日本不卡不码高清免费观看,久久国产精品久久w女人spa,黄色aa久久,三上悠亚国产精品一区二区三区
91午夜精品| 欧美久久精品| 国产日韩亚洲| 日韩一区精品视频| 国产suv精品一区二区四区视频 | 亚洲午夜天堂| 日韩**一区毛片| 一本综合精品| 国产精品毛片一区二区三区| 精品国产午夜肉伦伦影院| 日韩国产高清在线| 综合亚洲色图| 日韩亚洲国产欧美| 婷婷综合网站| 久久久精品久久久久久96| 久久精品 人人爱| 国产丝袜一区| 天堂va欧美ⅴa亚洲va一国产| 免费精品视频最新在线| 日精品一区二区三区| 日韩精品一二三四| 免费国产自线拍一欧美视频| 日本不卡视频在线| 日本欧美一区二区在线观看| 日韩一区精品视频| 亚洲专区视频| 亚洲精品系列| 亚洲深夜福利| 天海翼精品一区二区三区| 亚洲天堂日韩在线| 中国女人久久久| 亚洲精品三级| 婷婷精品在线| 久久最新视频| 日韩精品三级| 精品国产亚洲一区二区在线观看| 精品国产亚洲日本| 亚洲综合电影| 亚洲一区日本| 日韩综合一区二区| 国产日韩一区二区三区在线| 麻豆视频在线观看免费网站黄 | 欧美亚洲色图校园春色| 亚洲专区视频| 蜜桃久久久久久| 国产伦乱精品| av资源中文在线天堂| 日韩一区二区三免费高清在线观看 | 亚洲欧美一级| 国产中文在线播放| 中文在线不卡| 日韩电影二区| 久久黄色影视| 乱一区二区av| 欧美国产一级| 99精品小视频| 91久久久精品国产| 亚洲精品字幕| 国产区精品区| 日韩一区二区中文| 亚洲欧美日韩视频二区| 日本不卡视频在线| 色爱av综合网| 亚洲伊人精品酒店| 国产精品流白浆在线观看| 久久精品免费一区二区三区 | 国产图片一区| 国产精品jk白丝蜜臀av小说| 日韩av片子| 欧美日韩国产免费观看| 久久国产中文字幕| 亚洲aⅴ网站| 99re国产精品| 亚洲午夜视频| 欧美成a人国产精品高清乱码在线观看片在线观看久 | 久久99久久人婷婷精品综合| 国产 日韩 欧美 综合 一区| 久久久一本精品| 色婷婷色综合| 麻豆精品久久| 91精品观看| 国产探花一区二区| 欧美xxxx中国| 六月婷婷一区| 欧美成人a交片免费看| 午夜av一区| 欧美日韩亚洲一区在线观看| 成人国产精品久久| 亚洲乱码视频| 成人国产精品久久| 亚洲毛片视频| 婷婷亚洲五月色综合| 久久国产乱子精品免费女| 日韩欧美一区二区三区免费看| 久久国产影院| 国产亚洲高清一区| 激情久久中文字幕| 国产伦精品一区二区三区千人斩| 美女网站一区| 国产精品久久乐| 亚洲作爱视频| 97精品国产一区二区三区| 国产精品黄网站| 国产模特精品视频久久久久| 黑人精品一区| 欧美日韩夜夜| 好吊日精品视频 | 国产suv精品一区| 丝袜国产日韩另类美女| 人人爱人人干婷婷丁香亚洲| 精品一区av| 国产伦精品一区二区三区千人斩| 女同性一区二区三区人了人一| 美女精品久久| 麻豆精品在线观看| 亚洲欧美专区| 一区三区视频| 国产精品色在线网站| 蜜臀av国产精品久久久久| av资源中文在线| 欧美亚洲三级| 国产日产精品一区二区三区四区的观看方式| 99久久久久国产精品| 久久久久黄色| 国产精品色网| 欧美性感美女一区二区| 精品视频国产| 7777精品| 国产精品欧美三级在线观看| 蜜臀av亚洲一区中文字幕| 欧美91精品| av资源中文在线| 欧美极品中文字幕| 日韩三区四区| 国产精品一区2区3区| 日本99精品| 亚洲免费一区三区| 中文一区一区三区免费在线观 | 伊人精品一区| 日本不卡免费高清视频在线| 激情黄产视频在线免费观看| 伊人久久高清| 欧美 日韩 国产精品免费观看| 亚洲精品888| 亚洲久久视频| 91成人精品在线| 精品一区二区三区免费看| 日本久久精品| 91精品国产成人观看| 亚洲精品小说| 亚洲精品美女91| 久久wwww| 国产精品99久久免费观看| 精品三级av在线导航| 快播电影网址老女人久久| 欧美日韩在线观看视频小说| 免费日韩av片| 国产亚洲一区二区三区不卡| 精品中文字幕一区二区三区四区| 午夜av不卡| 99热精品在线观看| 五月亚洲婷婷 | 国产精品最新自拍| av不卡在线看| 亚洲午夜免费| 精品三级av在线导航| 亚洲一二三区视频| 精品国产不卡一区二区| 国产一区二区三区亚洲综合| 国产精品人人爽人人做我的可爱| 日韩免费久久| 精品久久电影| 久久精品123| 免费看日韩精品| 麻豆免费精品视频| 欧美日韩在线播放视频| 亚洲精品影视| 国产一区二区三区成人欧美日韩在线观看| 色爱av综合网| 亚洲精品高潮| 麻豆国产91在线播放| 久久久久久久久丰满| 亚洲精品在线国产| 国产一区2区| 夜夜精品视频| 免费日韩成人| re久久精品视频| 国产精品夜夜夜| 中文久久精品| 日韩1区2区| 亚洲精品女人| 久久男女视频| 国产美女久久| 欧美精品一区二区久久| 91精品国产自产精品男人的天堂| 国产成人精选| 香蕉久久久久久| 久久网站免费观看| 国产精品麻豆成人av电影艾秋 | 国产日韩高清一区二区三区在线|