当前位置:网站首页>Baidu ueeditor set toolbar initial value
Baidu ueeditor set toolbar initial value
2022-06-25 05:09:00 【Lijianyi】
Project scenario :
Development Vue Baidu's... Was used in the project UEditor Editor , Although there is no official seal Vue edition , But the great folk gods are sealed vue-ueditor-wrap , But the great God just encapsulates a shell , But Baidu's official API It's very messy , So it's hard to solve the problem .
Problem description :
The main problem encountered this time is that the font size after the editor is opened by default is 16px, But I don't know what caused it 16px It can't be rendered , So the individual provides two solutions to the leaders .
planA: Add... To the rendering font-size: 16px;
planB: Set the font size to... In the editor 14px
Leaders are decisive because they don't want trouble planB, So I started a long search …
Solution :
I tried many methods in the middle, but they didn't work well , Finally, I found a way to set up
<vue-ueditor-wrap ref="myQuillEditor" class="vueclick" v-model="mdl.content" :init="init" @ready="ready" :config="editorConfig" >
</vue-ueditor-wrap>
ready(editor) {
this.editor = editor;
this.cratePop(editor);
editor.execCommand('fontSize', '14px');
},

边栏推荐
- Abuse unlimited authorization -- is your address safe?
- Use js to simply implement the apply, call and bind methods
- API interface management setup -eolinker4.0
- In depth understanding of line height and vertical align
- 渗透测试-目录遍历漏洞
- EL & JSTL (XIII)
- February 20ctf record
- 2021-10-24
- 电脑的dwg文件怎么打开
- Native JS high risk reminder pop-up code snippet, "are you sure you want to do this?" and "it cannot be recovered after deletion. Do you want to continue“
猜你喜欢

Qdebug June 2022

Detailed summary of position positioning

Customize the console plot result style

Student achievement management system based on SSH

How do the defi protocols perform under this round of stress test?

Ctfhub eggs

滲透測試-提權專題

Ranorex Studio 10.1 Crack

Penetration test - directory traversal vulnerability

Visual studio 2022 interface beautification tutorial
随机推荐
Go deep into the working principle of browser and JS engine (V8 engine as an example)
2021-04-02
Compatible with Internet Explorer
Prototypical Networks for Few-shot Learning
In Net 6 using dotnet format formatting code
What if win11 Bluetooth fails to connect? Solution of win11 Bluetooth unable to connect
Route parameters to jump to the page and transfer parameters -- > hidden parameter list
JS verification code input number auto skip
Startup mode of SoC verification environment
Visual studio 2022 interface beautification tutorial
小白一键重装官网下载使用方法
MySQL prevents Chinese garbled code and solves the problem of Chinese garbled code
hr竟主动给这位测试小姐姐涨工资,她是怎么做到的?
Leader: who can use redis expired monitoring to close orders and get out of here!
电脑的dwg文件怎么打开
Use js to simply implement the apply, call and bind methods
魔法猪系统重装大师怎么使用
My IC journey - the growth of senior chip design verification engineers - "Hu" said that IC engineers are perfect and advanced
Qdebug June 2022
ORA-00800: soft external error