View source
<?php
function panopoly_wysiwyg_filter_default_formats() {
$formats = array();
$formats['panopoly_html_text'] = array(
'format' => 'panopoly_html_text',
'name' => 'HTML',
'cache' => 1,
'status' => 1,
'weight' => -9,
'filters' => array(
'image_resize_filter' => array(
'weight' => -50,
'status' => 1,
'settings' => array(
'link' => 0,
'link_class' => '',
'link_rel' => '',
'image_locations' => array(
'local' => 'local',
'remote' => 'remote',
),
),
),
'wysiwyg' => array(
'weight' => -49,
'status' => 1,
'settings' => array(
'valid_elements' => 'a[!href|target<_blank|title|style|class],
div[style|class|align<center?justify?left?right],
br,em,i,strong,cite,code,blockquote,ul,ol,li,dl,dt,dd,
span[style],p[style|class],
h1[style|class],h2[style|class],h3[style|class],h4[style|class],h5[style|class],h6[style|class],
img[!src|title|alt|style|width|height|class|hspace|vspace],
@[style|class|role|tabindex|aria-activedescendant|aria-atomic|aria-autocomplete|aria-busy|aria-checked|aria-controls|aria-describedby|aria-disabled|aria-dropeffect|aria-expanded|aria-flowto|aria-grabbed|aria-haspopup|aria-hidden|aria-invalid|aria-label|aria-labelledby|aria-level|aria-live|aria-multiline|aria-multiselectable|aria-owns|aria-posinset|aria-pressed|aria-readonly|aria-relevant|aria-required|aria-selected|aria-setsize|aria-sort|aria-valuemax|aria-valuemin|aria-valuenow|aria-valuetext]',
'allow_comments' => 1,
'nofollow_policy' => 'disabled',
'nofollow_domains' => array(),
'style_color' => array(
'color' => 'color',
'background' => 0,
'background-color' => 0,
'background-image' => 0,
'background-repeat' => 0,
'background-attachment' => 0,
'background-position' => 0,
),
'style_font' => array(
'font' => 0,
'font-family' => 0,
'font-size' => 0,
'font-size-adjust' => 0,
'font-stretch' => 0,
'font-style' => 0,
'font-variant' => 0,
'font-weight' => 0,
),
'style_text' => array(
'text-align' => 'text-align',
'text-decoration' => 'text-decoration',
'text-indent' => 0,
'text-transform' => 0,
'letter-spacing' => 0,
'word-spacing' => 0,
'white-space' => 0,
'direction' => 0,
'unicode-bidi' => 0,
),
'style_box' => array(
'padding-right' => 'padding-right',
'padding-left' => 'padding-left',
'margin' => 0,
'margin-top' => 0,
'margin-right' => 0,
'margin-bottom' => 0,
'margin-left' => 0,
'padding' => 0,
'padding-top' => 0,
'padding-bottom' => 0,
),
'style_border-1' => array(
'border' => 0,
'border-top' => 0,
'border-right' => 0,
'border-bottom' => 0,
'border-left' => 0,
'border-width' => 0,
'border-top-width' => 0,
'border-right-width' => 0,
'border-bottom-width' => 0,
'border-left-width' => 0,
),
'style_border-2' => array(
'border-color' => 0,
'border-top-color' => 0,
'border-right-color' => 0,
'border-bottom-color' => 0,
'border-left-color' => 0,
'border-style' => 0,
'border-top-style' => 0,
'border-right-style' => 0,
'border-bottom-style' => 0,
'border-left-style' => 0,
),
'style_dimension' => array(
'height' => 0,
'line-height' => 0,
'max-height' => 0,
'max-width' => 0,
'min-height' => 0,
'min-width' => 0,
'width' => 0,
),
'style_positioning' => array(
'bottom' => 0,
'clip' => 0,
'left' => 0,
'overflow' => 0,
'right' => 0,
'top' => 0,
'vertical-align' => 0,
'z-index' => 0,
),
'style_layout' => array(
'float' => 'float',
'clear' => 0,
'display' => 0,
'position' => 0,
'visibility' => 0,
),
'style_list' => array(
'list-style' => 0,
'list-style-image' => 0,
'list-style-position' => 0,
'list-style-type' => 0,
),
'style_table' => array(
'border-collapse' => 0,
'border-spacing' => 0,
'caption-side' => 0,
'empty-cells' => 0,
'table-layout' => 0,
),
'style_user' => array(
'cursor' => 0,
'outline' => 0,
'outline-width' => 0,
'outline-style' => 0,
'outline-color' => 0,
'zoom' => 0,
),
'rule_valid_classes' => array(
0 => 'a*',
2 => 'b*',
4 => 'c*',
6 => 'd*',
8 => 'e*',
10 => 'f*',
12 => 'g*',
14 => 'h*',
16 => 'i*',
18 => 'j*',
20 => 'k*',
22 => 'l*',
24 => 'm*',
26 => 'n*',
28 => 'o*',
30 => 'p*',
32 => 'q*',
34 => 'r*',
36 => 's*',
38 => 't*',
40 => 'u*',
42 => 'v*',
44 => 'w*',
46 => 'x*',
48 => 'y*',
50 => 'z*',
52 => 'A*',
54 => 'B*',
56 => 'C*',
58 => 'D*',
60 => 'E*',
62 => 'F*',
64 => 'G*',
66 => 'H*',
68 => 'I*',
70 => 'J*',
72 => 'K*',
74 => 'L*',
76 => 'M*',
78 => 'N*',
80 => 'O*',
82 => 'P*',
84 => 'Q*',
86 => 'R*',
88 => 'S*',
90 => 'T*',
92 => 'U*',
94 => 'V*',
96 => 'W*',
98 => 'X*',
100 => 'Y*',
102 => 'Z*',
),
'rule_valid_ids' => array(),
'rule_style_urls' => array(),
),
),
'caption_filter' => array(
'weight' => -48,
'status' => 1,
'settings' => array(),
),
'media_filter' => array(
'weight' => -47,
'status' => 1,
'settings' => array(),
),
'filter_htmlcorrector' => array(
'weight' => -46,
'status' => 1,
'settings' => array(),
),
'filter_autop' => array(
'weight' => -45,
'status' => 1,
'settings' => array(),
),
'filter_url' => array(
'weight' => -44,
'status' => 1,
'settings' => array(
'filter_url_length' => 72,
),
),
),
);
$formats['panopoly_wysiwyg_text'] = array(
'format' => 'panopoly_wysiwyg_text',
'name' => 'WYSIWYG',
'cache' => 1,
'status' => 1,
'weight' => -10,
'filters' => array(
'image_resize_filter' => array(
'weight' => -50,
'status' => 1,
'settings' => array(
'link' => 0,
'link_class' => '',
'link_rel' => '',
'image_locations' => array(
'local' => 'local',
'remote' => 'remote',
),
),
),
'wysiwyg' => array(
'weight' => -49,
'status' => 1,
'settings' => array(
'valid_elements' => '@[style|class],
a[!href|target<_blank|title],
div[align<center?justify?left?right],
br,em,i,strong,cite,code,blockquote,ul,ol,li,dl,dt,dd,
span,p,
h1,h2,h3,h4,h5,h6,
img[!src|title|alt|width|height|hspace|vspace],',
'allow_comments' => 1,
'nofollow_policy' => 'disabled',
'nofollow_domains' => array(),
'style_color' => array(
'color' => 'color',
'background' => 0,
'background-color' => 0,
'background-image' => 0,
'background-repeat' => 0,
'background-attachment' => 0,
'background-position' => 0,
),
'style_font' => array(
'font' => 0,
'font-family' => 0,
'font-size' => 0,
'font-size-adjust' => 0,
'font-stretch' => 0,
'font-style' => 0,
'font-variant' => 0,
'font-weight' => 0,
),
'style_text' => array(
'text-align' => 'text-align',
'text-decoration' => 'text-decoration',
'text-indent' => 0,
'text-transform' => 0,
'letter-spacing' => 0,
'word-spacing' => 0,
'white-space' => 0,
'direction' => 0,
'unicode-bidi' => 0,
),
'style_box' => array(
'padding-right' => 'padding-right',
'padding-left' => 'padding-left',
'margin' => 0,
'margin-top' => 0,
'margin-right' => 0,
'margin-bottom' => 0,
'margin-left' => 0,
'padding' => 0,
'padding-top' => 0,
'padding-bottom' => 0,
),
'style_border-1' => array(
'border' => 0,
'border-top' => 0,
'border-right' => 0,
'border-bottom' => 0,
'border-left' => 0,
'border-width' => 0,
'border-top-width' => 0,
'border-right-width' => 0,
'border-bottom-width' => 0,
'border-left-width' => 0,
),
'style_border-2' => array(
'border-color' => 0,
'border-top-color' => 0,
'border-right-color' => 0,
'border-bottom-color' => 0,
'border-left-color' => 0,
'border-style' => 0,
'border-top-style' => 0,
'border-right-style' => 0,
'border-bottom-style' => 0,
'border-left-style' => 0,
),
'style_dimension' => array(
'height' => 0,
'line-height' => 0,
'max-height' => 0,
'max-width' => 0,
'min-height' => 0,
'min-width' => 0,
'width' => 0,
),
'style_positioning' => array(
'bottom' => 0,
'clip' => 0,
'left' => 0,
'overflow' => 0,
'right' => 0,
'top' => 0,
'vertical-align' => 0,
'z-index' => 0,
),
'style_layout' => array(
'float' => 'float',
'clear' => 0,
'display' => 0,
'position' => 0,
'visibility' => 0,
),
'style_list' => array(
'list-style' => 0,
'list-style-image' => 0,
'list-style-position' => 0,
'list-style-type' => 0,
),
'style_table' => array(
'border-collapse' => 0,
'border-spacing' => 0,
'caption-side' => 0,
'empty-cells' => 0,
'table-layout' => 0,
),
'style_user' => array(
'cursor' => 0,
'outline' => 0,
'outline-width' => 0,
'outline-style' => 0,
'outline-color' => 0,
'zoom' => 0,
),
'rule_valid_classes' => array(
0 => 'a*',
2 => 'b*',
4 => 'c*',
6 => 'd*',
8 => 'e*',
10 => 'f*',
12 => 'g*',
14 => 'h*',
16 => 'i*',
18 => 'j*',
20 => 'k*',
22 => 'l*',
24 => 'm*',
26 => 'n*',
28 => 'o*',
30 => 'p*',
32 => 'q*',
34 => 'r*',
36 => 's*',
38 => 't*',
40 => 'u*',
42 => 'v*',
44 => 'w*',
46 => 'x*',
48 => 'y*',
50 => 'z*',
52 => 'A*',
54 => 'B*',
56 => 'C*',
58 => 'D*',
60 => 'E*',
62 => 'F*',
64 => 'G*',
66 => 'H*',
68 => 'I*',
70 => 'J*',
72 => 'K*',
74 => 'L*',
76 => 'M*',
78 => 'N*',
80 => 'O*',
82 => 'P*',
84 => 'Q*',
86 => 'R*',
88 => 'S*',
90 => 'T*',
92 => 'U*',
94 => 'V*',
96 => 'W*',
98 => 'X*',
100 => 'Y*',
102 => 'Z*',
),
'rule_valid_ids' => array(),
'rule_style_urls' => array(),
),
),
'caption_filter' => array(
'weight' => -48,
'status' => 1,
'settings' => array(),
),
'media_filter' => array(
'weight' => -47,
'status' => 1,
'settings' => array(),
),
'filter_htmlcorrector' => array(
'weight' => -46,
'status' => 1,
'settings' => array(),
),
'filter_url' => array(
'weight' => -44,
'status' => 1,
'settings' => array(
'filter_url_length' => 72,
),
),
'panopoly_images_fix_captions' => array(
'weight' => 0,
'status' => 1,
'settings' => array(),
),
),
);
return $formats;
}