Skip to content

Commit

Permalink
fix: set value also needs to be used after ready to ensure that it ta…
Browse files Browse the repository at this point in the history
…kes effect (#19)

* setheight需要在ready后使用确保生效

* fix: 🐛 value也需要在ready后设置
  • Loading branch information
hejiajun107 authored Oct 31, 2023
1 parent 446f75a commit e062f3b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/UEditor/wwwroot/ueditor-blazor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down

0 comments on commit e062f3b

Please sign in to comment.