mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-05 16:35:10 +00:00
fix(core): Notify sgCkeditor component when clicking the send button to update content. Fixes #5952.
This commit is contained in:
@@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user