summaryrefslogtreecommitdiff
path: root/roundcubemail/program/js/app.js
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-07-23 06:57:20 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-07-23 06:57:20 +0000
commit3934f815932fa6dcfe7bf15c3d49bbb0036cec3e (patch)
tree5a199ef20f1fd2b5df117955cbdb47a1f76647f0 /roundcubemail/program/js/app.js
parent00286b2f3026f1bf9112e12b15ecc815b80bcbbe (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/app.js')
-rw-r--r--roundcubemail/program/js/app.js17
1 files changed, 10 insertions, 7 deletions
diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js
index 8a9a580f8..b192297f7 100644
--- a/roundcubemail/program/js/app.js
+++ b/roundcubemail/program/js/app.js
@@ -913,7 +913,7 @@ function rcube_webmail()
break;
case 'spellcheck':
- if (window.tinyMCE && tinyMCE.get('compose-body')) {
+ if (window.tinyMCE && tinyMCE.get(this.env.composebody)) {
tinyMCE.execCommand('mceSpellCheck', true);
}
else if (this.env.spellcheck && this.env.spellcheck.spellCheck && this.spellcheck_ready) {
@@ -2156,14 +2156,17 @@ function rcube_webmail()
}
// check for empty body
- if ((!window.tinyMCE || !tinyMCE.get('compose-body')) && input_message.val() == '' && !confirm(this.get_label('nobodywarning')))
+ if ((!window.tinyMCE || !tinyMCE.get(this.env.composebody))
+ && input_message.val() == '' && !confirm(this.get_label('nobodywarning')))
{
input_message.focus();
return false;
}
- else if (window.tinyMCE && tinyMCE.get('compose-body') && !tinyMCE.get('compose-body').getContent() && !confirm(this.get_label('nobodywarning')))
+ else if (window.tinyMCE && tinyMCE.get(this.env.composebody)
+ && !tinyMCE.get(this.env.composebody).getContent()
+ && !confirm(this.get_label('nobodywarning')))
{
- tinyMCE.get('compose-body').focus();
+ tinyMCE.get(this.env.composebody).focus();
return false;
}
@@ -2171,7 +2174,7 @@ function rcube_webmail()
this.stop_spellchecking();
// move body from html editor to textarea (just to be sure, #1485860)
- if (window.tinyMCE && tinyMCE.get('compose-body'))
+ if (window.tinyMCE && tinyMCE.get(this.env.composebody))
tinyMCE.triggerSave();
return true;
@@ -2234,7 +2237,7 @@ function rcube_webmail()
if (value_subject)
str += value_subject+':';
- var editor = tinyMCE.get('compose-body');
+ var editor = tinyMCE.get(this.env.composebody);
if (editor)
str += editor.getContent();
else
@@ -2297,7 +2300,7 @@ function rcube_webmail()
}
else
{
- var editor = tinyMCE.get('compose-body');
+ var editor = tinyMCE.get(this.env.composebody);
if (this.env.signatures)
{