fix(core): Notify sgCkeditor component when clicking the send button to update content. Fixes #5952.

This commit is contained in:
smizrahi
2024-04-29 22:21:33 +02:00
parent 9b5a8cb6fc
commit c2d9050539
2 changed files with 11 additions and 13 deletions
@@ -27,6 +27,7 @@
this.sendState = false;
this.toggleFullscreen = toggleFullscreen;
this.firstFocus = true;
this.editor = null;
_initFileUploader();
@@ -251,6 +252,9 @@
};
this.send = function () {
if (this.editor && this.editor.component)
this.editor.component.onEditorChange(true); // Call onEditorChange on sgCkEditor component
this.sendState = 'sending';
if (this.autosave)
$timeout.cancel(this.autosave);
@@ -527,6 +531,7 @@
this.onHTMLReady = function ($editor) {
if (!this.isNew()) {
this.editor = $editor;
onCompletePromise().then(function() {
$editor.focus();
});