Merge remote-tracking branch 'refs/remotes/origin/master' into next
[GitHub/WoltLab/WCF.git] / com.woltlab.wcf / bbcode.xml
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/vortex/bbcode.xsd">
3 <import>
4 <bbcode name="b">
5 <htmlopen>b</htmlopen>
6 <htmlclose>b</htmlclose>
7 </bbcode>
8 <bbcode name="i">
9 <htmlopen>i</htmlopen>
10 <htmlclose>i</htmlclose>
11 </bbcode>
12 <bbcode name="u">
13 <htmlopen>span style="text-decoration: underline"</htmlopen>
14 <htmlclose>span</htmlclose>
15 </bbcode>
16 <bbcode name="s">
17 <htmlopen>s</htmlopen>
18 <htmlclose>s</htmlclose>
19 </bbcode>
20 <bbcode name="sub">
21 <htmlopen>sub</htmlopen>
22 <htmlclose>sub</htmlclose>
23 </bbcode>
24 <bbcode name="sup">
25 <htmlopen>sup</htmlopen>
26 <htmlclose>sup</htmlclose>
27 </bbcode>
28 <bbcode name="email">
29 <classname>wcf\system\bbcode\EmailBBCode</classname>
30 <attributes>
31 <attribute name="0">
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>
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">
76 <html>style="text-align: %s"</html>
77 <validationpattern>^(left|right|center|justify)$</validationpattern>
78 <required>1</required>
79 </attribute>
80 </attributes>
81 <isBlockElement>1</isBlockElement>
82 </bbcode>
83 <bbcode name="quote">
84 <attributes>
85 <attribute name="0">
86 </attribute>
87 <attribute name="1">
88 </attribute>
89 </attributes>
90 <wysiwygicon>fa-quote-left</wysiwygicon>
91 <buttonlabel>wcf.editor.button.quote</buttonlabel>
92 <isBlockElement>1</isBlockElement>
93 </bbcode>
94 <bbcode name="code">
95 <attributes>
96 <attribute name="0">
97 </attribute>
98 <attribute name="1">
99 </attribute>
100 <attribute name="2">
101 </attribute>
102 </attributes>
103 <sourcecode>1</sourcecode>
104 <wysiwygicon>fa-code</wysiwygicon>
105 <buttonlabel>wcf.editor.button.code</buttonlabel>
106 <isBlockElement>1</isBlockElement>
107 </bbcode>
108 <bbcode name="img">
109 <attributes>
110 <attribute name="0">
111 <required>1</required>
112 <usetext>1</usetext>
113 <validationpattern>^.+$</validationpattern>
114 </attribute>
115 <attribute name="1">
116 <validationpattern>^(left|right|none)$</validationpattern>
117 </attribute>
118 <attribute name="2">
119 <validationpattern>^\d+$</validationpattern>
120 </attribute>
121 </attributes>
122 </bbcode>
123 <bbcode name="url">
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">
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>
138 <isBlockElement>1</isBlockElement>
139 </bbcode>
140
141 <bbcode name="table">
142 <isBlockElement>1</isBlockElement>
143 </bbcode>
144 <bbcode name="tr">
145 <classname>wcf\system\bbcode\TrBBCode</classname>
146 <isBlockElement>1</isBlockElement>
147 </bbcode>
148 <bbcode name="td">
149 <classname>wcf\system\bbcode\TdBBCode</classname>
150 <isBlockElement>1</isBlockElement>
151 </bbcode>
152
153 <bbcode name="media">
154 <classname>wcf\system\bbcode\MediaBBCode</classname>
155 <sourcecode>1</sourcecode>
156 </bbcode>
157 <bbcode name="spoiler">
158 <attributes>
159 <attribute name="0">
160 </attribute>
161 </attributes>
162 <wysiwygicon>fa-eye-slash</wysiwygicon>
163 <buttonlabel>wcf.editor.button.spoiler</buttonlabel>
164 <isBlockElement>1</isBlockElement>
165 </bbcode>
166 <bbcode name="tt">
167 <htmlopen>kbd</htmlopen>
168 <htmlclose>kbd</htmlclose>
169 <sourcecode>1</sourcecode>
170 <wysiwygicon>fa-terminal</wysiwygicon>
171 <buttonlabel>wcf.editor.button.inlineCode</buttonlabel>
172 </bbcode>
173
174 <bbcode name="attach">
175 <classname>wcf\system\bbcode\AttachmentBBCode</classname>
176 <attributes>
177 <attribute name="0">
178 <validationpattern>^\d+$</validationpattern>
179 <required>1</required>
180 <usetext>1</usetext>
181 </attribute>
182 <attribute name="1">
183 <validationpattern>^(left|right|none)$</validationpattern>
184 </attribute>
185 <attribute name="2">
186 <!-- "\d+" is only matched for backward compatibility -->
187 <validationpattern>^(\d+|true|false)$</validationpattern>
188 </attribute>
189 </attributes>
190 </bbcode>
191
192 <bbcode name="wsm">
193 <classname>wcf\system\bbcode\WoltLabSuiteMediaBBCode</classname>
194 <isBlockElement>1</isBlockElement>
195 <attributes>
196 <attribute name="0">
197 <validationpattern>^\d+$</validationpattern>
198 <required>1</required>
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
209 <bbcode name="wsp">
210 <classname>wcf\system\bbcode\WoltLabSuitePageBBCode</classname>
211 <attributes>
212 <attribute name="0">
213 <validationpattern>^\d+$</validationpattern>
214 <required>1</required>
215 </attribute>
216 <attribute name="1">
217 <usetext>1</usetext>
218 </attribute>
219 </attributes>
220 </bbcode>
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>
231 </import>
232 </data>