mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 11:44:10 +09:00
Fix #445 update input value in realtime even if there are multiple editor instances on the page
This commit is contained in:
parent
2b1e4495e2
commit
5759eba8c4
1 changed files with 8 additions and 1 deletions
|
|
@ -174,7 +174,14 @@ function getAutoSavedSrl(ret_obj) {
|
||||||
instance.insertHtml(text, 'html');
|
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') {
|
if (typeof(fo_obj._saved_doc_title) !== 'undefined') {
|
||||||
editorEnableAutoSave(fo_obj, editor_sequence);
|
editorEnableAutoSave(fo_obj, editor_sequence);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue