mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-06-28 06:46:27 +00:00
Resolve #750
This commit is contained in:
@@ -641,8 +641,8 @@ export class HtmlEditor {
|
||||
this.blurTrigger();
|
||||
this.onModeChange?.(!this.isPlain());
|
||||
});
|
||||
onReady.forEach(fn => fn());
|
||||
this.onReady = fn => fn();
|
||||
onReady.forEach(fn => fn());
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
4
dev/External/User/ko.js
vendored
4
dev/External/User/ko.js
vendored
@@ -81,8 +81,8 @@ Object.assign(ko.bindingHandlers, {
|
||||
let editor = null;
|
||||
|
||||
const fValue = fValueAccessor(),
|
||||
fUpdateEditorValue = () => fValue?.__editor?.setHtmlOrPlain(fValue()),
|
||||
fUpdateKoValue = () => fValue?.__editor && fValue(fValue.__editor.getDataWithHtmlMark()),
|
||||
fUpdateEditorValue = () => fValue.__editor?.setHtmlOrPlain(fValue()),
|
||||
fUpdateKoValue = () => fValue.__editor && fValue(fValue.__editor.getDataWithHtmlMark()),
|
||||
fOnReady = () => {
|
||||
fValue.__editor = editor;
|
||||
fUpdateEditorValue();
|
||||
|
||||
Reference in New Issue
Block a user