X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Ftiny_mce%2Fplugins%2Fspellchecker%2Feditor_plugin_src.js;h=fb32af43420c5245d88e6f469d3495d52ce30218;hb=a8ce0eff2e9c97d6c0c878451f83a3759ec0d07f;hp=ee4df887c9953883e33a56039c175b997c037772;hpb=2797e21fbf023037fc706d85ab314e609a0d3a07;p=citadel.git diff --git a/webcit/tiny_mce/plugins/spellchecker/editor_plugin_src.js b/webcit/tiny_mce/plugins/spellchecker/editor_plugin_src.js index ee4df887c..fb32af434 100644 --- a/webcit/tiny_mce/plugins/spellchecker/editor_plugin_src.js +++ b/webcit/tiny_mce/plugins/spellchecker/editor_plugin_src.js @@ -314,42 +314,44 @@ } else m.add({title : 'spellchecker.no_sug', 'class' : 'mceMenuItemTitle'}).setDisabled(1); - ignoreRpc = t.editor.getParam("spellchecker_enable_ignore_rpc", ''); - m.add({ - title : 'spellchecker.ignore_word', - onclick : function() { - var word = wordSpan.innerHTML; + if (ed.getParam('show_ignore_words', true)) { + ignoreRpc = t.editor.getParam("spellchecker_enable_ignore_rpc", ''); + m.add({ + title : 'spellchecker.ignore_word', + onclick : function() { + var word = wordSpan.innerHTML; - dom.remove(wordSpan, 1); - t._checkDone(); + dom.remove(wordSpan, 1); + t._checkDone(); - // tell the server if we need to - if (ignoreRpc) { - ed.setProgressState(1); - t._sendRPC('ignoreWord', [t.selectedLang, word], function(r) { - ed.setProgressState(0); - }); + // tell the server if we need to + if (ignoreRpc) { + ed.setProgressState(1); + t._sendRPC('ignoreWord', [t.selectedLang, word], function(r) { + ed.setProgressState(0); + }); + } } - } - }); + }); - m.add({ - title : 'spellchecker.ignore_words', - onclick : function() { - var word = wordSpan.innerHTML; + m.add({ + title : 'spellchecker.ignore_words', + onclick : function() { + var word = wordSpan.innerHTML; - t._removeWords(dom.decode(word)); - t._checkDone(); + t._removeWords(dom.decode(word)); + t._checkDone(); - // tell the server if we need to - if (ignoreRpc) { - ed.setProgressState(1); - t._sendRPC('ignoreWords', [t.selectedLang, word], function(r) { - ed.setProgressState(0); - }); + // tell the server if we need to + if (ignoreRpc) { + ed.setProgressState(1); + t._sendRPC('ignoreWords', [t.selectedLang, word], function(r) { + ed.setProgressState(0); + }); + } } - } - }); + }); + } if (t.editor.getParam("spellchecker_enable_learn_rpc")) { m.add({