Commit | Line | Data |
---|---|---|
dcc2332d MW |
1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | <data xmlns="http://www.woltlab.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.woltlab.com http://www.woltlab.com/XSD/maelstrom/bbcode.xsd"> | |
3 | <import> | |
4 | <bbcode name="b"> | |
5 | <htmlopen>b</htmlopen> | |
6 | <htmlclose>b</htmlclose> | |
7 | <allowedchildren>all^b</allowedchildren> | |
8 | </bbcode> | |
9 | <bbcode name="i"> | |
10 | <htmlopen>i</htmlopen> | |
11 | <htmlclose>i</htmlclose> | |
12 | <allowedchildren>all^i</allowedchildren> | |
13 | </bbcode> | |
14 | <bbcode name="u"> | |
15 | <htmlopen>span style="text-decoration: underline"</htmlopen> | |
16 | <htmlclose>span</htmlclose> | |
17 | <allowedchildren>all^u</allowedchildren> | |
18 | </bbcode> | |
19 | <bbcode name="s"> | |
20 | <htmlopen>s</htmlopen> | |
21 | <htmlclose>s</htmlclose> | |
22 | <allowedchildren>all^s</allowedchildren> | |
23 | </bbcode> | |
24 | <bbcode name="sub"> | |
25 | <htmlopen>sub</htmlopen> | |
26 | <htmlclose>sub</htmlclose> | |
27 | <allowedchildren>all^sub</allowedchildren> | |
28 | </bbcode> | |
29 | <bbcode name="sup"> | |
30 | <htmlopen>sup</htmlopen> | |
31 | <htmlclose>sup</htmlclose> | |
32 | <allowedchildren>all^sup</allowedchildren> | |
33 | </bbcode> | |
34 | <bbcode name="email"> | |
58f4c2d4 | 35 | <classname><![CDATA[wcf\system\bbcode\EmailBBCode]]></classname> |
dcc2332d MW |
36 | <allowedchildren>none^img,b,i,u,s,sub,sup,color,size,font</allowedchildren> |
37 | <attributes> | |
38 | <attribute name="0"> | |
dcc2332d MW |
39 | <required>1</required> |
40 | <usetext>1</usetext> | |
41 | <validationpattern>^[^\s]+@[^\s]+$</validationpattern> | |
42 | </attribute> | |
43 | </attributes> | |
44 | </bbcode> | |
45 | <bbcode name="color"> | |
46 | <htmlopen>span</htmlopen> | |
47 | <htmlclose>span</htmlclose> | |
48 | <attributes> | |
49 | <attribute name="0"> | |
50 | <html>style="color: %s"</html> | |
51 | <validationpattern>^(#([0-9a-f]{3}|[0-9a-f]{6})|[a-z]+)$</validationpattern> | |
52 | <required>1</required> | |
53 | </attribute> | |
54 | </attributes> | |
55 | </bbcode> | |
56 | <bbcode name="size"> | |
57 | <htmlopen>span</htmlopen> | |
58 | <htmlclose>span</htmlclose> | |
59 | <attributes> | |
60 | <attribute name="0"> | |
61 | <html>style="font-size: %dpt"</html> | |
62 | <validationpattern>^([89]{1}|[1-3]{1}[0-9]{1})$</validationpattern> | |
63 | <required>1</required> | |
64 | </attribute> | |
65 | </attributes> | |
66 | <wysiwyg>1</wysiwyg> | |
67 | </bbcode> | |
68 | <bbcode name="font"> | |
69 | <htmlopen>span</htmlopen> | |
70 | <htmlclose>span</htmlclose> | |
71 | <attributes> | |
72 | <attribute name="0"> | |
73 | <html>style="font-family: %s"</html> | |
74 | <validationpattern>^[^"';}\(\)]*$</validationpattern> | |
75 | <required>1</required> | |
76 | </attribute> | |
77 | </attributes> | |
78 | </bbcode> | |
79 | <bbcode name="align"> | |
80 | <htmlopen>div</htmlopen> | |
81 | <htmlclose>div</htmlclose> | |
82 | <attributes> | |
83 | <attribute name="0"> | |
84 | <html>style="text-align: %s"</html> | |
85 | <validationpattern>^(left|right|center|justify)$</validationpattern> | |
86 | <required>1</required> | |
87 | </attribute> | |
88 | </attributes> | |
89 | </bbcode> | |
90 | <bbcode name="quote"> | |
e9adedec | 91 | <classname><![CDATA[wcf\system\bbcode\QuoteBBCode]]></classname> |
dcc2332d MW |
92 | <attributes> |
93 | <attribute name="0"></attribute> | |
94 | <attribute name="1"></attribute> | |
95 | </attributes> | |
3f5d34eb | 96 | <wysiwygicon>fa-quote-left</wysiwygicon> |
32deb4ef | 97 | <buttonlabel>wcf.bbcode.button.quote</buttonlabel> |
dcc2332d MW |
98 | </bbcode> |
99 | <bbcode name="code"> | |
e9adedec | 100 | <classname><![CDATA[wcf\system\bbcode\CodeBBCode]]></classname> |
dcc2332d MW |
101 | <allowedchildren>none</allowedchildren> |
102 | <attributes> | |
625d206c MW |
103 | <attribute name="0"></attribute> |
104 | <attribute name="1"></attribute> | |
105 | <attribute name="2"></attribute> | |
dcc2332d MW |
106 | </attributes> |
107 | <sourcecode>1</sourcecode> | |
3f5d34eb | 108 | <wysiwygicon>fa-code</wysiwygicon> |
32deb4ef | 109 | <buttonlabel>wcf.bbcode.button.code</buttonlabel> |
dcc2332d MW |
110 | </bbcode> |
111 | <bbcode name="img"> | |
e9adedec | 112 | <classname><![CDATA[wcf\system\bbcode\ImageBBCode]]></classname> |
dcc2332d MW |
113 | <allowedchildren>none</allowedchildren> |
114 | <attributes> | |
115 | <attribute name="0"> | |
116 | <required>1</required> | |
117 | <usetext>1</usetext> | |
118 | <validationpattern>^.+$</validationpattern> | |
119 | </attribute> | |
120 | <attribute name="1"> | |
5bc2753a AE |
121 | <validationpattern>^(left|right|none)$</validationpattern> |
122 | </attribute> | |
123 | <attribute name="2"> | |
124 | <validationpattern>^\d+$</validationpattern> | |
dcc2332d MW |
125 | </attribute> |
126 | </attributes> | |
127 | </bbcode> | |
128 | <bbcode name="url"> | |
e9adedec | 129 | <classname><![CDATA[wcf\system\bbcode\URLBBCode]]></classname> |
dcc2332d MW |
130 | <allowedchildren>none^img,b,i,u,s,sub,sup,color,size,font</allowedchildren> |
131 | <attributes> | |
132 | <attribute name="0"> | |
133 | <required>1</required> | |
134 | <usetext>1</usetext> | |
135 | <validationpattern>^.+$</validationpattern> | |
136 | </attribute> | |
137 | </attributes> | |
138 | </bbcode> | |
139 | <bbcode name="list"> | |
e9adedec | 140 | <classname><![CDATA[wcf\system\bbcode\ListBBCode]]></classname> |
011759db | 141 | <allowedchildren>none^img,b,i,u,s,sub,sup,color,size,font,list,url,email,attach,tt</allowedchildren> |
dcc2332d MW |
142 | <attributes> |
143 | <attribute name="0"> | |
144 | <validationpattern>^(1|a|none|circle|square|disc|decimal|lower-roman|upper-roman|decimal-leading-zero|lower-greek|lower-latin|upper-latin|armenian|georgian)$</validationpattern> | |
145 | </attribute> | |
146 | </attributes> | |
147 | </bbcode> | |
148 | <bbcode name="table"> | |
e9adedec | 149 | <classname><![CDATA[wcf\system\bbcode\TableBBCode]]></classname> |
dcc2332d MW |
150 | <allowedchildren>all^table</allowedchildren> |
151 | </bbcode> | |
152 | <bbcode name="media"> | |
e9adedec | 153 | <classname><![CDATA[wcf\system\bbcode\MediaBBCode]]></classname> |
dcc2332d MW |
154 | <sourcecode>1</sourcecode> |
155 | </bbcode> | |
156 | <bbcode name="spoiler"> | |
e9adedec | 157 | <classname><![CDATA[wcf\system\bbcode\SpoilerBBCode]]></classname> |
dcc2332d MW |
158 | <attributes> |
159 | <attribute name="0"></attribute> | |
160 | </attributes> | |
3f5d34eb | 161 | <wysiwygicon>fa-eye-slash</wysiwygicon> |
32deb4ef | 162 | <buttonlabel>wcf.bbcode.button.spoiler</buttonlabel> |
dcc2332d MW |
163 | </bbcode> |
164 | <bbcode name="tt"> | |
8a388f7f AE |
165 | <htmlopen>kbd</htmlopen> |
166 | <htmlclose>kbd</htmlclose> | |
dcc2332d MW |
167 | <allowedchildren>none</allowedchildren> |
168 | <sourcecode>1</sourcecode> | |
836c4606 | 169 | <wysiwygicon>fa-terminal</wysiwygicon> |
32deb4ef | 170 | <buttonlabel>wcf.bbcode.button.inlineCode</buttonlabel> |
dcc2332d | 171 | </bbcode> |
d45eaff6 MW |
172 | |
173 | <bbcode name="attach"> | |
e9adedec | 174 | <classname><![CDATA[wcf\system\bbcode\AttachmentBBCode]]></classname> |
d45eaff6 MW |
175 | <attributes> |
176 | <attribute name="0"> | |
177 | <validationpattern>^\d+$</validationpattern> | |
178 | <required>1</required> | |
179 | <usetext>1</usetext> | |
180 | </attribute> | |
181 | <attribute name="1"> | |
5bc2753a AE |
182 | <validationpattern>^(left|right|none)$</validationpattern> |
183 | </attribute> | |
184 | <attribute name="2"> | |
185 | <validationpattern>^\d+$</validationpattern> | |
d45eaff6 MW |
186 | </attribute> |
187 | </attributes> | |
188 | </bbcode> | |
dcc2332d | 189 | </import> |
e9adedec | 190 | </data> |