View source
<?php
function varbase_editor_ckeditor_profile_defaults() {
$data = array(
'Advanced' => array(
'name' => 'Advanced',
'settings' => array(
'ss' => 2,
'toolbar' => '[
[\'Source\'],
[\'Cut\',\'Copy\',\'Paste\',\'PasteFromWord\',\'-\',\'Undo\',\'Redo\'],
[\'linkit\',\'-\',\'Link\',\'Anchor\',\'Unlink\'],
[\'Image\',\'Media\',\'-\',\'MediaEmbed\'],
[\'SpecialChar\',\'Table\',\'Blockquote\',\'HorizontalRule\'],
[\'Maximize\',\'ShowBlocks\'],
\'/\',
[\'Styles\',\'Format\',\'JustifyLeft\',\'JustifyCenter\',\'JustifyRight\',\'JustifyBlock\',\'-\',\'BidiLtr\',\'BidiRtl\'],
[\'Bold\',\'Italic\',\'Underline\',\'Strike\',\'-\',\'Subscript\',\'Superscript\',\'-\',\'RemoveFormat\'],
[\'NumberedList\',\'BulletedList\',\'-\',\'Outdent\',\'Indent\'],
[\'DrupalBreak\']
]',
'expand' => 't',
'default' => 't',
'show_toggle' => 't',
'uicolor' => 'default',
'uicolor_user' => 'default',
'width' => '100%',
'lang' => 'en',
'auto_lang' => 't',
'language_direction' => 'default',
'allowed_content' => 'f',
'extraAllowedContent' => '',
'enter_mode' => 'p',
'shift_enter_mode' => 'br',
'font_format' => 'p;div;pre;address;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' => 'theme',
'css_path' => '',
'css_style' => 'theme',
'styles_path' => '',
'filebrowser' => 'none',
'filebrowser_image' => '',
'filebrowser_flash' => '',
'UserFilesPath' => '%b%f/',
'UserFilesAbsolutePath' => '%d%b%f/',
'forcePasteAsPlainText' => 't',
'html_entities' => 'f',
'scayt_autoStartup' => 'f',
'theme_config_js' => 't',
'js_conf' => 'config.allowedContent = true;
config.forcePasteAsPlainText = true;
config.basicEntities = false;
',
'loadPlugins' => array(
'counter' => array(
'name' => 'counter',
'desc' => 'Plugin to count symbols, symbols without blanks and words',
'path' => '%plugin_dir%counter/',
'buttons' => FALSE,
'default' => 'f',
),
'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',
),
'lineutils' => array(
'name' => 'lineutils',
'desc' => 'Plugin file: lineutils',
'path' => '%plugin_dir%lineutils/',
'buttons' => FALSE,
'default' => 'f',
),
'linkit' => array(
'name' => 'linkit',
'desc' => 'Support for Linkit module',
'path' => '%base_path%profiles/varbase/modules/contrib/linkit/editors/ckeditor/',
'buttons' => array(
'linkit' => array(
'label' => 'Linkit',
'icon' => 'icons/linkit.png',
),
),
),
'media' => array(
'name' => 'media',
'desc' => 'Plugin for embedding files using Media CKEditor',
'path' => '%base_path%profiles/varbase/modules/contrib/media_ckeditor/js/plugins/media/',
'buttons' => array(
'Media' => array(
'icon' => 'images/icon.gif',
'label' => 'Add media',
),
),
'default' => 'f',
),
'mediaembed' => array(
'name' => 'mediaembed',
'desc' => 'Plugin for embedding HTML snippets',
'path' => '%plugin_dir%mediaembed/',
'buttons' => array(
'MediaEmbed' => array(
'label' => 'MediaEmbed',
'icon' => 'images/icon.png',
),
),
'default' => 'f',
),
'widget' => array(
'name' => 'widget',
'desc' => 'Plugin file: widget',
'path' => '%plugin_dir%widget/',
'buttons' => FALSE,
'default' => 'f',
),
),
),
'input_formats' => array(
'visual_editor' => 'Visual editor',
),
),
'CKEditor Global Profile' => array(
'name' => 'CKEditor Global Profile',
'settings' => array(
'skin' => 'moono',
'ckeditor_path' => '%l/ckeditor',
'ckeditor_local_path' => './profiles/varbase/libraries/ckeditor',
'ckeditor_plugins_path' => '%m/plugins',
'ckeditor_plugins_local_path' => './profiles/varbase/modules/contrib/ckeditor/plugins',
'ckfinder_path' => '%m/ckfinder',
'ckfinder_local_path' => '',
'ckeditor_aggregate' => 'f',
'toolbar_wizard' => 't',
'loadPlugins' => array(),
),
'input_formats' => array(),
),
'Default' => array(
'name' => 'Default',
'settings' => array(
'ss' => 2,
'toolbar' => '[
[\'Cut\',\'Copy\',\'Paste\',\'PasteFromWord\'],
[\'linkit\',\'-\',\'Link\',\'Unlink\'],
[\'Media\',\'Image\'],
\'/\',
[\'Styles\'],
[\'JustifyLeft\',\'JustifyCenter\',\'JustifyRight\',\'JustifyBlock\',\'-\',\'BidiLtr\',\'BidiRtl\'],
[\'Bold\',\'Italic\',\'-\',\'RemoveFormat\'],
[\'NumberedList\',\'BulletedList\',\'-\',\'Outdent\',\'Indent\'],
[\'DrupalBreak\']
]',
'expand' => 't',
'default' => 't',
'show_toggle' => 'f',
'uicolor' => 'default',
'uicolor_user' => 'default',
'width' => '100%',
'lang' => 'en',
'auto_lang' => 't',
'language_direction' => 'default',
'allowed_content' => 'f',
'extraAllowedContent' => '',
'enter_mode' => 'p',
'shift_enter_mode' => 'br',
'font_format' => 'p;div;pre;address;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' => 'theme',
'css_path' => '',
'css_style' => 'theme',
'styles_path' => '',
'filebrowser' => 'none',
'filebrowser_image' => '',
'filebrowser_flash' => '',
'UserFilesPath' => '%b%f/',
'UserFilesAbsolutePath' => '%d%b%f/',
'forcePasteAsPlainText' => 't',
'html_entities' => 'f',
'scayt_autoStartup' => 'f',
'theme_config_js' => 't',
'js_conf' => 'config.allowedContent = true;
config.forcePasteAsPlainText = true;
config.basicEntities = false;
',
'loadPlugins' => array(
'counter' => array(
'name' => 'counter',
'desc' => 'Plugin to count symbols, symbols without blanks and words',
'path' => '%plugin_dir%counter/',
'buttons' => FALSE,
'default' => 'f',
),
'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',
),
'lineutils' => array(
'name' => 'lineutils',
'desc' => 'Plugin file: lineutils',
'path' => '%plugin_dir%lineutils/',
'buttons' => FALSE,
'default' => 'f',
),
'linkit' => array(
'name' => 'linkit',
'desc' => 'Support for Linkit module',
'path' => '%base_path%profiles/varbase/modules/contrib/linkit/editors/ckeditor/',
'buttons' => array(
'linkit' => array(
'label' => 'Linkit',
'icon' => 'icons/linkit.png',
),
),
),
'media' => array(
'name' => 'media',
'desc' => 'Plugin for embedding files using Media CKEditor',
'path' => '%base_path%profiles/varbase/modules/contrib/media_ckeditor/js/plugins/media/',
'buttons' => array(
'Media' => array(
'icon' => 'images/icon.gif',
'label' => 'Add media',
),
),
'default' => 'f',
),
'mediaembed' => array(
'name' => 'mediaembed',
'desc' => 'Plugin for embedding HTML snippets',
'path' => '%plugin_dir%mediaembed/',
'buttons' => array(
'MediaEmbed' => array(
'label' => 'MediaEmbed',
'icon' => 'images/icon.png',
),
),
'default' => 'f',
),
'widget' => array(
'name' => 'widget',
'desc' => 'Plugin file: widget',
'path' => '%plugin_dir%widget/',
'buttons' => FALSE,
'default' => 'f',
),
),
),
'input_formats' => array(
'basic_editor' => 'Basic editor',
),
),
);
return $data;
}