Skip to content

Commit 68651b5

Browse files
Editor: fix update (#465)
Also add `change` event.
1 parent 67f3f4b commit 68651b5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/View/Components/Editor.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ public function render(): View|Closure|string
9393
9494
setup: function(editor) {
9595
editor.on('keyup', (e) => value = editor.getContent())
96+
editor.on('change', (e) => value = editor.getContent())
9697
editor.on('init', () => editor.setContent(value ?? ''))
9798
editor.on('OpenWindow', (e) => tinymce.activeEditor.topLevelWindow = e.dialog)
9899
},

0 commit comments

Comments
 (0)