View source
<?php
function varbase_ckeditor_filter_default_formats() {
$formats = array();
$formats['raw_html'] = array(
'format' => 'raw_html',
'name' => 'Raw HTML',
'cache' => 1,
'status' => 1,
'weight' => -8,
'filters' => array(
'filter_url' => array(
'weight' => 0,
'status' => 1,
'settings' => array(
'filter_url_length' => 72,
),
),
'image_resize_filter' => array(
'weight' => 0,
'status' => 1,
'settings' => array(
'link' => 0,
'link_class' => '',
'link_rel' => '',
'image_locations' => array(
'local' => 'local',
'remote' => 0,
),
),
),
'filter_htmlcorrector' => array(
'weight' => 10,
'status' => 1,
'settings' => array(),
),
'pathologic' => array(
'weight' => 50,
'status' => 1,
'settings' => array(
'local_paths' => '',
'protocol_style' => 'full',
),
),
),
);
$formats['visual_editor'] = array(
'format' => 'visual_editor',
'name' => 'Visual editor',
'cache' => 1,
'status' => 1,
'weight' => -9,
'filters' => array(
'filter_url' => array(
'weight' => 0,
'status' => 1,
'settings' => array(
'filter_url_length' => 72,
),
),
'image_resize_filter' => array(
'weight' => 0,
'status' => 1,
'settings' => array(
'link' => 0,
'link_class' => '',
'link_rel' => '',
'image_locations' => array(
'local' => 'local',
'remote' => 0,
),
),
),
'media_filter' => array(
'weight' => 2,
'status' => 1,
'settings' => array(),
),
'filter_htmlcorrector' => array(
'weight' => 10,
'status' => 1,
'settings' => array(),
),
'pathologic' => array(
'weight' => 50,
'status' => 1,
'settings' => array(
'local_paths' => '',
'protocol_style' => 'full',
),
),
),
);
return $formats;
}