|
@@ -23,6 +23,7 @@
|
|
import { useScript } from '/@/hooks/web/useScript';
|
|
import { useScript } from '/@/hooks/web/useScript';
|
|
import { snowUuid } from '/@/utils/uuid';
|
|
import { snowUuid } from '/@/utils/uuid';
|
|
import { bindHandlers } from './helper';
|
|
import { bindHandlers } from './helper';
|
|
|
|
+ import LineHeight from './lineHeight';
|
|
|
|
|
|
const CDN_URL = 'https://cdn.bootcdn.net/ajax/libs/tinymce/5.5.1';
|
|
const CDN_URL = 'https://cdn.bootcdn.net/ajax/libs/tinymce/5.5.1';
|
|
|
|
|
|
@@ -69,6 +70,8 @@
|
|
advlist_bullet_styles: 'square',
|
|
advlist_bullet_styles: 'square',
|
|
advlist_number_styles: 'default',
|
|
advlist_number_styles: 'default',
|
|
object_resizing: false,
|
|
object_resizing: false,
|
|
|
|
+ fontsize_formats: '10px 11px 12px 14px 16px 18px 20px 24px 36px 48px',
|
|
|
|
+ lineheight_formats: "1 1.5 1.75 2.0 3.0 4.0 5.0",
|
|
...options,
|
|
...options,
|
|
setup: (editor: any) => {
|
|
setup: (editor: any) => {
|
|
editorRef.value = editor;
|
|
editorRef.value = editor;
|
|
@@ -117,6 +120,7 @@
|
|
}
|
|
}
|
|
|
|
|
|
function initEditor() {
|
|
function initEditor() {
|
|
|
|
+ getTinymce().PluginManager.add('lineHeight', LineHeight(getTinymce()));
|
|
getTinymce().init(unref(initOptions));
|
|
getTinymce().init(unref(initOptions));
|
|
}
|
|
}
|
|
|
|
|