Skip to content

Commit

Permalink
Fixed IE specific error when getting the bookmark on submit.
Browse files Browse the repository at this point in the history
  • Loading branch information
spocke committed Jun 16, 2010
1 parent c39a310 commit a69303e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions jscripts/tiny_mce/plugins/visualchars/editor_plugin_src.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
ed.onBeforeGetContent.add(function(ed, o) {
if (t.state && o.format != 'raw' && !o.draft) {
t.state = true;
t._toggleVisualChars();
t._toggleVisualChars(false);
}
});
},
Expand All @@ -41,12 +41,14 @@

// Private methods

_toggleVisualChars : function() {
_toggleVisualChars : function(bookmark) {
var t = this, ed = t.editor, nl, i, h, d = ed.getDoc(), b = ed.getBody(), nv, s = ed.selection, bo, div, bm;

t.state = !t.state;
ed.controlManager.setActive('visualchars', t.state);
bm = s.getBookmark();

if (bookmark)
bm = s.getBookmark();

if (t.state) {
nl = [];
Expand Down

0 comments on commit a69303e

Please sign in to comment.