Merge branch '3.0'
[GitHub/WoltLab/WCF.git] / com.woltlab.wcf / bbcode.xml
CommitLineData
dcc2332d 1<?xml version="1.0" encoding="UTF-8"?>
f08ff153 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/vortex/bbcode.xsd">
dcc2332d
MW
3 <import>
4 <bbcode name="b">
5 <htmlopen>b</htmlopen>
6 <htmlclose>b</htmlclose>
dcc2332d
MW
7 </bbcode>
8 <bbcode name="i">
9 <htmlopen>i</htmlopen>
10 <htmlclose>i</htmlclose>
dcc2332d
MW
11 </bbcode>
12 <bbcode name="u">
13 <htmlopen>span style="text-decoration: underline"</htmlopen>
14 <htmlclose>span</htmlclose>
dcc2332d
MW
15 </bbcode>
16 <bbcode name="s">
17 <htmlopen>s</htmlopen>
18 <htmlclose>s</htmlclose>
dcc2332d
MW
19 </bbcode>
20 <bbcode name="sub">
21 <htmlopen>sub</htmlopen>
22 <htmlclose>sub</htmlclose>
dcc2332d
MW
23 </bbcode>
24 <bbcode name="sup">
25 <htmlopen>sup</htmlopen>
26 <htmlclose>sup</htmlclose>
dcc2332d
MW
27 </bbcode>
28 <bbcode name="email">
18290128 29 <classname>wcf\system\bbcode\EmailBBCode</classname>
dcc2332d
MW
30 <attributes>
31 <attribute name="0">
dcc2332d
MW
32 <required>1</required>
33 <usetext>1</usetext>
34 <validationpattern>^[^\s]+@[^\s]+$</validationpattern>
35 </attribute>
36 </attributes>
37 </bbcode>
38 <bbcode name="color">
39 <htmlopen>span</htmlopen>
40 <htmlclose>span</htmlclose>
41 <attributes>
42 <attribute name="0">
43 <html>style="color: %s"</html>
44 <validationpattern>^(#([0-9a-f]{3}|[0-9a-f]{6})|[a-z]+)$</validationpattern>
45 <required>1</required>
46 </attribute>
47 </attributes>
48 </bbcode>
49 <bbcode name="size">
50 <htmlopen>span</htmlopen>
51 <htmlclose>span</htmlclose>
52 <attributes>
53 <attribute name="0">
54 <html>style="font-size: %dpt"</html>
55 <validationpattern>^([89]{1}|[1-3]{1}[0-9]{1})$</validationpattern>
56 <required>1</required>
57 </attribute>
58 </attributes>
dcc2332d
MW
59 </bbcode>
60 <bbcode name="font">
61 <htmlopen>span</htmlopen>
62 <htmlclose>span</htmlclose>
63 <attributes>
64 <attribute name="0">
65 <html>style="font-family: %s"</html>
66 <validationpattern>^[^"';}\(\)]*$</validationpattern>
67 <required>1</required>
68 </attribute>
69 </attributes>
70 </bbcode>
71 <bbcode name="align">
72 <htmlopen>div</htmlopen>
73 <htmlclose>div</htmlclose>
74 <attributes>
75 <attribute name="0">
55875d90 76 <html>class="text-%s"</html>
dcc2332d
MW
77 <validationpattern>^(left|right|center|justify)$</validationpattern>
78 <required>1</required>
79 </attribute>
80 </attributes>
ece28c21 81 <isBlockElement>1</isBlockElement>
dcc2332d
MW
82 </bbcode>
83 <bbcode name="quote">
dcc2332d 84 <attributes>
f08ff153
MW
85 <attribute name="0">
86 </attribute>
87 <attribute name="1">
88 </attribute>
dcc2332d 89 </attributes>
3f5d34eb 90 <wysiwygicon>fa-quote-left</wysiwygicon>
42d1594f 91 <buttonlabel>wcf.editor.button.quote</buttonlabel>
ece28c21 92 <isBlockElement>1</isBlockElement>
dcc2332d
MW
93 </bbcode>
94 <bbcode name="code">
dcc2332d 95 <attributes>
f08ff153
MW
96 <attribute name="0">
97 </attribute>
98 <attribute name="1">
99 </attribute>
100 <attribute name="2">
101 </attribute>
dcc2332d
MW
102 </attributes>
103 <sourcecode>1</sourcecode>
3f5d34eb 104 <wysiwygicon>fa-code</wysiwygicon>
42d1594f 105 <buttonlabel>wcf.editor.button.code</buttonlabel>
ece28c21 106 <isBlockElement>1</isBlockElement>
dcc2332d
MW
107 </bbcode>
108 <bbcode name="img">
dcc2332d
MW
109 <attributes>
110 <attribute name="0">
111 <required>1</required>
112 <usetext>1</usetext>
113 <validationpattern>^.+$</validationpattern>
114 </attribute>
115 <attribute name="1">
5bc2753a
AE
116 <validationpattern>^(left|right|none)$</validationpattern>
117 </attribute>
118 <attribute name="2">
119 <validationpattern>^\d+$</validationpattern>
dcc2332d
MW
120 </attribute>
121 </attributes>
122 </bbcode>
123 <bbcode name="url">
dcc2332d
MW
124 <attributes>
125 <attribute name="0">
126 <required>1</required>
127 <usetext>1</usetext>
128 <validationpattern>^.+$</validationpattern>
129 </attribute>
130 </attributes>
131 </bbcode>
132 <bbcode name="list">
dcc2332d
MW
133 <attributes>
134 <attribute name="0">
135 <validationpattern>^(1|a|none|circle|square|disc|decimal|lower-roman|upper-roman|decimal-leading-zero|lower-greek|lower-latin|upper-latin|armenian|georgian)$</validationpattern>
136 </attribute>
137 </attributes>
ece28c21 138 <isBlockElement>1</isBlockElement>
dcc2332d 139 </bbcode>
698bbf6c 140
dcc2332d 141 <bbcode name="table">
ece28c21 142 <isBlockElement>1</isBlockElement>
dcc2332d 143 </bbcode>
698bbf6c 144 <bbcode name="tr">
49512b2d 145 <classname>wcf\system\bbcode\TrBBCode</classname>
698bbf6c
AE
146 <isBlockElement>1</isBlockElement>
147 </bbcode>
148 <bbcode name="td">
e73b2b2f 149 <classname>wcf\system\bbcode\TdBBCode</classname>
698bbf6c
AE
150 <isBlockElement>1</isBlockElement>
151 </bbcode>
152
dcc2332d 153 <bbcode name="media">
18290128 154 <classname>wcf\system\bbcode\MediaBBCode</classname>
dcc2332d
MW
155 <sourcecode>1</sourcecode>
156 </bbcode>
157 <bbcode name="spoiler">
dcc2332d 158 <attributes>
f08ff153
MW
159 <attribute name="0">
160 </attribute>
dcc2332d 161 </attributes>
3f5d34eb 162 <wysiwygicon>fa-eye-slash</wysiwygicon>
42d1594f 163 <buttonlabel>wcf.editor.button.spoiler</buttonlabel>
ece28c21 164 <isBlockElement>1</isBlockElement>
dcc2332d
MW
165 </bbcode>
166 <bbcode name="tt">
8a388f7f
AE
167 <htmlopen>kbd</htmlopen>
168 <htmlclose>kbd</htmlclose>
dcc2332d 169 <sourcecode>1</sourcecode>
836c4606 170 <wysiwygicon>fa-terminal</wysiwygicon>
42d1594f 171 <buttonlabel>wcf.editor.button.inlineCode</buttonlabel>
dcc2332d 172 </bbcode>
d45eaff6
MW
173
174 <bbcode name="attach">
18290128 175 <classname>wcf\system\bbcode\AttachmentBBCode</classname>
d45eaff6
MW
176 <attributes>
177 <attribute name="0">
178 <validationpattern>^\d+$</validationpattern>
179 <required>1</required>
180 <usetext>1</usetext>
181 </attribute>
182 <attribute name="1">
5bc2753a
AE
183 <validationpattern>^(left|right|none)$</validationpattern>
184 </attribute>
185 <attribute name="2">
8031a1a1
AE
186 <!-- "\d+" is only matched for backward compatibility -->
187 <validationpattern>^(\d+|true|false)$</validationpattern>
d45eaff6
MW
188 </attribute>
189 </attributes>
190 </bbcode>
6540839d
AE
191
192 <bbcode name="wsm">
18290128 193 <classname>wcf\system\bbcode\WoltLabSuiteMediaBBCode</classname>
6540839d
AE
194 <isBlockElement>1</isBlockElement>
195 <attributes>
196 <attribute name="0">
197 <validationpattern>^\d+$</validationpattern>
198 <required>1</required>
6540839d
AE
199 </attribute>
200 <attribute name="1">
201 <validationpattern>^(small|medium|large|original)$</validationpattern>
202 </attribute>
203 <attribute name="2">
204 <validationpattern>^(left|right|none)$</validationpattern>
205 </attribute>
206 </attributes>
207 </bbcode>
208
e5c625ac 209 <bbcode name="wsp">
18290128 210 <classname>wcf\system\bbcode\WoltLabSuitePageBBCode</classname>
e5c625ac
AE
211 <attributes>
212 <attribute name="0">
213 <validationpattern>^\d+$</validationpattern>
214 <required>1</required>
6540839d 215 </attribute>
99f6c087
AE
216 <attribute name="1">
217 <usetext>1</usetext>
218 </attribute>
6540839d
AE
219 </attributes>
220 </bbcode>
8fdca4dc
AE
221
222 <bbcode name="user">
223 <classname>wcf\system\bbcode\UserBBCode</classname>
224 <attributes>
225 <attribute name="0">
226 <validationpattern>^\d+$</validationpattern>
227 <required>1</required>
228 </attribute>
229 </attributes>
230 </bbcode>
3d9f265d
AE
231
232 <bbcode name="html">
3d9f265d
AE
233 <isBlockElement>1</isBlockElement>
234 <sourcecode>1</sourcecode>
235 <wysiwygicon>fa-html5</wysiwygicon>
236 <buttonlabel>wcf.editor.button.woltlabHtml</buttonlabel>
237 </bbcode>
dcc2332d 238 </import>
e9adedec 239</data>