Fixed editor not receiving focus after custom button click
[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/maelstrom/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 <wysiwyg>1</wysiwyg>
60 </bbcode>
61 <bbcode name="font">
62 <htmlopen>span</htmlopen>
63 <htmlclose>span</htmlclose>
64 <attributes>
65 <attribute name="0">
66 <html>style="font-family: %s"</html>
67 <validationpattern>^[^"';}\(\)]*$</validationpattern>
68 <required>1</required>
69 </attribute>
70 </attributes>
71 </bbcode>
72 <bbcode name="align">
73 <htmlopen>div</htmlopen>
74 <htmlclose>div</htmlclose>
75 <attributes>
76 <attribute name="0">
77 <html>style="text-align: %s"</html>
78 <validationpattern>^(left|right|center|justify)$</validationpattern>
79 <required>1</required>
80 </attribute>
81 </attributes>
82 <isBlockElement>1</isBlockElement>
83 </bbcode>
84 <bbcode name="quote">
85 <classname>wcf\system\bbcode\QuoteBBCode</classname>
86 <attributes>
87 <attribute name="0"></attribute>
88 <attribute name="1"></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 <classname>wcf\system\bbcode\CodeBBCode</classname>
96 <attributes>
97 <attribute name="0"></attribute>
98 <attribute name="1"></attribute>
99 <attribute name="2"></attribute>
100 </attributes>
101 <sourcecode>1</sourcecode>
102 <wysiwygicon>fa-code</wysiwygicon>
103 <buttonlabel>wcf.editor.button.code</buttonlabel>
104 <isBlockElement>1</isBlockElement>
105 </bbcode>
106 <bbcode name="img">
107 <classname>wcf\system\bbcode\ImageBBCode</classname>
108 <attributes>
109 <attribute name="0">
110 <required>1</required>
111 <usetext>1</usetext>
112 <validationpattern>^.+$</validationpattern>
113 </attribute>
114 <attribute name="1">
115 <validationpattern>^(left|right|none)$</validationpattern>
116 </attribute>
117 <attribute name="2">
118 <validationpattern>^\d+$</validationpattern>
119 </attribute>
120 </attributes>
121 </bbcode>
122 <bbcode name="url">
123 <classname>wcf\system\bbcode\URLBBCode</classname>
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 <classname>wcf\system\bbcode\ListBBCode</classname>
134 <attributes>
135 <attribute name="0">
136 <validationpattern>^(1|a|none|circle|square|disc|decimal|lower-roman|upper-roman|decimal-leading-zero|lower-greek|lower-latin|upper-latin|armenian|georgian)$</validationpattern>
137 </attribute>
138 </attributes>
139 <isBlockElement>1</isBlockElement>
140 </bbcode>
141
142 <bbcode name="table">
143 <classname>wcf\system\bbcode\TableBBCode</classname>
144 <isBlockElement>1</isBlockElement>
145 </bbcode>
146 <bbcode name="tr">
147 <classname>wcf\system\bbcode\TrBBCode></classname>
148 <isBlockElement>1</isBlockElement>
149 </bbcode>
150 <bbcode name="td">
151 <classname>wcf\system\bbcode\TdBBcode</classname>
152 <isBlockElement>1</isBlockElement>
153 </bbcode>
154
155 <bbcode name="media">
156 <classname>wcf\system\bbcode\MediaBBCode</classname>
157 <sourcecode>1</sourcecode>
158 </bbcode>
159 <bbcode name="spoiler">
160 <classname>wcf\system\bbcode\SpoilerBBCode</classname>
161 <attributes>
162 <attribute name="0"></attribute>
163 </attributes>
164 <wysiwygicon>fa-eye-slash</wysiwygicon>
165 <buttonlabel>wcf.editor.button.spoiler</buttonlabel>
166 <isBlockElement>1</isBlockElement>
167 </bbcode>
168 <bbcode name="tt">
169 <htmlopen>kbd</htmlopen>
170 <htmlclose>kbd</htmlclose>
171 <sourcecode>1</sourcecode>
172 <wysiwygicon>fa-terminal</wysiwygicon>
173 <buttonlabel>wcf.editor.button.inlineCode</buttonlabel>
174 </bbcode>
175
176 <bbcode name="attach">
177 <classname>wcf\system\bbcode\AttachmentBBCode</classname>
178 <attributes>
179 <attribute name="0">
180 <validationpattern>^\d+$</validationpattern>
181 <required>1</required>
182 <usetext>1</usetext>
183 </attribute>
184 <attribute name="1">
185 <validationpattern>^(left|right|none)$</validationpattern>
186 </attribute>
187 <attribute name="2">
188 <!-- "\d+" is only matched for backward compatibility -->
189 <validationpattern>^(\d+|true|false)$</validationpattern>
190 </attribute>
191 </attributes>
192 </bbcode>
193
194 <bbcode name="wsm">
195 <classname>wcf\system\bbcode\WoltLabSuiteMediaBBCode</classname>
196 <isBlockElement>1</isBlockElement>
197 <attributes>
198 <attribute name="0">
199 <validationpattern>^\d+$</validationpattern>
200 <required>1</required>
201 </attribute>
202 <attribute name="1">
203 <validationpattern>^(small|medium|large|original)$</validationpattern>
204 </attribute>
205 <attribute name="2">
206 <validationpattern>^(left|right|none)$</validationpattern>
207 </attribute>
208 </attributes>
209 </bbcode>
210
211 <bbcode name="wsmg">
212 <classname>wcf\system\bbcode\WoltLabSuiteMediaGalleryBBCode</classname>
213 <attributes>
214 <attribute name="0">
215 <validationpattern>^\d+(,\d+)*$</validationpattern>
216 <required>1</required>
217 </attribute>
218 </attributes>
219 </bbcode>
220
221 <bbcode name="wsp">
222 <classname>wcf\system\bbcode\WoltLabSuitePageBBCode</classname>
223 <attributes>
224 <attribute name="0">
225 <validationpattern>^\d+$</validationpattern>
226 <required>1</required>
227 </attribute>
228 </attributes>
229 </bbcode>
230
231 <bbcode name="user">
232 <classname>wcf\system\bbcode\UserBBCode</classname>
233 <attributes>
234 <attribute name="0">
235 <validationpattern>^\d+$</validationpattern>
236 <required>1</required>
237 </attribute>
238 </attributes>
239 </bbcode>
240 </import>
241 </data>