summaryrefslogtreecommitdiff
path: root/program/js/editor.js
diff options
context:
space:
mode:
Diffstat (limited to 'program/js/editor.js')
-rw-r--r--program/js/editor.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/program/js/editor.js b/program/js/editor.js
index ed7c4f9e8..eeb16ec96 100644
--- a/program/js/editor.js
+++ b/program/js/editor.js
@@ -73,10 +73,11 @@ function rcmail_editor_callback(editor)
function rcmail_editor_tabindex()
{
if (rcmail.env.task == 'mail') {
- var textarea = tinyMCE.get('compose-body').getElement();
- var editor = tinyMCE.get('compose-body').getContentAreaContainer().childNodes[0];
- if (textarea && editor)
- editor.tabIndex = textarea.tabIndex;
+ var editor = tinyMCE.get(rcmail.env.composebody);
+ var textarea = editor.getElement();
+ var node = editor.getContentAreaContainer().childNodes[0];
+ if (textarea && node)
+ node.tabIndex = textarea.tabIndex;
}
}