Fixed pasting of content separated with divs instead of new lines
authorAlexander Ebert <ebert@woltlab.com>
Fri, 28 Jun 2013 11:19:56 +0000 (13:19 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Fri, 28 Jun 2013 11:19:56 +0000 (13:19 +0200)
wcfsetup/install/files/js/3rdParty/ckeditor/plugins/wbbcode/plugin.js

index d295051190ccb66609e01b2bf4978df66bee87a6..56febbf5e23b586d3ea9c44364c380eb9660ae86 100644 (file)
                                $value = $value.replace(/<br>/gi, "\n");
                                $value = $value.replace(/<\/p>/gi,"\n\n");
                                $value = $value.replace(/&nbsp;/gi," ");
+                               $value = $value.replace(/<div([^>])>/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");