Fixed list-style-type support
authorMarcel Werk <burntime@woltlab.com>
Mon, 2 Sep 2013 20:55:12 +0000 (22:55 +0200)
committerMarcel Werk <burntime@woltlab.com>
Mon, 2 Sep 2013 20:55:12 +0000 (22:55 +0200)
wcfsetup/install/files/js/3rdParty/ckeditor/plugins/wbbcode/plugin.js

index d681e0e234afe2805884a2f2be7e6e76edb90df5..6006d9a041197f09fc3c35cd4747e3ade6323910 100644 (file)
                // [list]
                data = data.replace(/\[list\]/gi, '<ul>');
                data = data.replace(/\[list=1\]/gi, '<ul style="list-style-type: decimal">');
+               data = data.replace(/\[list=a\]/gi, '<ul style="list-style-type: lower-latin">');
+               data = data.replace(/\[list=(none|circle|square|disc|decimal|lower-roman|upper-roman|decimal-leading-zero|lower-greek|lower-latin|upper-latin|armenian|georgian)\]/gi, '<ul style="list-style-type: $1">');
                data = data.replace(/\[\/list]/gi, '</ul>');
                
                // [table]
                // [list]
                html = html.replace(/<ul>/gi, '[list]');
                html = html.replace(/<(ol|ul style="list-style-type: decimal")>/gi, '[list=1]');
+               html = html.replace(/<ul style="list-style-type: (none|circle|square|disc|decimal|lower-roman|upper-roman|decimal-leading-zero|lower-greek|lower-latin|upper-latin|armenian|georgian)">/gi, '[list=$1]');
                html = html.replace(/<\/(ul|ol)>/gi, '[/list]');
                
                // [table]