Commit cb301836 authored by joseph.olstad's avatar joseph.olstad

Issue #3121497 by joseph.olstad: Add media wysiwyg settings defaults for ckeditor

parent 7d19c87a
<?php
/**
* @file
* media_wysiwyg_settings.features.filter.inc
*/
/**
* Implements hook_filter_default_formats().
*/
function media_wysiwyg_settings_filter_default_formats() {
$formats = array();
// Exported format: Filtered HTML.
$formats['filtered_html'] = array(
'format' => 'filtered_html',
'name' => 'Filtered HTML',
'cache' => 1,
'status' => 1,
'weight' => 0,
'filters' => array(
'media_filter_paragraph_fix' => array(
'weight' => -49,
'status' => 1,
'settings' => array(
'replace' => 1,
),
),
'filter_html' => array(
'weight' => -48,
'status' => 1,
'settings' => array(
'allowed_html' => '<a> <em> <strong> <cite> <blockquote> <code> <img> <h2> <h1> <h3> <div> <span> <section> <b> <ul> <ol> <li> <dl> <dt> <dd> <p> <table> <td> <tr>',
'filter_html_help' => 1,
'filter_html_nofollow' => 0,
),
),
'filter_htmlcorrector' => array(
'weight' => -42,
'status' => 1,
'settings' => array(),
),
'media_filter' => array(
'weight' => -41,
'status' => 1,
'settings' => array(),
),
),
);
// Exported format: Full HTML.
$formats['full_html'] = array(
'format' => 'full_html',
'name' => 'Full HTML',
'cache' => 1,
'status' => 1,
'weight' => 1,
'filters' => array(
'filter_htmlcorrector' => array(
'weight' => -43,
'status' => 1,
'settings' => array(),
),
'media_filter_paragraph_fix' => array(
'weight' => -42,
'status' => 1,
'settings' => array(
'replace' => 1,
),
),
'media_filter' => array(
'weight' => -41,
'status' => 1,
'settings' => array(),
),
),
);
return $formats;
}
<?php
/**
* @file
* media_wysiwyg_settings.features.wysiwyg.inc
*/
/**
* Implements hook_wysiwyg_default_profiles().
*/
function media_wysiwyg_settings_wysiwyg_default_profiles() {
$profiles = array();
// Exported profile: filtered_html.
$profiles['filtered_html'] = array(
'format' => 'filtered_html',
'editor' => 'ckeditor',
'settings' => array(
'buttons' => array(
'default' => array(
'Bold' => 1,
'Italic' => 1,
'Underline' => 1,
'Strike' => 1,
'JustifyLeft' => 1,
'JustifyCenter' => 1,
'JustifyRight' => 1,
'JustifyBlock' => 1,
'BulletedList' => 1,
'NumberedList' => 1,
'Outdent' => 1,
'Indent' => 1,
'Undo' => 1,
'Link' => 1,
'Unlink' => 1,
'TextColor' => 1,
'BGColor' => 1,
'Superscript' => 1,
'Blockquote' => 1,
'Source' => 1,
'HorizontalRule' => 1,
'Cut' => 1,
'Copy' => 1,
'Paste' => 1,
'FontSize' => 1,
'Styles' => 1,
'Table' => 1,
'Find' => 1,
'Replace' => 1,
'CreateDiv' => 1,
'Maximize' => 1,
),
'drupal' => array(
'media' => 1,
),
),
'theme' => 'advanced',
'language' => 'en',
'toolbarLocation' => 'top',
'resize_enabled' => 1,
'default_toolbar_grouping' => 0,
'simple_source_formatting' => 0,
'acf_mode' => 1,
'acf_allowed_content' => 'img[title,alt,src,data-cke-saved-src](wysiwyg-break,drupal-content);
video[width,height,controls,src,controlslist,data-delta,data-fid,data-media-element](*);
source[src,type,data-cke-saved-src];
audio[controls,src](*);
img[*](media-element,file-default);p[class](*);
h2[class,style](*);
h3[class,style](*);
h4[class,style](*);
h5[class,style](*);
h6[class,style](*);
div[class,style](*);
span[class,style](*);
code[class,style](*);',
'css_setting' => 'theme',
'css_theme' => '',
'css_path' => '',
'stylesSet' => '',
'block_formats' => 'p,address,pre,h2,h3,h4,h5,h6,div',
'mobile_disable' => 0,
'forcePasteAsPlainText' => 0,
'pasteFromWordPromptCleanup' => 0,
'pasteFromWordRemoveFontStyles' => 0,
),
'preferences' => array(
'default' => 1,
'user_choose' => 0,
'show_toggle' => 1,
'add_to_summaries' => 1,
'version' => '4.14.0.8a12b04171',
),
'name' => 'formatfiltered_html',
'rdf_mapping' => array(),
);
// Exported profile: full_html.
$profiles['full_html'] = array(
'format' => 'full_html',
'editor' => 'ckeditor',
'settings' => array(
'buttons' => array(
'default' => array(
'Bold' => 1,
'Italic' => 1,
'Underline' => 1,
'Strike' => 1,
'JustifyLeft' => 1,
'JustifyCenter' => 1,
'BulletedList' => 1,
'NumberedList' => 1,
'Outdent' => 1,
'Indent' => 1,
'Undo' => 1,
'Redo' => 1,
'Link' => 1,
'Unlink' => 1,
'Anchor' => 1,
'Image' => 1,
'BGColor' => 1,
'Superscript' => 1,
'Subscript' => 1,
'Blockquote' => 1,
'Source' => 1,
'HorizontalRule' => 1,
'Cut' => 1,
'Copy' => 1,
'Paste' => 1,
'Font' => 1,
'FontSize' => 1,
'Styles' => 1,
'Table' => 1,
'Find' => 1,
'Replace' => 1,
'CreateDiv' => 1,
'Iframe' => 1,
'Maximize' => 1,
),
'drupal' => array(
'media' => 1,
),
),
'theme' => 'advanced',
'language' => 'en',
'toolbarLocation' => 'top',
'resize_enabled' => 1,
'default_toolbar_grouping' => 0,
'simple_source_formatting' => 0,
'acf_mode' => 0,
'acf_allowed_content' => 'img[title,alt,src,data-cke-saved-src](wysiwyg-break,drupal-content);
video[width,height,controls,src,controlslist,data-delta,data-fid,data-media-element](*);
source[src,type,data-cke-saved-src];
audio[controls,src](*);
img[*](media-element,file-default);p[class](*);
h2[class,style](*);
h3[class,style](*);
h4[class,style](*);
h5[class,style](*);
h6[class,style](*);
div[class,style](*);
span[class,style](*);
code[class,style](*);',
'css_setting' => 'theme',
'css_theme' => '',
'css_path' => '',
'stylesSet' => '',
'block_formats' => 'p,address,pre,h2,h3,h4,h5,h6,div',
'mobile_disable' => 0,
'forcePasteAsPlainText' => 0,
'pasteFromWordPromptCleanup' => 0,
'pasteFromWordRemoveFontStyles' => 0,
),
'preferences' => array(
'default' => 1,
'user_choose' => 0,
'show_toggle' => 1,
'add_to_summaries' => 1,
'version' => '4.14.0.8a12b04171',
),
'name' => 'formatfull_html',
'rdf_mapping' => array(),
);
return $profiles;
}
name = Media Wysiwyg Settings
description = If you are using the wysiwyg module with the ckeditor library and you want to embed media, enable this for working defaults
core = 7.x
package = User Interface
version = 7.x-4.0
dependencies[] = features
dependencies[] = filter
dependencies[] = media_wysiwyg
dependencies[] = wysiwyg
features[features_api][] = api:2
features[filter][] = filtered_html
features[filter][] = full_html
features[wysiwyg][] = filtered_html
features[wysiwyg][] = full_html
<?php
/**
* @file
* Drupal needs this blank file.
*/
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment