summaryrefslogtreecommitdiff
path: root/program/js/editor.js
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2009-07-23 06:57:20 +0000
committeralecpl <alec@alec.pl>2009-07-23 06:57:20 +0000
commita01b3bf9aee82b142724eb769a40a4d6df5d9e26 (patch)
treecf923b6cccda4958b704584e488d1f75d3b59890 /program/js/editor.js
parentc9e9fe1901631af76be85176434096de1df7f018 (diff)
- removed hardcoded 'compose-body' identifier (#1485996)
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;
}
}