From 12d1da4b65d7f5f2f227d71ab13ea271f9e2c7cd Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Wed, 7 Jan 2015 01:25:27 +0100 Subject: [PATCH] Fixed inserting of text modules. --- app/assets/javascripts/app/lib/base/jquery.textmodule.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/app/lib/base/jquery.textmodule.js b/app/assets/javascripts/app/lib/base/jquery.textmodule.js index c57c7634d..989443f39 100644 --- a/app/assets/javascripts/app/lib/base/jquery.textmodule.js +++ b/app/assets/javascripts/app/lib/base/jquery.textmodule.js @@ -243,6 +243,7 @@ // paste some content Plugin.prototype.paste = function(string) { + string = App.Utils.text2html(string) + '
' if (document.selection) { // IE var range = document.selection.createRange() range.pasteHTML(string) @@ -280,7 +281,7 @@ for (var i = 0; i < this.collection.length; i++) { var item = this.collection[i] if ( item.id == id ) { - var content = item.content + "
\n" + var content = item.content this.cutInput() this.paste(content) this.close()