mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-05 15:37:03 +03:00
Resolve #750
This commit is contained in:
parent
4709e6fc25
commit
b2e111fc14
2 changed files with 3 additions and 3 deletions
|
|
@ -641,8 +641,8 @@ export class HtmlEditor {
|
||||||
this.blurTrigger();
|
this.blurTrigger();
|
||||||
this.onModeChange?.(!this.isPlain());
|
this.onModeChange?.(!this.isPlain());
|
||||||
});
|
});
|
||||||
onReady.forEach(fn => fn());
|
|
||||||
this.onReady = 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;
|
let editor = null;
|
||||||
|
|
||||||
const fValue = fValueAccessor(),
|
const fValue = fValueAccessor(),
|
||||||
fUpdateEditorValue = () => fValue?.__editor?.setHtmlOrPlain(fValue()),
|
fUpdateEditorValue = () => fValue.__editor?.setHtmlOrPlain(fValue()),
|
||||||
fUpdateKoValue = () => fValue?.__editor && fValue(fValue.__editor.getDataWithHtmlMark()),
|
fUpdateKoValue = () => fValue.__editor && fValue(fValue.__editor.getDataWithHtmlMark()),
|
||||||
fOnReady = () => {
|
fOnReady = () => {
|
||||||
fValue.__editor = editor;
|
fValue.__editor = editor;
|
||||||
fUpdateEditorValue();
|
fUpdateEditorValue();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue