Fix weird javascript error when setting editor content (#4781)
This commit is contained in:
parent
05b1c5c8b9
commit
7c3b2d646f
1 changed files with 1 additions and 0 deletions
|
@ -954,6 +954,7 @@ function rcube_kolab_notes_ui(settings)
|
|||
if (!readonly && editor) {
|
||||
gui_object('notesdetailview', container).hide();
|
||||
gui_object('noteseditform', container).show();
|
||||
editor.setContent(''); // #4781
|
||||
editor.setContent(html);
|
||||
node = editor.getContentAreaContainer().childNodes[0];
|
||||
if (node) node.tabIndex = content.get(0).tabIndex;
|
||||
|
|
Loading…
Add table
Reference in a new issue