From 4f51b244ecaf43c4acf9dc0925a80d7394f35a83 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Mon, 23 Feb 2015 14:47:59 +0100 Subject: [PATCH] Improved pasting of multi-line content --- .../install/files/js/3rdParty/redactor/plugins/wbbcode.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js index 144ecb840a..33ee10cd13 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js +++ b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js @@ -1388,7 +1388,7 @@ RedactorPlugins.wbbcode = function() { * @return string */ _pasteCallback: function(html) { - var $uuid = WCF.getUUID(); + /*var $uuid = WCF.getUUID(); // replace

...

with

...


unless there is already a newline html = html.replace(/

([\s\S]*?)<\/p>/gi, function(match, content) { @@ -1398,14 +1398,13 @@ RedactorPlugins.wbbcode = function() { return match + '@@@' + $uuid + '@@@'; }); - html = html.replace(new RegExp('@@@' + $uuid + '@@@(

)?', 'g'), function(match, next) { if (next) { return next; } return '


'; - }); + });*/ // restore font size html = html.replace(/\[size=(\d+)\]/g, '

'); -- 2.20.1