From: Alexander Ebert Date: Fri, 28 Jun 2013 11:19:56 +0000 (+0200) Subject: Fixed pasting of content separated with divs instead of new lines X-Git-Tag: 2.0.0_Beta_5~118^2~14 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8b7c673805dc9639f584e02a1d317fc0d6aab8e0;p=GitHub%2FWoltLab%2FWCF.git Fixed pasting of content separated with divs instead of new lines --- 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");