From f6c03cac828de8c601bd29ede78d00506f779eff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=98=89=E4=BF=8A=20=E4=BD=95?= Date: Thu, 26 Oct 2023 18:15:29 +0800 Subject: [PATCH 1/2] =?UTF-8?q?setheight=E9=9C=80=E8=A6=81=E5=9C=A8ready?= =?UTF-8?q?=E5=90=8E=E4=BD=BF=E7=94=A8=E7=A1=AE=E4=BF=9D=E7=94=9F=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/UEditor/wwwroot/ueditor-blazor.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/UEditor/wwwroot/ueditor-blazor.js b/src/UEditor/wwwroot/ueditor-blazor.js index d3ca450..71c93fe 100644 --- a/src/UEditor/wwwroot/ueditor-blazor.js +++ b/src/UEditor/wwwroot/ueditor-blazor.js @@ -8,7 +8,8 @@ window.UEditorBlazor = { domRef.UEditor = UE.getEditor(domRef.id, options); domRef.UEditor.ready(function () { - editor.invokeMethodAsync('HandleRendered'); + editor.invokeMethodAsync('HandleRendered'); + domRef.UEditor.setHeight(options.height); }); domRef.UEditor.addListener('contentchange', function () { var content = domRef.UEditor.getContent(); From 5951d8ea20abca8c0223c3d3febe5e79b6c44097 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=98=89=E4=BF=8A=20=E4=BD=95?= Date: Tue, 31 Oct 2023 13:38:09 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix:=20=F0=9F=90=9B=20value=E4=B9=9F?= =?UTF-8?q?=E9=9C=80=E8=A6=81=E5=9C=A8ready=E5=90=8E=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/UEditor/wwwroot/ueditor-blazor.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/UEditor/wwwroot/ueditor-blazor.js b/src/UEditor/wwwroot/ueditor-blazor.js index 71c93fe..3ffe40a 100644 --- a/src/UEditor/wwwroot/ueditor-blazor.js +++ b/src/UEditor/wwwroot/ueditor-blazor.js @@ -9,6 +9,7 @@ window.UEditorBlazor = { domRef.UEditor = UE.getEditor(domRef.id, options); domRef.UEditor.ready(function () { editor.invokeMethodAsync('HandleRendered'); + domRef.UEditor.setContent(value || ""); domRef.UEditor.setHeight(options.height); }); domRef.UEditor.addListener('contentchange', function () {