mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-09-03 04:31:46 +02:00
remove focus/blur editor logic on set content
This commit is contained in:
@@ -155,7 +155,7 @@ function attachMessageListener() {
|
||||
case 'html':
|
||||
isLoading = true;
|
||||
globalThis.isClearingNoteData = false;
|
||||
tinymce.activeEditor.mode.set('readonly');
|
||||
// tinymce.activeEditor.mode.set('readonly');
|
||||
if (!isInvalidValue(value)) {
|
||||
tinymce.activeEditor.setHTML(value);
|
||||
reactNativeEventHandler('noteLoaded', true);
|
||||
@@ -168,13 +168,13 @@ function attachMessageListener() {
|
||||
reactNativeEventHandler('noteLoaded', true);
|
||||
}
|
||||
|
||||
setTimeout(function () {
|
||||
document.activeElement.blur();
|
||||
window.blur();
|
||||
tinymce.activeEditor.mode.set('design');
|
||||
document.activeElement.blur();
|
||||
window.blur();
|
||||
}, 300);
|
||||
// setTimeout(function () {
|
||||
// document.activeElement.blur();
|
||||
// window.blur();
|
||||
// tinymce.activeEditor.mode.set('design');
|
||||
// document.activeElement.blur();
|
||||
// window.blur();
|
||||
// }, 300);
|
||||
info = document.querySelector(infoBar);
|
||||
info.querySelector('#infowords').innerText =
|
||||
editor.countWords() + ' words';
|
||||
|
||||
Reference in New Issue
Block a user