From b7827e6ea1619e5606011990d6b25e935b215f08 Mon Sep 17 00:00:00 2001 From: alecpl <alec@alec.pl> Date: Fri, 06 Feb 2009 04:34:02 -0500 Subject: [PATCH] - allow printing drafts --- program/js/tiny_mce/plugins/paste/editor_plugin_src.js | 8 +++++--- 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 b1e9632..f271758 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); } }, -- Gitblit v1.9.1