通过 data-type
指定富文本数据保存的格式。数据默认保存格式为 Delta 形式,若需要将数据保存格式设置为 HTML 形式,并关闭 HTML 格式自动转 Delta 格式,设置 :data-type="false"
,:data-upgrade="false"
。
The direction of the separator line can be set through thedirection
attribute.
通过属性 disabled
可设置编辑器为不可编辑状态。
The position of the separator text can be set through thecontent position
attribute.
image-upload
设置图片上传模块的配置项。',
+ 'en-US': ''
+ },
+ codeFiles: ['image-upload.vue']
+ },
+ {
+ demoId: 'options',
+ name: {
+ 'zh-CN': '编辑器配置',
+ 'en-US': ''
+ },
+ desc: {
+ 'zh-CN': '通过 options
设置编辑器的配置项,支持的配置项和 Quill 的相同,可参考 Quill 文档。',
+ 'en-US': ''
+ },
+ codeFiles: ['options.vue']
+ },
]
}
diff --git a/packages/renderless/src/fluent-editor/options.ts b/packages/renderless/src/fluent-editor/options.ts
index eca28cc73..1cd20d12e 100644
--- a/packages/renderless/src/fluent-editor/options.ts
+++ b/packages/renderless/src/fluent-editor/options.ts
@@ -43,7 +43,7 @@ const toolbar = (FluentEditor) => {
[{ direction: 'rtl' }],
[{ color: [] }, { background: [] }],
[{ align: [] }],
- ['link', 'image', 'video', 'file'],
+ ['link', 'image'],
['better-table'],
['fullscreen']
]
diff --git a/packages/theme/src/fluent-editor/index.less b/packages/theme/src/fluent-editor/index.less
index 8b151da78..ccc9851dd 100644
--- a/packages/theme/src/fluent-editor/index.less
+++ b/packages/theme/src/fluent-editor/index.less
@@ -72,6 +72,8 @@
}
span.ql-lineheight {
+ margin-right: 24px !important;
+
> span {
width: 60px;
}
@@ -106,6 +108,10 @@
background-color: rgba(25, 25, 25, 0.1);
color: #191919;
}
+
+ &::after {
+ display: none;
+ }
}
}
diff --git a/packages/vue/src/fluent-editor/src/mobile-first.vue b/packages/vue/src/fluent-editor/src/mobile-first.vue
index 49d337e4b..949c6348e 100644
--- a/packages/vue/src/fluent-editor/src/mobile-first.vue
+++ b/packages/vue/src/fluent-editor/src/mobile-first.vue
@@ -83,6 +83,7 @@ export default defineComponent({
IconCloudUpload: IconCloudUpload(),
IconFullscreen: IconFullscreen()
},
+ emits: ['ready', 'blur', 'focus', 'update:modelValue', 'change'],
props: [
...props,
'_constants',