-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfilters.php
74 lines (72 loc) · 3.04 KB
/
filters.php
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
<?php
/**
* @package Filter
* @author Iurii Makukh
* @copyright Copyright (c) 2017, Iurii Makukh
* @license https://www.gnu.org/licenses/gpl-3.0.en.html GPL-3.0+
*/
return array(
'minimal' => array(
'name' => 'Minimal configuration', // @text
'description' => 'Minimal configuration for untrusted users', // @text
'status' => false,
'role_id' => array(),
'module' => 'filter',
'data' => array(
'AutoFormat.DisplayLinkURI' => true,
'AutoFormat.RemoveEmpty' => true,
'HTML.Allowed' => 'strong,em,p,b,s,i,a[href|title],img[src|alt],'
. 'blockquote,code,pre,del,ul,ol,li'
)
),
'advanced' => array(
'name' => 'Advanced configuration', // @text
'description' => 'Advanced configuration for trusted users, e.g content managers', // @text
'status' => false,
'role_id' => array(),
'module' => 'filter',
'data' => array(
'AutoFormat.Linkify' => true,
'AutoFormat.RemoveEmpty.RemoveNbsp' => true,
'AutoFormat.RemoveEmpty' => true,
'HTML.Nofollow' => true,
'HTML.Allowed' => 'div,table,tr,td,tbody,tfoot,thead,th,strong,'
. 'em,p[style],b,s,i,h2,h3,h4,h5,hr,br,span[style],a[href|title],'
. 'img[width|height|alt|src],blockquote,code,pre,del,kbd,'
. 'cite,dt,dl,dd,sup,sub,ul,ol,li',
'CSS.AllowedProperties' => 'font,font-size,font-weight,font-style,'
. 'font-family,text-decoration,padding-left,color,'
. 'background-color,text-align',
'HTML.FlashAllowFullScreen' => true,
'HTML.SafeObject' => true,
'HTML.SafeEmbed' => true,
'HTML.Trusted' => true,
'Output.FlashCompat' => true
)
),
'maximal' => array(
'name' => 'Maximal configuration', // @text
'description' => 'Maximal configuration for experienced and trusted users, e.g superadmin', // @text
'status' => false,
'role_id' => array(),
'module' => 'filter',
'data' => array(
'AutoFormat.Linkify' => true,
'AutoFormat.RemoveEmpty.RemoveNbsp' => false,
'AutoFormat.RemoveEmpty' => true,
'HTML.Allowed' => 'div,table,tr,td,tbody,tfoot,thead,th,strong,'
. 'em,p[style],b,s,i,h2,h3,h4,h5,hr,br,span[style],a[href|title],'
. 'img[width|height|alt|src],blockquote,code,pre,del,kbd,'
. 'cite,dt,dl,dd,sup,sub,ul,ol,li',
'CSS.AllowedProperties' => 'font,font-size,font-weight,font-style,'
. 'font-family,text-decoration,padding-left,color,'
. 'background-color,text-align',
'HTML.FlashAllowFullScreen' => true,
'HTML.SafeObject' => true,
'HTML.SafeEmbed' => true,
'HTML.Trusted' => true,
'Output.FlashCompat' => true,
'Attr.AllowedFrameTargets' => array('_blank', '_self', '_parent', '_top')
)
)
);