-
Notifications
You must be signed in to change notification settings - Fork 3
/
universalbuttons.xml
186 lines (140 loc) · 3.75 KB
/
universalbuttons.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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
<?xml version="1.0" encoding="utf-8"?>
<extension version="3.1" type="plugin" group="editors-xtd" method="upgrade">
<name>Button - Universal buttons</name>
<author>Tazzios</author>
<creationDate>september 20221</creationDate>
<copyright></copyright>
<license>GNU/GPLv3 www.gnu.org/licenses/gpl-3.0.html</license>
<authorEmail></authorEmail>
<authorUrl>https://github.com/Tazzios</authorUrl>
<version>1.1.1</version>
<description>Add custom editor buttons</description>
<files>
<filename plugin="universalbuttons">universalbuttons.php</filename>
<filename>index.html</filename>
</files>
<config>
<fields name="params">
<fieldset name="basic">
<field
name="buttons"
type="subform"
default=''
label="Buttons"
description=""
multiple="true"
min="0"
max="50"
>
<form>
<field
name="Buttonlabel"
type="text"
default=""
label="Button Label"
description="Enter label text for the button"
maxlength="20"
size="10" />
<field
name="Buttonicon"
type="text"
default="comment"
label="Button icon"
description="Enter a mce icon name to show. Some examples: comment,plus,info,new-tab,redo,upload,help,file-add,file"
maxlength="20"
size="10" />
<field name="usergroups" type="usergrouplist"
label="Usergroup"
description="Select the usergroups which have access to this button"
multiple="true" />
<field
name="style" type="radio"
default="0"
label="button style"
description=""
>
<option value="0">Popup</option>
<option value="1">Dialog</option>
</field>
<field
showon="style:0"
name="url"
type="text"
default=""
label="Relative URL "
description="insert the Relative url that need to be shown in the popup"
maxlength="100"
size="20" />
<field
showon="style:0"
name="Componentonly" type="radio"
default="1"
label="Component only"
description="Load Component without the template, may not work for every page."
>
<option value="1">Yes</option>
<option value="0">No</option>
</field>
<field
showon="style:0"
name="popupwidth"
type="text" default="800"
label="Popup width "
description=""
/>
<field
showon="style:0"
name="popupheight"
type="text" default="800"
label="Popup height "
description=""
/>
<field
showon="style:1"
name="code"
type="textarea"
default=""
label="Text or htmlcode to insert"
description="use %1 %2 as variable replace"
filter="safehtml"
maxlength="500"
size="30" />
<field
showon="style:1"
name="variables"
type="subform"
default=''
label="Variables"
description="Create dialog windows to ask variable values"
multiple="true"
min="0"
max="10"
>
<form>
<field
name="Variablelabel"
type="text"
default=""
label="Label text"
description="Instruction text to show in the prompt"
maxlength="200"
size="30" />
<field
name="variabledefault"
type="textarea"
default=""
label="Default text"
description="Default answer that is placed in the prompt"
maxlength="200"
size="30" />
</form>
</field>
</form>
</field>
</fieldset>
</fields>
</config>
<updateservers>
<server type="extension" priority="2" name="pdfviewer">https://raw.githubusercontent.com/tazzios/Universal-buttons/master/updates.xml</server>
</updateservers>
</extension>