diff --git a/yui/build/moodle-atto_wiris-button/moodle-atto_wiris-button-debug.js b/yui/build/moodle-atto_wiris-button/moodle-atto_wiris-button-debug.js index a7ff8cc..ec3b5b2 100644 --- a/yui/build/moodle-atto_wiris-button/moodle-atto_wiris-button-debug.js +++ b/yui/build/moodle-atto_wiris-button/moodle-atto_wiris-button-debug.js @@ -152,7 +152,7 @@ Y.namespace('M.atto_wiris').Button = Y.Base.create('button', Y.M.editor_atto.Edi var html = host.editor.get('innerHTML'); // Check if exist mathml tag for parse. if (html.indexOf('math»') >= 0 || html.indexOf('math>') >= 0) { - host.textarea.set('value', WirisPlugin.Parser.endParse(html, null, this.config.lang, true)); + host.textarea.set('value', WirisPlugin.Parser.endParseSaveMode(html, null, this.config.lang, true)); } }; diff --git a/yui/build/moodle-atto_wiris-button/moodle-atto_wiris-button.js b/yui/build/moodle-atto_wiris-button/moodle-atto_wiris-button.js index 972dc90..9cca4cb 100644 --- a/yui/build/moodle-atto_wiris-button/moodle-atto_wiris-button.js +++ b/yui/build/moodle-atto_wiris-button/moodle-atto_wiris-button.js @@ -151,7 +151,7 @@ Y.namespace('M.atto_wiris').Button = Y.Base.create('button', Y.M.editor_atto.Edi var html = host.editor.get('innerHTML'); // Check if exist mathml tag for parse. if (html.indexOf('math»') >= 0 || html.indexOf('math>') >= 0) { - host.textarea.set('value', WirisPlugin.Parser.endParse(html, null, this.config.lang, true)); + host.textarea.set('value', WirisPlugin.Parser.endParseSaveMode(html, null, this.config.lang, true)); } }; diff --git a/yui/src/button/js/button.js b/yui/src/button/js/button.js index ba5635c..83af66b 100644 --- a/yui/src/button/js/button.js +++ b/yui/src/button/js/button.js @@ -150,7 +150,7 @@ Y.namespace('M.atto_wiris').Button = Y.Base.create('button', Y.M.editor_atto.Edi var html = host.editor.get('innerHTML'); // Check if exist mathml tag for parse. if (html.indexOf('math»') >= 0 || html.indexOf('math>') >= 0) { - host.textarea.set('value', WirisPlugin.Parser.endParse(html, null, this.config.lang, true)); + host.textarea.set('value', WirisPlugin.Parser.endParseSaveMode(html, null, this.config.lang, true)); } };