Changeset 6000 in subversion
- Timestamp:
- Mar 13, 2012 5:09:47 AM (14 months ago)
- File:
-
- 1 edited
-
trunk/roundcubemail/program/js/app.js (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/program/js/app.js
r5994 r6000 3151 3151 3152 3152 if (window.tinyMCE && (ed = tinyMCE.get(this.env.composebody))) { 3153 if (ed.plugins .spellchecker && ed.plugins.spellchecker.active)3153 if (ed.plugins && ed.plugins.spellchecker && ed.plugins.spellchecker.active) 3154 3154 ed.execCommand('mceSpellCheck'); 3155 3155 } … … 3166 3166 var ed, active; 3167 3167 3168 if (window.tinyMCE && (ed = tinyMCE.get(this.env.composebody)) && ed.plugins .spellchecker)3168 if (window.tinyMCE && (ed = tinyMCE.get(this.env.composebody)) && ed.plugins && ed.plugins.spellchecker) 3169 3169 active = ed.plugins.spellchecker.active; 3170 3170 else if ((ed = this.env.spellcheck) && ed.state) 3171 3171 active = ed.state != 'ready' && ed.state != 'no_error_found'; 3172 3172 3173 $('#'+rcmail.buttons.spellcheck[0].id)[active ? 'addClass' : 'removeClass']('selected'); 3173 if (rcmail.buttons.spellcheck) 3174 $('#'+rcmail.buttons.spellcheck[0].id)[active ? 'addClass' : 'removeClass']('selected'); 3174 3175 3175 3176 return active; … … 3181 3182 var ed; 3182 3183 3183 if (window.tinyMCE && (ed = tinyMCE.get(this.env.composebody)) && ed.plugins .spellchecker)3184 if (window.tinyMCE && (ed = tinyMCE.get(this.env.composebody)) && ed.plugins && ed.plugins.spellchecker) 3184 3185 return ed.plugins.spellchecker.selectedLang; 3185 3186 else if (this.env.spellcheck) … … 3189 3190 this.spellcheck_lang_set = function(lang) 3190 3191 { 3191 var ed itor;3192 3193 if (window.tinyMCE && (ed itor = tinyMCE.get(this.env.composebody)))3194 ed itor.plugins.spellchecker.selectedLang = lang;3192 var ed; 3193 3194 if (window.tinyMCE && (ed = tinyMCE.get(this.env.composebody)) && ed.plugins) 3195 ed.plugins.spellchecker.selectedLang = lang; 3195 3196 else if (this.env.spellcheck) 3196 3197 this.env.spellcheck.setCurrentLanguage(lang);
Note: See TracChangeset
for help on using the changeset viewer.
