From a01b3bf9aee82b142724eb769a40a4d6df5d9e26 Mon Sep 17 00:00:00 2001 From: alecpl <alec@alec.pl> Date: Thu, 23 Jul 2009 02:57:20 -0400 Subject: [PATCH] - removed hardcoded 'compose-body' identifier (#1485996) --- program/js/editor.js | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/program/js/editor.js b/program/js/editor.js index ed7c4f9..eeb16ec 100644 --- a/program/js/editor.js +++ b/program/js/editor.js @@ -73,10 +73,11 @@ 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; } } -- Gitblit v1.9.1