Skip to content

Commit e062f3b

Browse files
authored
fix: set value also needs to be used after ready to ensure that it takes effect (#19)
* setheight需要在ready后使用确保生效 * fix: 🐛 value也需要在ready后设置
1 parent 446f75a commit e062f3b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/UEditor/wwwroot/ueditor-blazor.js

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ window.UEditorBlazor = {
99
domRef.UEditor = UE.getEditor(domRef.id, options);
1010
domRef.UEditor.ready(function () {
1111
editor.invokeMethodAsync('HandleRendered');
12+
domRef.UEditor.setContent(value || "");
1213
domRef.UEditor.setHeight(options.height);
1314
});
1415
domRef.UEditor.addListener('contentchange', function () {

0 commit comments

Comments
 (0)