mirror of
https://github.com/e107inc/e107.git
synced 2025-04-14 01:22:13 +02:00
More TinyMce bbcode work.
This commit is contained in:
parent
a09dec0b6c
commit
0ddd1310ab
@ -43,11 +43,18 @@
|
||||
s = s.replace(re, str);
|
||||
};
|
||||
|
||||
// rep(/<td>([\s\S]*?)<\/td>/gim,"[td]$1[/td]\n"); // verified
|
||||
// rep(/<tr>([\s\S]*?)<\/tr>/gim,"[tr]$1[/tr]\n"); // verified
|
||||
// rep(/<table>([\s\S]*?)<\/table>/gim,"[table]$1[/table]\n"); // verified
|
||||
|
||||
|
||||
|
||||
return s;
|
||||
|
||||
rep(/<div style="text-align: center;">([\s\S]*)<\/div>/gi,"[center]$1[/center]"); // verified
|
||||
|
||||
|
||||
rep(/<li>/gi,"*"); // verified
|
||||
rep(/<li>/gi,"[*]"); // verified
|
||||
rep(/<\/li>/gi,""); // verified
|
||||
rep(/<ul>([\s\S]*?)<\/ul>/gim,"[list]$1[/list]\n"); // verified
|
||||
rep(/<ol .* style=\'list-style-type:\s*([\w]*).*\'>([\s\S]*)<\/ol>/gim,"[list=$1]$2[/list]\n"); // verified
|
||||
@ -118,7 +125,7 @@
|
||||
|
||||
rep(/(\[list=.*\])\\*([\s\S]*)(\[\/list])/gim,"<ol>$2</ol>"); // verified
|
||||
rep(/(\[list\])\\*([\s\S]*)(\[\/list])/gim,"<ul>$2</ul>");// verified
|
||||
rep(/^ *?\*(.*)/gim,"<li>$1</li>");
|
||||
rep(/^ *?\[\*\](.*)/gim,"<li>$1</li>");
|
||||
rep(/\[center\]([\s\S]*)\[\/center\]/gi,"<div style=\"text-align:center\">$1</div>"); // verified
|
||||
rep(/\[color=(.*?)\]([\s\S]*)\[\/color\]/gi,"<span style=\"color: $1;\">$2<\/span>"); // verified
|
||||
|
||||
|
@ -33,8 +33,8 @@ class tinymce_setup
|
||||
`tinymce_id`, `tinymce_name`, `tinymce_userclass`, `tinymce_plugins`, `tinymce_buttons1`, `tinymce_buttons2`, `tinymce_buttons3`, `tinymce_buttons4`, `tinymce_custom`, `tinymce_prefs`) VALUES
|
||||
(1, 'Simple Users', '252', 'e107bbcode,emoticons', 'bold, italic, underline, undo, redo, link, unlink, image, forecolor, bullist, numlist, outdent, indent, emoticons', '', '', '', '', ''),
|
||||
(2, 'Members', '253', 'e107bbcode,emoticons,table', 'bold, italic, underline, undo, redo, link, unlink, image, forecolor, removeformat, table, bullist, numlist, outdent, indent, emoticons', '', '', '', '', ''),
|
||||
(3, 'Administrators', '254', 'contextmenu,e107bbcode,emoticons,ibrowser,iespell,paste,table,xhtmlxtras', 'bold, italic, underline, undo, redo, link, unlink, image, forecolor, removeformat, table, bullist, numlist, outdent, indent, cleanup, code, emoticons', '', '', '', '', ''),
|
||||
(4, 'Main Admin', '250', 'advhr,advlink,autoresize,compat2x,contextmenu,directionality,emoticons,ibrowser,paste,table,visualchars,wordcount,xhtmlxtras,zoom', 'bold, italic, underline, undo, redo, link, unlink, ibrowser, forecolor, removeformat, table, bullist, numlist, outdent, indent, cleanup, code, emoticons', '', '', '', '', ''
|
||||
(3, 'Administrators', '254', 'e107bbcode,contextmenu,emoticons,ibrowser,iespell,paste,table,xhtmlxtras', 'bold, italic, underline, undo, redo, link, unlink, image, forecolor, removeformat, table, bullist, numlist, outdent, indent, cleanup, code, emoticons', '', '', '', '', ''),
|
||||
(4, 'Main Admin', '250', 'e107bbcode,advhr,advlink,autoresize,contextmenu,directionality,emoticons,ibrowser,paste,table,visualchars,wordcount,xhtmlxtras,zoom', 'bold, italic, underline, undo, redo, link, unlink, ibrowser, forecolor, removeformat, table, bullist, numlist, outdent, indent, cleanup, code, emoticons', '', '', '', '', ''
|
||||
);";
|
||||
|
||||
if($sql->db_Select_gen($query))
|
||||
|
Loading…
x
Reference in New Issue
Block a user