Update to Drupal 8.1.0. For more information, see https://www.drupal.org/drupal-8.1.0-release-notes
This commit is contained in:
parent
b11a755ba8
commit
c0a0d5a94c
6920 changed files with 64395 additions and 57312 deletions
|
@ -27,6 +27,8 @@ function ckeditor_help($route_name, RouteMatchInterface $route_match) {
|
|||
$output .= '<dd>' . t('CKEditor only allow users to format content in accordance with the filter configuration of the specific text format. If a text format excludes certain HTML tags, the corresponding toolbar buttons are not displayed to users when they edit a text field in this format. For more information see the <a href=":filter">Filter help page</a>.', array(':filter' => \Drupal::url('help.page', array('name' => 'filter')))) . '</dd>';
|
||||
$output .= '<dt>' . t('Toggling between formatted text and HTML source') . '</dt>';
|
||||
$output .= '<dd>' . t('If the <em>Source</em> button is available in the toolbar, users can click this button to disable the visual editor and edit the HTML source directly. After toggling back, the visual editor uses the allowed HTML tags to format the text — independent of whether buttons for these tags are available in the toolbar. If the text format is set to <em>limit the use of HTML tags</em>, then all excluded tags will be stripped out of the HTML source when the user toggles back to the text editor.') . '</dd>';
|
||||
$output .= '<dt>' . t('Check my spelling as I type') . '</dt>';
|
||||
$output .= '<dd>' . t('By default, CKEditor is configured to leverage your browser\'s spell check capability. Make sure your browser\'s spell checker is enabled in your browser\'s settings. To access suggested corrections for misspelled words, it may be necessary to hold the <em>Control</em> or <em>command</em> (Mac) key while right-clicking the misspelling.') . '</dd>';
|
||||
$output .= '<dt>' . t('Accessibility features') . '</dt>';
|
||||
$output .= '<dd>' . t('The built in WYSIWYG editor (CKEditor) comes with a number of <a href=":features">accessibility features</a>. CKEditor comes with built in <a href=":shortcuts">keyboard shortcuts</a>, which can be beneficial for both power users and keyboard only users.', array(':features' => 'http://docs.ckeditor.com/#!/guide/dev_a11y', ':shortcuts' => 'http://docs.ckeditor.com/#!/guide/dev_shortcuts')) . '</dd>';
|
||||
$output .= '<dt>' . t('Generating accessible content') . '</dt>';
|
||||
|
@ -62,13 +64,6 @@ function ckeditor_ckeditor_css_alter(array &$css, Editor $editor) {
|
|||
if ($editor->getFilterFormat()->filters('filter_caption')->status) {
|
||||
$css[] = drupal_get_path('module', 'filter') . '/css/filter.caption.css';
|
||||
}
|
||||
|
||||
// Add the filter caption CSS if the text format associated with this text
|
||||
// editor uses the filter_align filter. This is used by the included
|
||||
// CKEditor DrupalImageCaption plugin.
|
||||
if ($editor->getFilterFormat()->filters('filter_align')->status) {
|
||||
$css[] = drupal_get_path('module', 'ckeditor') . '/css/plugins/drupalimagecaption/ckeditor.drupalimagecaption.css';
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -100,3 +95,15 @@ function _ckeditor_theme_css($theme = NULL) {
|
|||
}
|
||||
return $css;
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_library_info_alter().
|
||||
*/
|
||||
function ckeditor_library_info_alter(&$libraries, $extension) {
|
||||
// Pass Drupal's JS cache-busting string via settings along to CKEditor.
|
||||
// @see http://docs.ckeditor.com/#!/api/CKEDITOR-property-timestamp
|
||||
if ($extension === 'ckeditor' && isset($libraries['drupal.ckeditor'])) {
|
||||
$query_string = \Drupal::state()->get('system.css_js_query_string') ?: '0';
|
||||
$libraries['drupal.ckeditor']['drupalSettings']['ckeditor']['timestamp'] = $query_string;
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue