Permalink
Browse files

base feature

  • Loading branch information...
1 parent 0e64001 commit d03fe6a7cb7d03002a27771bb27ba8a8d363dee7 @tanarurkerem committed Nov 16, 2011
@@ -0,0 +1,82 @@
+<?php
+/**
+ * @file
+ * tanarurkerem_ckeditor.features.ckeditor_profile.inc
+ */
+
+/**
+ * Implements hook_ckeditor_profile_defaults().
+ */
+function tanarurkerem_ckeditor_ckeditor_profile_defaults() {
+ $data = array(
+ 'CKEditor' => array(
+ 'name' => 'CKEditor',
+ 'settings' => array(
+ 'filters' => array(
+ 'filter_htmlcorrector' => 1,
+ 'filter_html' => 1,
+ ),
+ 'textformat_filters' => 't',
+ 'ss' => '2',
+ 'default' => 't',
+ 'show_toggle' => 'f',
+ 'skin' => 'kama',
+ 'uicolor' => 'default',
+ 'uicolor_textarea' => '<p>
+ Click the <strong>UI Color Picker</strong> button to set your color preferences.</p>
+',
+ 'uicolor_user' => 'default',
+ 'toolbar' => '[
+ [\'Bold\',\'Italic\'],
+ [\'NumberedList\',\'BulletedList\',\'Blockquote\'],
+ [\'Format\'],
+ [\'Cut\',\'Copy\',\'Paste\',\'PasteText\',\'PasteFromWord\'],
+ [\'Undo\',\'Redo\',\'Find\',\'Replace\',\'-\',\'SelectAll\',\'RemoveFormat\'],
+ [\'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' => 'h2;h3;h4;h5;h6;p;pre',
+ '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/',
+ 'ckeditor_load_method' => 'ckeditor.js',
+ 'ckeditor_load_time_out' => '0',
+ 'forcePasteAsPlainText' => 'f',
+ 'html_entities' => 'f',
+ 'scayt_autoStartup' => 'f',
+ 'theme_config_js' => 'f',
+ 'js_conf' => 'config.entities = false;
+config.entities_latin = false;',
+ 'loadPlugins' => array(),
+ ),
+ 'input_formats' => array(
+ 'ckeditor' => 'CKEditor',
+ ),
+ ),
+ );
+ return $data;
+}
@@ -0,0 +1,39 @@
+<?php
+/**
+ * @file
+ * tanarurkerem_ckeditor.features.filter.inc
+ */
+
+/**
+ * Implements hook_filter_default_formats().
+ */
+function tanarurkerem_ckeditor_filter_default_formats() {
+ $formats = array();
+
+ // Exported format: CKEditor
+ $formats['ckeditor'] = array(
+ 'format' => 'ckeditor',
+ 'name' => 'CKEditor',
+ 'cache' => '1',
+ 'status' => '1',
+ 'weight' => '0',
+ 'filters' => array(
+ 'filter_html' => array(
+ 'weight' => '-10',
+ 'status' => '1',
+ 'settings' => array(
+ 'allowed_html' => '<a> <em> <strong> <blockquote> <ul> <ol> <li> <h2> <h3> <h4> <h5> <h6> <p> <pre>',
+ 'filter_html_help' => 1,
+ 'filter_html_nofollow' => 0,
+ ),
+ ),
+ 'filter_htmlcorrector' => array(
+ 'weight' => '10',
+ 'status' => '1',
+ 'settings' => array(),
+ ),
+ ),
+ );
+
+ return $formats;
+}
@@ -0,0 +1,10 @@
+core = "7.x"
+dependencies[] = "ckeditor"
+dependencies[] = "features"
+description = "Base CKEditor settings"
+features[ckeditor_profile][] = "CKEditor"
+features[filter][] = "ckeditor"
+name = "Tanarurkerem CKEditor"
+package = "Features"
+project = "tanarurkerem_ckeditor"
+version = "7.x-1.0"
@@ -0,0 +1,6 @@
+<?php
+/**
+ * @file
+ */
+
+// Drupal needs this blank file.

0 comments on commit d03fe6a

Please sign in to comment.