diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-07-23 06:57:20 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-07-23 06:57:20 +0000 |
| commit | 3934f815932fa6dcfe7bf15c3d49bbb0036cec3e (patch) | |
| tree | 5a199ef20f1fd2b5df117955cbdb47a1f76647f0 /roundcubemail/program/js/editor.js | |
| parent | 00286b2f3026f1bf9112e12b15ecc815b80bcbbe (diff) | |
- removed hardcoded 'compose-body' identifier (#1485996)
git-svn-id: https://svn.roundcube.net/trunk@2787 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/js/editor.js')
| -rw-r--r-- | roundcubemail/program/js/editor.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/roundcubemail/program/js/editor.js b/roundcubemail/program/js/editor.js index ed7c4f9e8..eeb16ec96 100644 --- a/roundcubemail/program/js/editor.js +++ b/roundcubemail/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; } } |
