Fix #445 update input value in realtime even if there are multiple editor instances on the page

This commit is contained in:
Kijin Sung 2024-06-20 01:02:40 +09:00
parent 2b1e4495e2
commit 5759eba8c4

View file

@ -174,7 +174,14 @@ function getAutoSavedSrl(ret_obj) {
instance.insertHtml(text, 'html');
};
// 자동저장 필드가 있다면 자동 저장 기능 활성화
// Automatically update content input value #445
instance.on('change', function(e) {
if (window.editorRelKeys[data.editorSequence].content) {
window.editorRelKeys[data.editorSequence].content.value = e.editor.getData();
}
});
// Enable autosave
if (typeof(fo_obj._saved_doc_title) !== 'undefined') {
editorEnableAutoSave(fo_obj, editor_sequence);
}