From 8b7c673805dc9639f584e02a1d317fc0d6aab8e0 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 28 Jun 2013 13:19:56 +0200 Subject: [PATCH] Fixed pasting of content separated with divs instead of new lines --- .../files/js/3rdParty/ckeditor/plugins/wbbcode/plugin.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/js/3rdParty/ckeditor/plugins/wbbcode/plugin.js b/wcfsetup/install/files/js/3rdParty/ckeditor/plugins/wbbcode/plugin.js index d295051190..56febbf5e2 100644 --- a/wcfsetup/install/files/js/3rdParty/ckeditor/plugins/wbbcode/plugin.js +++ b/wcfsetup/install/files/js/3rdParty/ckeditor/plugins/wbbcode/plugin.js @@ -21,10 +21,12 @@ $value = $value.replace(/
/gi, "\n"); $value = $value.replace(/<\/p>/gi,"\n\n"); $value = $value.replace(/ /gi," "); + $value = $value.replace(/])>/gi, ''); + $value = $value.replace(/<\/div>/gi, "\n"); // remove html tags $value = $value.replace(/<[^>]+>/g, ''); - + // fix multiple new lines $value = $value.replace(/\n{3,}/gi,"\n\n"); -- 2.20.1