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