-
Notifications
You must be signed in to change notification settings - Fork 0
/
bbcode.xml
117 lines (109 loc) · 3.82 KB
/
bbcode.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
<?xml version="1.0" encoding="UTF-8"?>
<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">
<import>
<!-- box bbcode -->
<bbcode name="cbox">
<classname><![CDATA[wcf\system\bbcode\ContentBoxBBCode]]></classname>
<attributes>
<attribute name="0"></attribute>
<attribute name="1"></attribute>
<attribute name="2"></attribute>
</attributes>
<allowedchildren>all</allowedchildren>
<wysiwygicon>fa-th-large</wysiwygicon>
<buttonlabel>wcf.bbcode.button.contentBox</buttonlabel>
</bbcode>
<!-- Definition list -->
<bbcode name="dlist">
<classname><![CDATA[wcf\system\bbcode\DefinitionListBBCode]]></classname>
<allowedchildren>all</allowedchildren>
</bbcode>
<!-- footnote -->
<bbcode name="fn">
<classname><![CDATA[wcf\system\bbcode\FootnoteBBCode]]></classname>
<sourcecode>1</sourcecode>
<allowedchildren>all^footnote,fn,footnotecontent,fnc</allowedchildren>
<attributes>
<attribute name="0">
<validationpattern>^[a-zA-Z0-9_]+$</validationpattern>
</attribute>
</attributes>
<wysiwygicon>fa-paperclip</wysiwygicon>
<buttonlabel>wcf.bbcode.button.footnote</buttonlabel>
</bbcode>
<bbcode name="fnc">
<sourcecode>1</sourcecode>
<classname><![CDATA[wcf\system\bbcode\FootnoteBBCode]]></classname>
<allowedchildren>all^footnote,fn,footnotecontent,fnc</allowedchildren>
<attributes>
<attribute name="0">
<required>1</required>
<validationpattern>^[a-zA-Z0-9_]+$</validationpattern>
</attribute>
</attributes>
</bbcode>
<!-- heading and subheading bbcode -->
<bbcode name="h1">
<classname><![CDATA[wcf\system\bbcode\HeadingBBCode]]></classname>
<attributes>
<attribute name="0"></attribute>
<attribute name="1"></attribute>
</attributes>
<allowedchildren>none^icon</allowedchildren>
<wysiwygicon>fa-header</wysiwygicon>
<buttonlabel>wcf.bbcode.button.heading</buttonlabel>
</bbcode>
<bbcode name="h2">
<classname><![CDATA[wcf\system\bbcode\HeadingBBCode]]></classname>
<attributes>
<attribute name="0"></attribute>
<attribute name="1"></attribute>
</attributes>
<!-- <buttonlabel>wcf.bbcode.button.subheading</buttonlabel> -->
<allowedchildren>none^icon</allowedchildren>
</bbcode>
<!-- Icon -->
<bbcode name="icon">
<classname><![CDATA[wcf\system\bbcode\IconBBCode]]></classname>
<attributes>
<attribute name="0">
<required>1</required>
<usetext>1</usetext>
<validationpattern>^[a-zA-Z0-9-]+$</validationpattern>
</attribute>
<attribute name="1">
<validationpattern>^(left|right|none|0|16|24|32|48|96)$</validationpattern>
</attribute>
<attribute name="2">
<validationpattern>^(left|right|none|0|16|24|32|48|96)$</validationpattern>
</attribute>
</attributes>
<allowedchildren>none</allowedchildren>
</bbcode>
<!-- pro contra bbcode -->
<bbcode name="pclist">
<classname><![CDATA[wcf\system\bbcode\ProContraBBCode]]></classname>
<attributes>
<attribute name="0"></attribute>
<attribute name="1"></attribute>
</attributes>
<allowedchildren>none^b,i,u,s,color,font,url,lexicon</allowedchildren>
<wysiwygicon>fa-thumbs-up</wysiwygicon>
<buttonlabel>wcf.bbcode.button.procontra</buttonlabel>
</bbcode>
<!-- xattach -->
<bbcode name="xattach">
<classname><![CDATA[wcf\system\bbcode\XAttachBBCode]]></classname>
<attributes>
<attribute name="0">
<required>1</required>
<validationpattern>^[0-9]+$</validationpattern>
</attribute>
<attribute name="1">
<validationpattern>^(left|right|none)$</validationpattern>
</attribute>
</attributes>
<allowedchildren>none^b,i,u,s,color,font,url,lexicon</allowedchildren>
</bbcode>
</import>
</data>