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"> | |
35 | <htmlopen>a</htmlopen> | |
36 | <htmlclose>a</htmlclose> | |
37 | <allowedchildren>none^img,b,i,u,s,sub,sup,color,size,font</allowedchildren> | |
38 | <attributes> | |
39 | <attribute name="0"> | |
40 | <html>href="mailto:%s"</html> | |
41 | <required>1</required> | |
42 | <usetext>1</usetext> | |
43 | <validationpattern>^[^\s]+@[^\s]+$</validationpattern> | |
44 | </attribute> | |
45 | </attributes> | |
46 | </bbcode> | |
47 | <bbcode name="color"> | |
48 | <htmlopen>span</htmlopen> | |
49 | <htmlclose>span</htmlclose> | |
50 | <attributes> | |
51 | <attribute name="0"> | |
52 | <html>style="color: %s"</html> | |
53 | <validationpattern>^(#([0-9a-f]{3}|[0-9a-f]{6})|[a-z]+)$</validationpattern> | |
54 | <required>1</required> | |
55 | </attribute> | |
56 | </attributes> | |
57 | </bbcode> | |
58 | <bbcode name="size"> | |
59 | <htmlopen>span</htmlopen> | |
60 | <htmlclose>span</htmlclose> | |
61 | <attributes> | |
62 | <attribute name="0"> | |
63 | <html>style="font-size: %dpt"</html> | |
64 | <validationpattern>^([89]{1}|[1-3]{1}[0-9]{1})$</validationpattern> | |
65 | <required>1</required> | |
66 | </attribute> | |
67 | </attributes> | |
68 | <wysiwyg>1</wysiwyg> | |
69 | </bbcode> | |
70 | <bbcode name="font"> | |
71 | <htmlopen>span</htmlopen> | |
72 | <htmlclose>span</htmlclose> | |
73 | <attributes> | |
74 | <attribute name="0"> | |
75 | <html>style="font-family: %s"</html> | |
76 | <validationpattern>^[^"';}\(\)]*$</validationpattern> | |
77 | <required>1</required> | |
78 | </attribute> | |
79 | </attributes> | |
80 | </bbcode> | |
81 | <bbcode name="align"> | |
82 | <htmlopen>div</htmlopen> | |
83 | <htmlclose>div</htmlclose> | |
84 | <attributes> | |
85 | <attribute name="0"> | |
86 | <html>style="text-align: %s"</html> | |
87 | <validationpattern>^(left|right|center|justify)$</validationpattern> | |
88 | <required>1</required> | |
89 | </attribute> | |
90 | </attributes> | |
91 | </bbcode> | |
92 | <bbcode name="quote"> | |
e9adedec | 93 | <classname><![CDATA[wcf\system\bbcode\QuoteBBCode]]></classname> |
dcc2332d MW |
94 | <attributes> |
95 | <attribute name="0"></attribute> | |
96 | <attribute name="1"></attribute> | |
97 | </attributes> | |
3f5d34eb | 98 | <wysiwygicon>fa-quote-left</wysiwygicon> |
32deb4ef | 99 | <buttonlabel>wcf.bbcode.button.quote</buttonlabel> |
dcc2332d MW |
100 | </bbcode> |
101 | <bbcode name="code"> | |
e9adedec | 102 | <classname><![CDATA[wcf\system\bbcode\CodeBBCode]]></classname> |
dcc2332d MW |
103 | <allowedchildren>none</allowedchildren> |
104 | <attributes> | |
105 | <attribute name="0"> | |
106 | <validationpattern>^\d+$</validationpattern> | |
107 | </attribute> | |
108 | </attributes> | |
109 | <sourcecode>1</sourcecode> | |
3f5d34eb | 110 | <wysiwygicon>fa-code</wysiwygicon> |
32deb4ef | 111 | <buttonlabel>wcf.bbcode.button.code</buttonlabel> |
dcc2332d MW |
112 | </bbcode> |
113 | <bbcode name="img"> | |
e9adedec | 114 | <classname><![CDATA[wcf\system\bbcode\ImageBBCode]]></classname> |
dcc2332d MW |
115 | <allowedchildren>none</allowedchildren> |
116 | <attributes> | |
117 | <attribute name="0"> | |
118 | <required>1</required> | |
119 | <usetext>1</usetext> | |
120 | <validationpattern>^.+$</validationpattern> | |
121 | </attribute> | |
122 | <attribute name="1"> | |
123 | <validationpattern>^(left|right)$</validationpattern> | |
124 | </attribute> | |
125 | </attributes> | |
126 | </bbcode> | |
127 | <bbcode name="url"> | |
e9adedec | 128 | <classname><![CDATA[wcf\system\bbcode\URLBBCode]]></classname> |
dcc2332d MW |
129 | <allowedchildren>none^img,b,i,u,s,sub,sup,color,size,font</allowedchildren> |
130 | <attributes> | |
131 | <attribute name="0"> | |
132 | <required>1</required> | |
133 | <usetext>1</usetext> | |
134 | <validationpattern>^.+$</validationpattern> | |
135 | </attribute> | |
136 | </attributes> | |
137 | </bbcode> | |
138 | <bbcode name="list"> | |
e9adedec | 139 | <classname><![CDATA[wcf\system\bbcode\ListBBCode]]></classname> |
dcc2332d MW |
140 | <attributes> |
141 | <attribute name="0"> | |
142 | <validationpattern>^(1|a|none|circle|square|disc|decimal|lower-roman|upper-roman|decimal-leading-zero|lower-greek|lower-latin|upper-latin|armenian|georgian)$</validationpattern> | |
143 | </attribute> | |
144 | </attributes> | |
145 | </bbcode> | |
146 | <bbcode name="table"> | |
e9adedec | 147 | <classname><![CDATA[wcf\system\bbcode\TableBBCode]]></classname> |
dcc2332d MW |
148 | <allowedchildren>all^table</allowedchildren> |
149 | </bbcode> | |
150 | <bbcode name="media"> | |
e9adedec | 151 | <classname><![CDATA[wcf\system\bbcode\MediaBBCode]]></classname> |
dcc2332d MW |
152 | <sourcecode>1</sourcecode> |
153 | </bbcode> | |
154 | <bbcode name="spoiler"> | |
e9adedec | 155 | <classname><![CDATA[wcf\system\bbcode\SpoilerBBCode]]></classname> |
dcc2332d MW |
156 | <attributes> |
157 | <attribute name="0"></attribute> | |
158 | </attributes> | |
3f5d34eb | 159 | <wysiwygicon>fa-eye-slash</wysiwygicon> |
32deb4ef | 160 | <buttonlabel>wcf.bbcode.button.spoiler</buttonlabel> |
dcc2332d MW |
161 | </bbcode> |
162 | <bbcode name="tt"> | |
163 | <htmlopen>code class="inlineCode"</htmlopen> | |
164 | <htmlclose>code</htmlclose> | |
165 | <allowedchildren>none</allowedchildren> | |
166 | <sourcecode>1</sourcecode> | |
3f5d34eb | 167 | <wysiwygicon>fa-font</wysiwygicon> |
32deb4ef | 168 | <buttonlabel>wcf.bbcode.button.inlineCode</buttonlabel> |
dcc2332d | 169 | </bbcode> |
d45eaff6 MW |
170 | |
171 | <bbcode name="attach"> | |
e9adedec | 172 | <classname><![CDATA[wcf\system\bbcode\AttachmentBBCode]]></classname> |
d45eaff6 MW |
173 | <attributes> |
174 | <attribute name="0"> | |
175 | <validationpattern>^\d+$</validationpattern> | |
176 | <required>1</required> | |
177 | <usetext>1</usetext> | |
178 | </attribute> | |
179 | <attribute name="1"> | |
180 | <validationpattern>^(left|right)$</validationpattern> | |
181 | </attribute> | |
182 | </attributes> | |
183 | </bbcode> | |
dcc2332d | 184 | </import> |
e9adedec | 185 | </data> |