summaryrefslogtreecommitdiff
path: root/program/js/tiny_mce/plugins/spellchecker/editor_plugin_src.js
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2011-04-20 09:57:35 +0000
committerthomascube <thomas@roundcube.net>2011-04-20 09:57:35 +0000
commit61517ce39da8d64b37328ee98d2d53a408351dd4 (patch)
treea80015b06b6be5e9016c114254dc1c98418d55bb /program/js/tiny_mce/plugins/spellchecker/editor_plugin_src.js
parentf6bd52054daaf2d41deead7fb86753d1bbbaf843 (diff)
Updated to TinyMCE 3.4.2 which is now compatible with IE9
Diffstat (limited to 'program/js/tiny_mce/plugins/spellchecker/editor_plugin_src.js')
-rw-r--r--program/js/tiny_mce/plugins/spellchecker/editor_plugin_src.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/program/js/tiny_mce/plugins/spellchecker/editor_plugin_src.js b/program/js/tiny_mce/plugins/spellchecker/editor_plugin_src.js
index b49fdf7ac..9757aec9c 100644
--- a/program/js/tiny_mce/plugins/spellchecker/editor_plugin_src.js
+++ b/program/js/tiny_mce/plugins/spellchecker/editor_plugin_src.js
@@ -221,7 +221,7 @@
},
_markWords : function(wl) {
- var ed = this.editor, dom = ed.dom, se = ed.selection, b = se.getBookmark(), nl = [],
+ var ed = this.editor, dom = ed.dom, doc = ed.getDoc(), se = ed.selection, b = se.getBookmark(), nl = [],
w = wl.join('|'), re = this._getSeparators(), rx = new RegExp('(^|[' + re + '])(' + w + ')(?=[' + re + ']|$)', 'g');
// Collect all text nodes
@@ -254,7 +254,7 @@
// Add text node for the content before the word
txt = v.substring(0, pos);
if (txt.length) {
- node = document.createTextNode(dom.decode(txt));
+ node = doc.createTextNode(dom.decode(txt));
elem.appendChild(node);
}
v = v.substring(pos+10);
@@ -266,7 +266,7 @@
}
// Add text node for the rest of the content
if (v.length) {
- node = document.createTextNode(dom.decode(v));
+ node = doc.createTextNode(dom.decode(v));
elem.appendChild(node);
}
} else {