From 1c2b6e5c341238e4a258c64ecbc97a6293be0456 Mon Sep 17 00:00:00 2001 From: sws <1141121512@qq.com> Date: Sun, 14 Jan 2024 20:02:06 +0800 Subject: [PATCH] =?UTF-8?q?1.=E7=BC=96=E8=BE=91=E5=99=A8=E4=BC=98=E5=8C=96?= =?UTF-8?q?=202024.1.14=20sws?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.json | 5 +---- pages/plugins/blog/form/form.vue | 14 +------------- .../sp-editor/components/sp-editor/sp-editor.vue | 2 ++ 3 files changed, 4 insertions(+), 17 deletions(-) diff --git a/pages.json b/pages.json index 62406775..d829fbea 100644 --- a/pages.json +++ b/pages.json @@ -944,10 +944,7 @@ "path": "form/form", "style": { "enablePullDownRefresh": true, - "navigationBarTitleText": "发布博文", - "enablePullDownRefresh": false, - // 禁止页面下拉 - "disableScroll": true + "navigationBarTitleText": "发布博文" } } ] diff --git a/pages/plugins/blog/form/form.vue b/pages/plugins/blog/form/form.vue index 2dca9a86..840cd799 100644 --- a/pages/plugins/blog/form/form.vue +++ b/pages/plugins/blog/form/form.vue @@ -46,7 +46,7 @@ 内容* - + @@ -301,18 +301,6 @@ data: new_data, }); }, - /** - * 编辑器就绪 - * @param {Object} editor 编辑器实例,你可以自定义调用editor实例的方法 - * @tutorial editor组件 https://uniapp.dcloud.net.cn/component/editor.html#editor-%E7%BB%84%E4%BB%B6 - * @tutorial 相关api https://uniapp.dcloud.net.cn/api/media/editor-context.html - */ - initEditor(editor) { - // 初始化编辑器内容 - editor.setContents({ - html: (this.data || null) !== null ? this.data.content : '', - }); - }, // 回调富文本内容 rich_text_event(e) { diff --git a/uni_modules/sp-editor/components/sp-editor/sp-editor.vue b/uni_modules/sp-editor/components/sp-editor/sp-editor.vue index f9b122fe..983fc4d9 100644 --- a/uni_modules/sp-editor/components/sp-editor/sp-editor.vue +++ b/uni_modules/sp-editor/components/sp-editor/sp-editor.vue @@ -84,6 +84,7 @@ source: 'url("https://sungd.github.io/Pacifico.ttf")', }); // #endif + onEditorReady(); }, watch: { templates: function (new_val, old_val) { @@ -277,6 +278,7 @@ width: 100%; height: 100%; line-height: 1.5; + overflow-y: auto !important; } ::v-deep .ql-editor.ql-blank::before {