¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <div id='quillEditorQiniu'> |
| | | <!-- åºäºelementUiçä¸ä¼ ç»ä»¶ el-upload begin--> |
| | | <el-upload |
| | | :accept="'image'" |
| | | :action="uploadImgUrl" |
| | | :before-upload="beforeEditorUpload" |
| | | :headers="headers" |
| | | :on-error="uploadEditorError" |
| | | :on-success="uploadEditorSuccess" |
| | | :show-file-list="false" |
| | | class="avatar-uploader"> |
| | | </el-upload> |
| | | <!-- åºäºelementUiçä¸ä¼ ç»ä»¶ el-upload end--> |
| | | <quill-editor ref="customQuillEditor" v-model="content" :options="editorOption" class="editor"> |
| | | </quill-editor> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import {getToken} from "@/util/auth"; |
| | | |
| | | const toolbarOptions = [ |
| | | ['bold', 'italic', 'underline', 'strike'], // å ç² æä½ ä¸å线 å é¤çº¿ |
| | | ['blockquote', 'code-block'], // å¼ç¨ 代ç å |
| | | [{header: 1}, {header: 2}], // 1ã2 级æ é¢ |
| | | [{list: 'ordered'}, {list: 'bullet'}], // æåºãæ åºå表 |
| | | [{script: 'sub'}, {script: 'super'}], // 䏿 /䏿 |
| | | [{indent: '-1'}, {indent: '+1'}], // ç¼©è¿ |
| | | [{size: ['small', false, 'large', 'huge']}], // åä½å¤§å° |
| | | [{header: [1, 2, 3, 4, 5, 6, false]}], // æ é¢ |
| | | [{color: []}, {background: []}], // åä½é¢è² åä½èæ¯é¢è² |
| | | [{font: []}], // åä½ç§ç±» |
| | | [{align: []}], // 坹齿¹å¼ |
| | | ['image'], // 龿¥ å¾ç |
| | | ['clean'] // æ¸
é¤ææ¬æ ¼å¼ |
| | | ]; |
| | | export default { |
| | | data() { |
| | | return { |
| | | headers: { |
| | | Authorization: "Bearer " + getToken(), |
| | | }, |
| | | uploadImgUrl: "/v1/admin/common/upload", |
| | | uploadUrlPath: "没ææä»¶ä¸ä¼ ", |
| | | quillUpdateImg: false, |
| | | content: '', //æç»ä¿åçå
容 |
| | | editorOption: { |
| | | theme: 'snow', |
| | | placeholder: '请è¾å
¥å
容', |
| | | modules: { |
| | | toolbar: { |
| | | container: toolbarOptions, // å·¥å
·æ |
| | | handlers: { |
| | | image: function (value) { |
| | | if (value) { |
| | | document.querySelector('#quillEditorQiniu .avatar-uploader input').click() |
| | | } else { |
| | | this.quill.format('image', false); |
| | | } |
| | | }, |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | } |
| | | }, |
| | | methods: { |
| | | //ä¸ä¼ å¾çä¹åasync |
| | | beforeEditorUpload(file) { |
| | | const isJPG = file.type === 'image/jpeg' || file.type === 'image/png' || file.type === 'image/gif' |
| | | if (!isJPG) { |
| | | this.$message.error('ä¸ä¼ å¾çåªè½æ¯ JPGï¼PNG, GIF æ ¼å¼!') |
| | | } else { |
| | | //æ¾ç¤ºä¸ä¼ å¨ç» |
| | | this.quillUpdateImg = true; |
| | | } |
| | | }, |
| | | // ä¸ä¼ å¾çæå |
| | | uploadEditorSuccess(res, file) { |
| | | console.log("ä¸ä¼ æå") |
| | | // this.$emit('upload',res, file) |
| | | console.log(res, file); |
| | | //æ¼æ¥åºä¸ä¼ çå¾ç卿å¡å¨ç宿´å°å |
| | | let imgUrl = res.data.url; |
| | | let type = imgUrl.substring(imgUrl.lastIndexOf(".") + 1); |
| | | console.log(type); |
| | | // è·å坿æ¬ç»ä»¶å®ä¾ |
| | | let quill = this.$refs.customQuillEditor.quill; |
| | | // è·åå
æ æå¨ä½ç½® |
| | | let length = quill.getSelection().index; |
| | | // æå
¥å¾ç||è§é¢ res.info为æå¡å¨è¿åçå¾çå°å |
| | | if (type == 'mp4' || type == 'MP4') { |
| | | quill.insertEmbed(length, 'video', imgUrl) |
| | | } else { |
| | | quill.insertEmbed(length, 'image', imgUrl) |
| | | } |
| | | // è°æ´å
æ å°æå |
| | | quill.setSelection(length + 1) |
| | | //åæ¶ä¸ä¼ å¨ç» |
| | | this.quillUpdateImg = false; |
| | | }, |
| | | // ä¸ä¼ (æä»¶)å¾ç失败 |
| | | uploadEditorError(res, file) { |
| | | console.log(res); |
| | | console.log(file); |
| | | //é¡µé¢æç¤º |
| | | this.$message.error('ä¸ä¼ å¾ç失败') |
| | | //åæ¶ä¸ä¼ å¨ç» |
| | | this.quillUpdateImg = false; |
| | | }, |
| | | //ä¸ä¼ ç»ä»¶è¿åçç»æ |
| | | uploadResult: function (res) { |
| | | this.uploadUrlPath = res; |
| | | }, |
| | | openContent: function () { |
| | | console.log(this.content) |
| | | }, |
| | | |
| | | }, |
| | | created() { |
| | | |
| | | }, |
| | | //åªæ§è¡ä¸æ¬¡ï¼å è½½æ§è¡ |
| | | mounted() { |
| | | console.log("å¼å§å è½½") |
| | | // åå§ç»ç¼è¾å¨è®¾ç½®title |
| | | }, |
| | | watch: { |
| | | content(newVal, oldVal) { |
| | | //this.$emit('input', newVal); |
| | | console.log(newVal) |
| | | console.log(oldVal) |
| | | } |
| | | }, |
| | | |
| | | |
| | | } |
| | | </script> |
| | | |
| | | <style> |
| | | .editor { |
| | | line-height: normal !important; |
| | | height: 400px; |
| | | margin-bottom: 50px; |
| | | } |
| | | |
| | | .ql-snow .ql-tooltip[data-mode="link"]::before { |
| | | content: "请è¾å
¥é¾æ¥å°å:"; |
| | | } |
| | | |
| | | .ql-snow .ql-tooltip.ql-editing a.ql-action::after { |
| | | border-right: 0px; |
| | | content: "ä¿å"; |
| | | padding-right: 0px; |
| | | } |
| | | |
| | | |
| | | .ql-snow .ql-picker.ql-size .ql-picker-label::before, |
| | | .ql-snow .ql-picker.ql-size .ql-picker-item::before { |
| | | content: "14px"; |
| | | } |
| | | |
| | | .ql-snow .ql-picker.ql-size .ql-picker-label[data-value="small"]::before, |
| | | .ql-snow .ql-picker.ql-size .ql-picker-item[data-value="small"]::before { |
| | | content: "10px"; |
| | | } |
| | | |
| | | .ql-snow .ql-picker.ql-size .ql-picker-label[data-value="large"]::before, |
| | | .ql-snow .ql-picker.ql-size .ql-picker-item[data-value="large"]::before { |
| | | content: "18px"; |
| | | } |
| | | |
| | | .ql-snow .ql-picker.ql-size .ql-picker-label[data-value="huge"]::before, |
| | | .ql-snow .ql-picker.ql-size .ql-picker-item[data-value="huge"]::before { |
| | | content: "32px"; |
| | | } |
| | | |
| | | .ql-snow .ql-picker.ql-header .ql-picker-label::before, |
| | | .ql-snow .ql-picker.ql-header .ql-picker-item::before { |
| | | content: "ææ¬"; |
| | | } |
| | | |
| | | .ql-snow .ql-picker.ql-header .ql-picker-label[data-value="1"]::before, |
| | | .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]::before { |
| | | content: "æ é¢1"; |
| | | } |
| | | |
| | | .ql-snow .ql-picker.ql-header .ql-picker-label[data-value="2"]::before, |
| | | .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]::before { |
| | | content: "æ é¢2"; |
| | | } |
| | | |
| | | .ql-snow .ql-picker.ql-header .ql-picker-label[data-value="3"]::before, |
| | | .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]::before { |
| | | content: "æ é¢3"; |
| | | } |
| | | |
| | | .ql-snow .ql-picker.ql-header .ql-picker-label[data-value="4"]::before, |
| | | .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]::before { |
| | | content: "æ é¢4"; |
| | | } |
| | | |
| | | .ql-snow .ql-picker.ql-header .ql-picker-label[data-value="5"]::before, |
| | | .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]::before { |
| | | content: "æ é¢5"; |
| | | } |
| | | |
| | | .ql-snow .ql-picker.ql-header .ql-picker-label[data-value="6"]::before, |
| | | .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]::before { |
| | | content: "æ é¢6"; |
| | | } |
| | | |
| | | .ql-snow .ql-picker.ql-font .ql-picker-label::before, |
| | | .ql-snow .ql-picker.ql-font .ql-picker-item::before { |
| | | content: "æ ååä½"; |
| | | } |
| | | |
| | | .ql-snow .ql-picker.ql-font .ql-picker-label[data-value="serif"]::before, |
| | | .ql-snow .ql-picker.ql-font .ql-picker-item[data-value="serif"]::before { |
| | | content: "衬线åä½"; |
| | | } |
| | | |
| | | .ql-snow .ql-picker.ql-font .ql-picker-label[data-value="monospace"]::before, |
| | | .ql-snow .ql-picker.ql-font .ql-picker-item[data-value="monospace"]::before { |
| | | content: "ç宽åä½"; |
| | | } |
| | | </style> |
| | |
| | | import dynamicTableForm from '@/components/dynamic-components/dynamic-table-form' |
| | | //åºå®è¡¨åç»ä»¶ |
| | | import dynamicForm from '@/components/dynamic-components/dynamic-form' |
| | | //坿æ¬ç»ä»¶ |
| | | import richText from '@/components/form-component/richText' |
| | | |
| | | // 注åå
¨å±å®¹å¨ |
| | | Vue.component('basicContainer', basicContainer); |
| | | Vue.component('basicBlock', basicBlock); |
| | | Vue.component('thirdRegister', thirdRegister); |
| | | Vue.component('avueUeditor', avueUeditor); |
| | | Vue.component('flowDesign', flowDesign); |
| | | Vue.component('tenantPackage', tenantPackage); |
| | | Vue.component('dynamicButton', dynamicButton); |
| | | Vue.component('dynamicTableForm', dynamicTableForm); |
| | | Vue.component('dynamicForm', dynamicForm); |
| | | Vue.component('richText', richText); |
| | | |
| | | import 'quill/dist/quill.core.css' |
| | | import 'quill/dist/quill.snow.css' |
| | |
| | | calcHeight: 65, |
| | | i18n: (key, value) => i18n.t(key, value) |
| | | }); |
| | | // 注åå
¨å±å®¹å¨ |
| | | Vue.component('basicContainer', basicContainer); |
| | | Vue.component('basicBlock', basicBlock); |
| | | Vue.component('thirdRegister', thirdRegister); |
| | | Vue.component('avueUeditor', avueUeditor); |
| | | Vue.component('flowDesign', flowDesign); |
| | | Vue.component('tenantPackage', tenantPackage); |
| | | Vue.component('dynamicButton', dynamicButton); |
| | | Vue.component('dynamicTableForm', dynamicTableForm); |
| | | Vue.component('dynamicForm', dynamicForm); |
| | | // å è½½ç¸å
³urlå°å |
| | | Object.keys(urls).forEach(key => { |
| | | Vue.prototype[key] = urls[key]; |
| | |
| | | <template> |
| | | <div> |
| | | <quill-editor |
| | | class="editor" |
| | | v-model="content" |
| | | ref="quillEditor" |
| | | :options="editorOptions" |
| | | ></quill-editor> |
| | | </div> |
| | | <div id='quillEditorQiniu'> |
| | | <!-- åºäºelementUiçä¸ä¼ ç»ä»¶ el-upload begin--> |
| | | <el-upload |
| | | :accept="'image'" |
| | | :action="uploadImgUrl" |
| | | :before-upload="beforeEditorUpload" |
| | | :headers="headers" |
| | | :on-error="uploadEditorError" |
| | | :on-success="uploadEditorSuccess" |
| | | :show-file-list="false" |
| | | class="avatar-uploader"> |
| | | </el-upload> |
| | | <!-- åºäºelementUiçä¸ä¼ ç»ä»¶ el-upload end--> |
| | | <quill-editor ref="customQuillEditor" v-model="content" :options="editorOption" class="editor"> |
| | | </quill-editor> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import {getToken} from "@/util/auth"; |
| | | |
| | | const toolbarOptions = [ |
| | | ['bold', 'italic', 'underline', 'strike'], // å ç² æä½ ä¸å线 å é¤çº¿ |
| | | ['blockquote', 'code-block'], // å¼ç¨ 代ç å |
| | | [{ header: 1 }, { header: 2 }], // 1ã2 级æ é¢ |
| | | [{ list: 'ordered' }, { list: 'bullet' }], // æåºãæ åºå表 |
| | | [{ script: 'sub' }, { script: 'super' }], // 䏿 /䏿 |
| | | [{ indent: '-1' }, { indent: '+1' }], // ç¼©è¿ |
| | | // [{'direction': 'rtl'}], // ææ¬æ¹å |
| | | [{ size: ['small', false, 'large', 'huge'] }], // åä½å¤§å° |
| | | [{ header: [1, 2, 3, 4, 5, 6, false] }], // æ é¢ |
| | | [{ color: [] }, { background: [] }], // åä½é¢è²ãåä½èæ¯é¢è² |
| | | [{ font: [] }], // åä½ç§ç±» |
| | | [{ align: [] }], // 坹齿¹å¼ |
| | | ['clean'], // æ¸
é¤ææ¬æ ¼å¼ |
| | | // ['link', 'image', 'video'] // 龿¥ãå¾ç |
| | | ['link', 'image'] // 龿¥ãå¾ç |
| | | ] |
| | | ['bold', 'italic', 'underline', 'strike'], // å ç² æä½ ä¸å线 å é¤çº¿ |
| | | ['blockquote', 'code-block'], // å¼ç¨ 代ç å |
| | | [{header: 1}, {header: 2}], // 1ã2 级æ é¢ |
| | | [{list: 'ordered'}, {list: 'bullet'}], // æåºãæ åºå表 |
| | | [{script: 'sub'}, {script: 'super'}], // 䏿 /䏿 |
| | | [{indent: '-1'}, {indent: '+1'}], // ç¼©è¿ |
| | | [{size: ['small', false, 'large', 'huge']}], // åä½å¤§å° |
| | | [{header: [1, 2, 3, 4, 5, 6, false]}], // æ é¢ |
| | | [{color: []}, {background: []}], // åä½é¢è² åä½èæ¯é¢è² |
| | | [{font: []}], // åä½ç§ç±» |
| | | [{align: []}], // 坹齿¹å¼ |
| | | ['link', 'image'], // 龿¥ å¾ç |
| | | ['clean'] // æ¸
é¤ææ¬æ ¼å¼ |
| | | ]; |
| | | export default { |
| | | name:'test', |
| | | data() { |
| | | return { |
| | | content: '', |
| | | editorOptions: { |
| | | // Quillç¼è¾å¨çé项 |
| | | placeholder: '请è¾å
¥å
容ï¼', |
| | | modules:{ |
| | | toolbar:{ |
| | | container:toolbarOptions |
| | | headers: { |
| | | Authorization: "Bearer " + getToken(), |
| | | }, |
| | | uploadImgUrl: "/v1/admin/common/upload", |
| | | uploadUrlPath: "没ææä»¶ä¸ä¼ ", |
| | | quillUpdateImg: false, |
| | | content: '', //æç»ä¿åçå
容 |
| | | editorOption: { |
| | | theme: 'snow', |
| | | placeholder: '请è¾å
¥å
容', |
| | | modules: { |
| | | toolbar: { |
| | | container: toolbarOptions, // å·¥å
·æ |
| | | handlers: { |
| | | image: function (value) { |
| | | if (value) { |
| | | document.querySelector('#quillEditorQiniu .avatar-uploader input').click() |
| | | } else { |
| | | this.quill.format('image', false); |
| | | } |
| | | }, |
| | | link: function (value) { |
| | | if (value) { |
| | | const href = prompt('请è¾å
¥é¾æ¥å°åï¼'); |
| | | this.quill.format('link', href) |
| | | } else { |
| | | this.quill.format('link', false) |
| | | } |
| | | }, |
| | | } |
| | | } |
| | | } |
| | | |
| | | } |
| | | }; |
| | | }, |
| | | mounted() { |
| | | let self = this; |
| | | const editor = this.$refs.quillEditor.quill; |
| | | const toolbar = editor.getModule('toolbar'); |
| | | toolbar.addHandler('image', () => { |
| | | self.selectLocalImage(); |
| | | }); |
| | | }, |
| | | } |
| | | }, |
| | | methods: { |
| | | selectLocalImage() { |
| | | const input = document.createElement('input'); |
| | | input.setAttribute('type', 'file'); |
| | | input.click(); |
| | | input.onchange = () => { |
| | | const file = input.files[0]; |
| | | if (file) { |
| | | // å¨è¿éè°ç¨ä½ çå¾çä¸ä¼ é»è¾ï¼å¹¶è·åå¾ççURL |
| | | // åè®¾ä½ ä¸ä¼ åå¾å°äºå¾çURL |
| | | const url = 'ä½ çå¾çURL'; |
| | | // æå
¥å¾çå°ç¼è¾å¨ |
| | | this.insertToEditor(url); |
| | | } |
| | | }; |
| | | //ä¸ä¼ å¾çä¹åasync |
| | | beforeEditorUpload(file) { |
| | | const isJPG = file.type === 'image/jpeg' || file.type === 'image/png' || file.type === 'image/gif' |
| | | if (!isJPG) { |
| | | this.$message.error('ä¸ä¼ å¾çåªè½æ¯ JPGï¼PNG, GIF æ ¼å¼!') |
| | | } else { |
| | | //æ¾ç¤ºä¸ä¼ å¨ç» |
| | | this.quillUpdateImg = true; |
| | | } |
| | | }, |
| | | insertToEditor(url) { |
| | | const range = this.$refs.quillEditor.quill.getSelection(); |
| | | this.$refs.quillEditor.quill.insertEmbed(range.index, 'image', url); |
| | | // ä¸ä¼ å¾çæå |
| | | uploadEditorSuccess(res, file) { |
| | | console.log("ä¸ä¼ æå") |
| | | // this.$emit('upload',res, file) |
| | | console.log(res, file); |
| | | //æ¼æ¥åºä¸ä¼ çå¾ç卿å¡å¨ç宿´å°å |
| | | let imgUrl = res.data.url; |
| | | let type = imgUrl.substring(imgUrl.lastIndexOf(".") + 1); |
| | | console.log(type); |
| | | // è·å坿æ¬ç»ä»¶å®ä¾ |
| | | let quill = this.$refs.customQuillEditor.quill; |
| | | // è·åå
æ æå¨ä½ç½® |
| | | let length = quill.getSelection().index; |
| | | // æå
¥å¾ç||è§é¢ res.info为æå¡å¨è¿åçå¾çå°å |
| | | if (type == 'mp4' || type == 'MP4') { |
| | | quill.insertEmbed(length, 'video', imgUrl) |
| | | } else { |
| | | quill.insertEmbed(length, 'image', imgUrl) |
| | | } |
| | | // è°æ´å
æ å°æå |
| | | quill.setSelection(length + 1) |
| | | //åæ¶ä¸ä¼ å¨ç» |
| | | this.quillUpdateImg = false; |
| | | }, |
| | | // ä¸ä¼ (æä»¶)å¾ç失败 |
| | | uploadEditorError(res, file) { |
| | | console.log(res); |
| | | console.log(file); |
| | | //é¡µé¢æç¤º |
| | | this.$message.error('ä¸ä¼ å¾ç失败') |
| | | //åæ¶ä¸ä¼ å¨ç» |
| | | this.quillUpdateImg = false; |
| | | }, |
| | | //ä¸ä¼ ç»ä»¶è¿åçç»æ |
| | | uploadResult: function (res) { |
| | | this.uploadUrlPath = res; |
| | | }, |
| | | openContent: function () { |
| | | console.log(this.content) |
| | | }, |
| | | |
| | | }, |
| | | created() { |
| | | |
| | | }, |
| | | //åªæ§è¡ä¸æ¬¡ï¼å è½½æ§è¡ |
| | | mounted() { |
| | | console.log("å¼å§å è½½") |
| | | // åå§ç»ç¼è¾å¨è®¾ç½®title |
| | | }, |
| | | watch: { |
| | | content(newVal, oldVal) { |
| | | //this.$emit('input', newVal); |
| | | console.log(newVal) |
| | | console.log(oldVal) |
| | | } |
| | | } |
| | | }; |
| | | }, |
| | | |
| | | |
| | | } |
| | | </script> |
| | | <style lang="scss" scoped> |
| | | |
| | | <style> |
| | | .editor { |
| | | line-height: normal !important; |
| | | height: 400px; |
| | | margin-bottom: 50px; |
| | | } |
| | | //.ql-snow .ql-tooltip[data-mode="link"]::before { |
| | | // content: "请è¾å
¥é¾æ¥å°å:"; |
| | | //} |
| | | //.ql-snow .ql-tooltip.ql-editing a.ql-action::after { |
| | | // border-right: 0px; |
| | | // content: "ä¿å"; |
| | | // padding-right: 0px; |
| | | //} |
| | | |
| | | .ql-snow .ql-tooltip[data-mode="link"]::before { |
| | | content: "请è¾å
¥é¾æ¥å°å:"; |
| | | } |
| | | |
| | | .ql-snow .ql-tooltip.ql-editing a.ql-action::after { |
| | | border-right: 0px; |
| | | content: "ä¿å"; |
| | | padding-right: 0px; |
| | | } |
| | | |
| | | |
| | | .ql-snow .ql-picker.ql-size .ql-picker-label::before, |
| | | .ql-snow .ql-picker.ql-size .ql-picker-item::before { |
| | | content: "14px"; |
| | | } |
| | | |
| | | .ql-snow .ql-picker.ql-size .ql-picker-label[data-value="small"]::before, |
| | | .ql-snow .ql-picker.ql-size .ql-picker-item[data-value="small"]::before { |
| | | content: "10px"; |
| | | } |
| | | |
| | | .ql-snow .ql-picker.ql-size .ql-picker-label[data-value="large"]::before, |
| | | .ql-snow .ql-picker.ql-size .ql-picker-item[data-value="large"]::before { |
| | | content: "18px"; |
| | | } |
| | | |
| | | .ql-snow .ql-picker.ql-size .ql-picker-label[data-value="huge"]::before, |
| | | .ql-snow .ql-picker.ql-size .ql-picker-item[data-value="huge"]::before { |
| | | content: "32px"; |
| | | } |
| | | |
| | | .ql-snow .ql-picker.ql-header .ql-picker-label::before, |
| | | .ql-snow .ql-picker.ql-header .ql-picker-item::before { |
| | | content: "ææ¬"; |
| | | } |
| | | |
| | | .ql-snow .ql-picker.ql-header .ql-picker-label[data-value="1"]::before, |
| | | .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]::before { |
| | | content: "æ é¢1"; |
| | | } |
| | | |
| | | .ql-snow .ql-picker.ql-header .ql-picker-label[data-value="2"]::before, |
| | | .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]::before { |
| | | content: "æ é¢2"; |
| | | } |
| | | |
| | | .ql-snow .ql-picker.ql-header .ql-picker-label[data-value="3"]::before, |
| | | .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]::before { |
| | | content: "æ é¢3"; |
| | | } |
| | | |
| | | .ql-snow .ql-picker.ql-header .ql-picker-label[data-value="4"]::before, |
| | | .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]::before { |
| | | content: "æ é¢4"; |
| | | } |
| | | |
| | | .ql-snow .ql-picker.ql-header .ql-picker-label[data-value="5"]::before, |
| | | .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]::before { |
| | | content: "æ é¢5"; |
| | | } |
| | | |
| | | .ql-snow .ql-picker.ql-header .ql-picker-label[data-value="6"]::before, |
| | | .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]::before { |
| | | content: "æ é¢6"; |
| | | } |
| | | |
| | | .ql-snow .ql-picker.ql-font .ql-picker-label::before, |
| | | .ql-snow .ql-picker.ql-font .ql-picker-item::before { |
| | | content: "æ ååä½"; |
| | | } |
| | | |
| | | .ql-snow .ql-picker.ql-font .ql-picker-label[data-value="serif"]::before, |
| | | .ql-snow .ql-picker.ql-font .ql-picker-item[data-value="serif"]::before { |
| | | content: "衬线åä½"; |
| | | } |
| | | |
| | | .ql-snow .ql-picker.ql-font .ql-picker-label[data-value="monospace"]::before, |
| | | .ql-snow .ql-picker.ql-font .ql-picker-item[data-value="monospace"]::before { |
| | | content: "ç宽åä½"; |
| | | } |
| | | </style> |