/**\r
- * $Id: editor_plugin_src.js 738 2008-03-20 20:00:48Z spocke $\r
+ * $Id: editor_plugin_src.js 862 2008-06-02 20:09:06Z spocke $\r
*\r
* @author Moxiecode\r
* @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved.\r
return Event.cancel(e);\r
},\r
\r
- _insertText : function(content, bLinebreaks) { \r
+ _insertText : function(content, bLinebreaks) {\r
+ content = this.editor.dom.encode(content);\r
+\r
if (content && content.length > 0) {\r
if (bLinebreaks) { \r
// Special paragraph treatment \r
content = content.replace(/\n/g, '<br />');\r
}\r
} \r
- \r
+\r
this.editor.execCommand("mceInsertRawHTML", false, content); \r
}\r
},\r