@@ -19,28 +19,6 @@ let editor: FluentEditor
1919const editorRef = ref <HTMLElement >()
2020const lang = ref (' en-US' )
2121
22- const TOOLBAR_CONFIG = [
23- [' undo' , ' redo' , ' clean' , ' format-painter' ],
24- [
25- // 请保留默认值为 false
26- { header: [1 , 2 , 3 , 4 , 5 , 6 , false ] },
27- { font: [false , ' 宋体' , ' 微软雅黑' , ' 楷体' , ' 黑体' , ' 隶书' , ' andale mono' , ' arial' , ' arial black' , ' comic sans ms' , ' impact' , ' times new roman' ] },
28- { size: [false , ' 12px' , ' 14px' , ' 16px' , ' 18px' , ' 20px' , ' 24px' , ' 32px' , ' 36px' , ' 48px' , ' 72px' ] },
29- { ' line-height' : [false , ' 1.2' , ' 1.5' , ' 1.75' , ' 2' , ' 3' , ' 4' , ' 5' ] },
30- ],
31- [' bold' , ' italic' , ' strike' , ' underline' , ' divider' ],
32- [{ color: [] }, { background: [] }],
33- [{ align: ' ' }, { align: ' center' }, { align: ' right' }, { align: ' justify' }],
34- [{ list: ' ordered' }, { list: ' bullet' }, { list: ' check' }],
35- [{ script: ' sub' }, { script: ' super' }],
36- [{ indent: ' -1' }, { indent: ' +1' }],
37- [{ direction: ' rtl' }],
38- [' link' , ' blockquote' , ' code' , ' code-block' ],
39- [' image' , ' file' ],
40- [' emoji' , ' video' , ' formula' , ' screenshot' , ' fullscreen' ],
41- [{ ' table-up' : [] }],
42- ]
43-
4422onMounted (async () => {
4523 // ssr compat, reference: https://vitepress.dev/guide/ssr-compat#importing-in-mounted-hook
4624 const [
0 commit comments