summaryrefslogtreecommitdiff
path: root/program/js/tiny_mce/plugins/paste/editor_plugin_src.js
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2008-07-18 14:59:01 +0000
committeralecpl <alec@alec.pl>2008-07-18 14:59:01 +0000
commit18240a9201d193a5a2420f8644fa05b7bfbceeec (patch)
tree79f1f65e1eede1f8f5e8bf87960594c286b600e8 /program/js/tiny_mce/plugins/paste/editor_plugin_src.js
parentbc0fe54235ae4f5cd4a74be91beb1f9953eb7b03 (diff)
- Updated TinyMCE to version 3.1.0.1
Diffstat (limited to 'program/js/tiny_mce/plugins/paste/editor_plugin_src.js')
-rw-r--r--program/js/tiny_mce/plugins/paste/editor_plugin_src.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/program/js/tiny_mce/plugins/paste/editor_plugin_src.js b/program/js/tiny_mce/plugins/paste/editor_plugin_src.js
index b1e963261..f271758f9 100644
--- a/program/js/tiny_mce/plugins/paste/editor_plugin_src.js
+++ b/program/js/tiny_mce/plugins/paste/editor_plugin_src.js
@@ -1,5 +1,5 @@
/**
- * $Id: editor_plugin_src.js 738 2008-03-20 20:00:48Z spocke $
+ * $Id: editor_plugin_src.js 862 2008-06-02 20:09:06Z spocke $
*
* @author Moxiecode
* @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved.
@@ -103,7 +103,9 @@
return Event.cancel(e);
},
- _insertText : function(content, bLinebreaks) {
+ _insertText : function(content, bLinebreaks) {
+ content = this.editor.dom.encode(content);
+
if (content && content.length > 0) {
if (bLinebreaks) {
// Special paragraph treatment
@@ -154,7 +156,7 @@
content = content.replace(/\n/g, '<br />');
}
}
-
+
this.editor.execCommand("mceInsertRawHTML", false, content);
}
},