Skip to content

Commit

Permalink
setheight needs to be used after ready to ensure that it takes effect (
Browse files Browse the repository at this point in the history
  • Loading branch information
hejiajun107 authored Oct 27, 2023
1 parent 1ecc2ce commit 446f75a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/UEditor/wwwroot/ueditor-blazor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 446f75a

Please sign in to comment.