function features_ckeditor_ckeditor_profile_defaults in Multipurpose Corporate Profile 7
Implements hook_ckeditor_profile_defaults().
File
- modules/
features/ features_ckeditor/ features_ckeditor.features.ckeditor_profile.inc, line 10 - features_ckeditor.features.ckeditor_profile.inc
Code
function features_ckeditor_ckeditor_profile_defaults() {
$param = '$removeEmpty';
$data = array(
'Advanced' => array(
'name' => 'Advanced',
'settings' => array(
'filebrowser' => 'none',
'quickupload' => 'f',
'ss' => 2,
'filters' => array(
'filter_html' => 1,
),
'default' => 't',
'show_toggle' => 't',
'popup' => 'f',
'toolbar' => '
[
[\'Source\'],
[\'Cut\',\'Copy\',\'Paste\',\'PasteText\',\'PasteFromWord\',\'-\',\'SpellChecker\', \'Scayt\'],
[\'Undo\',\'Redo\',\'Find\',\'Replace\',\'-\',\'SelectAll\'],
[\'Image\',\'Media\',\'Flash\',\'Table\',\'HorizontalRule\',\'Smiley\',\'SpecialChar\'],
[\'Maximize\', \'ShowBlocks\'],
\'/\',
[\'Format\'],
[\'Bold\',\'Italic\',\'Underline\',\'Strike\',\'-\',\'Subscript\',\'Superscript\',\'-\',\'RemoveFormat\'],
[\'NumberedList\',\'BulletedList\',\'-\',\'Outdent\',\'Indent\',\'Blockquote\'],
[\'JustifyLeft\',\'JustifyCenter\',\'JustifyRight\',\'JustifyBlock\',\'-\',\'BidiLtr\',\'BidiRtl\'],
[\'Link\',\'Unlink\',\'Anchor\',\'Linkit\']
]
',
'expand' => 't',
'width' => '100%',
'lang' => 'en',
'auto_lang' => 't',
'language_direction' => 'default',
'enter_mode' => 'p',
'shift_enter_mode' => 'br',
'font_format' => 'p;div;pre;address;h1;h2;h3;h4;h5;h6',
'format_source' => 't',
'format_output' => 't',
'custom_formatting' => 'f',
'formatting' => array(
'custom_formatting_options' => array(
'indent' => 'indent',
'breakBeforeOpen' => 'breakBeforeOpen',
'breakAfterOpen' => 'breakAfterOpen',
'breakAfterClose' => 'breakAfterClose',
),
),
'css_mode' => 'none',
'css_path' => '',
'user_choose' => 'f',
'ckeditor_load_method' => 'ckeditor.js',
'ckeditor_load_time_out' => 0,
'scayt_autoStartup' => 'f',
'html_entities' => 'f',
),
'input_formats' => array(
'filtered_html' => 'Filtered HTML',
),
),
'CKEditor Global Profile' => array(
'name' => 'CKEditor Global Profile',
'settings' => array(
'ckeditor_path' => '//cdn.ckeditor.com/4.4.3/full-all',
),
'input_formats' => array(),
),
'Full' => array(
'name' => 'Full',
'settings' => array(
'ss' => 2,
'toolbar' => '[
[\'Source\'],
[\'Cut\',\'Copy\',\'Paste\',\'PasteText\',\'PasteFromWord\',\'-\',\'SpellChecker\', \'Scayt\'],
[\'Undo\',\'Redo\',\'Find\',\'Replace\',\'-\',\'SelectAll\'],
[\'Image\',\'Media\',\'Flash\',\'Table\',\'HorizontalRule\',\'Smiley\',\'SpecialChar\',\'Iframe\'],
\'/\',
[\'Bold\',\'Italic\',\'Underline\',\'Strike\',\'-\',\'Subscript\',\'Superscript\',\'-\',\'RemoveFormat\'],
[\'NumberedList\',\'BulletedList\',\'-\',\'Outdent\',\'Indent\',\'Blockquote\',\'CreateDiv\'],
[\'JustifyLeft\',\'JustifyCenter\',\'JustifyRight\',\'JustifyBlock\',\'-\',\'BidiLtr\',\'BidiRtl\',\'-\',\'Language\'],
[\'Link\',\'Unlink\',\'Anchor\',\'Linkit\'],
[\'DrupalBreak\'],
\'/\',
[\'Format\',\'Font\',\'FontSize\'],
[\'TextColor\',\'BGColor\'],
[\'Maximize\', \'ShowBlocks\']
]
',
'expand' => 't',
'default' => 't',
'show_toggle' => 't',
'uicolor' => 'default',
'uicolor_user' => 'default',
'width' => '100%',
'lang' => 'en',
'auto_lang' => 't',
'language_direction' => 'default',
'allowed_content' => 't',
'extraAllowedContent' => '',
'enter_mode' => 'p',
'shift_enter_mode' => 'br',
'font_format' => 'p;div;pre;address;h1;h2;h3;h4;h5;h6',
'custom_formatting' => 'f',
'formatting' => array(
'custom_formatting_options' => array(
'indent' => 'indent',
'breakBeforeOpen' => 'breakBeforeOpen',
'breakAfterOpen' => 'breakAfterOpen',
'breakAfterClose' => 'breakAfterClose',
'breakBeforeClose' => 0,
'pre_indent' => 0,
),
),
'css_mode' => 'none',
'css_path' => '',
'css_style' => 'theme',
'styles_path' => '',
'filebrowser' => 'none',
'filebrowser_image' => '',
'filebrowser_flash' => '',
'UserFilesPath' => '%b%f/',
'UserFilesAbsolutePath' => '%d%b%f/',
'forcePasteAsPlainText' => 'f',
'html_entities' => 'f',
'scayt_autoStartup' => 'f',
'theme_config_js' => 'f',
'js_conf' => "config.allowedContent = true;config.extraAllowedContent = 'span';CKEDITOR.dtd.{$param}.span = 0;",
'loadPlugins' => array(
'drupalbreaks' => array(
'name' => 'drupalbreaks',
'desc' => 'Plugin for inserting Drupal teaser and page breaks.',
'path' => '%plugin_dir%drupalbreaks/',
'buttons' => array(
'DrupalBreak' => array(
'label' => 'DrupalBreak',
'icon' => 'images/drupalbreak.png',
),
),
'default' => 't',
),
'tableresize' => array(
'name' => 'tableresize',
'desc' => 'Table Resize plugin. See <a href="http://ckeditor.com/addon/tableresize">addon page</a> for more details.',
'path' => '//cdn.ckeditor.com/4.4.3/full-all/plugins/tableresize/',
'buttons' => FALSE,
'default' => 't',
),
),
),
'input_formats' => array(
'full_html' => 'Full HTML',
),
),
);
return $data;
}