Fixed alignment issues
authorMarcel Werk <burntime@woltlab.com>
Wed, 12 Jun 2013 17:39:28 +0000 (19:39 +0200)
committerMarcel Werk <burntime@woltlab.com>
Wed, 12 Jun 2013 17:39:28 +0000 (19:39 +0200)
wcfsetup/install/files/js/3rdParty/ckeditor/plugins/wbbcode/plugin.js

index 7f04697f9f416ea7a8d0f2d208cff8181463e77d..edc7c7f32334e13f7a4605db8a5259d5def0594a 100644 (file)
                html = html.replace(/<tr>/gi, '[tr]');
                html = html.replace(/<\/tr>/gi, '[/tr]');
                
+               // [td]+[align]
+               html = html.replace(/<td style="text-align: ?(left|center|right|justify);? ?">([\s\S]*?)<\/td>/gi, "[td][align=$1]$2[/align][/td]");
+               
                // [td]
                html = html.replace(/<td>/gi, '[td]');
                html = html.replace(/<\/td>/gi, '[/td]');