From 0908b0f4345aec9f42feaf0c8510a3c92169fa91 Mon Sep 17 00:00:00 2001 From: Kagol Date: Fri, 27 Dec 2024 16:34:04 +0800 Subject: [PATCH 1/2] docs(fluent-editor): fixed text exceeding problem caused by too long content in the fluent-editor component demo --- .../fluent-editor/basic-usage-composition-api.vue | 14 ++++++++++++-- .../demos/pc/app/fluent-editor/basic-usage.vue | 14 ++++++++++++-- 2 files changed, 24 insertions(+), 4 deletions(-) diff --git a/examples/sites/demos/pc/app/fluent-editor/basic-usage-composition-api.vue b/examples/sites/demos/pc/app/fluent-editor/basic-usage-composition-api.vue index 6e7fec4fa3..2e2a41adef 100644 --- a/examples/sites/demos/pc/app/fluent-editor/basic-usage-composition-api.vue +++ b/examples/sites/demos/pc/app/fluent-editor/basic-usage-composition-api.vue @@ -1,8 +1,10 @@ @@ -12,3 +14,11 @@ import { TinyFluentEditor } from '@opentiny/vue' const content = ref('{"ops":[{"insert":"Hello "},{"attributes":{"bold":true},"insert":"FluentEditor"},{"insert":"!"}]}') + + diff --git a/examples/sites/demos/pc/app/fluent-editor/basic-usage.vue b/examples/sites/demos/pc/app/fluent-editor/basic-usage.vue index ac949c92c9..1247bd6a09 100644 --- a/examples/sites/demos/pc/app/fluent-editor/basic-usage.vue +++ b/examples/sites/demos/pc/app/fluent-editor/basic-usage.vue @@ -1,8 +1,10 @@ @@ -20,3 +22,11 @@ export default { } } + + From 73bdf7ddad34a78b056f07619b894d916b9827d9 Mon Sep 17 00:00:00 2001 From: Kagol Date: Fri, 27 Dec 2024 17:04:47 +0800 Subject: [PATCH 2/2] docs(fluent-editor): remove useless demo code --- .../basic-usage-composition-api.vue | 10 ++++------ .../demos/pc/app/fluent-editor/basic-usage.vue | 10 ++++------ .../before-editor-init-composition-api.vue | 16 ++++++---------- .../pc/app/fluent-editor/before-editor-init.vue | 16 ++++++---------- .../data-switch-composition-api.vue | 6 +----- .../demos/pc/app/fluent-editor/data-switch.vue | 6 +----- .../fluent-editor/disabled-composition-api.vue | 4 +--- .../demos/pc/app/fluent-editor/disabled.vue | 4 +--- .../image-upload-composition-api.vue | 6 +----- .../demos/pc/app/fluent-editor/image-upload.vue | 6 +----- .../fluent-editor/options-composition-api.vue | 6 +----- .../sites/demos/pc/app/fluent-editor/options.vue | 6 +----- 12 files changed, 28 insertions(+), 68 deletions(-) diff --git a/examples/sites/demos/pc/app/fluent-editor/basic-usage-composition-api.vue b/examples/sites/demos/pc/app/fluent-editor/basic-usage-composition-api.vue index 2e2a41adef..28b2e5cfd5 100644 --- a/examples/sites/demos/pc/app/fluent-editor/basic-usage-composition-api.vue +++ b/examples/sites/demos/pc/app/fluent-editor/basic-usage-composition-api.vue @@ -1,10 +1,8 @@ diff --git a/examples/sites/demos/pc/app/fluent-editor/basic-usage.vue b/examples/sites/demos/pc/app/fluent-editor/basic-usage.vue index 1247bd6a09..539ac23237 100644 --- a/examples/sites/demos/pc/app/fluent-editor/basic-usage.vue +++ b/examples/sites/demos/pc/app/fluent-editor/basic-usage.vue @@ -1,10 +1,8 @@ diff --git a/examples/sites/demos/pc/app/fluent-editor/before-editor-init-composition-api.vue b/examples/sites/demos/pc/app/fluent-editor/before-editor-init-composition-api.vue index 283e6dffb2..8c2652f795 100644 --- a/examples/sites/demos/pc/app/fluent-editor/before-editor-init-composition-api.vue +++ b/examples/sites/demos/pc/app/fluent-editor/before-editor-init-composition-api.vue @@ -1,14 +1,10 @@