public function CKEditor::buildContentsCssJSSetting

Builds the "contentsCss" configuration part of the CKEditor JS settings.

Parameters

\Drupal\editor\Plugin\Core\Entity\Editor $editor: A configured text editor object.

Return value

array An array containing the "contentsCss" configuration.

See also

getJSSettings()

1 call to CKEditor::buildContentsCssJSSetting()
CKEditor::getJSSettings in drupal/core/modules/ckeditor/lib/Drupal/ckeditor/Plugin/Editor/CKEditor.php
Implements \Drupal\editor\Plugin\EditPluginInterface::getJSSettings().

File

drupal/core/modules/ckeditor/lib/Drupal/ckeditor/Plugin/Editor/CKEditor.php, line 199
Contains \Drupal\ckeditor\Plugin\Editor\CKEditor.

Class

CKEditor
Defines a CKEditor-based text editor for Drupal.

Namespace

Drupal\ckeditor\Plugin\Editor

Code

public function buildContentsCssJSSetting(EditorEntity $editor) {
  $css = array(
    drupal_get_path('module', 'ckeditor') . '/css/ckeditor-iframe.css',
  );
  $css = array_merge($css, _ckeditor_theme_css());
  drupal_alter('ckeditor_css', $css, $editor);
  $css = array_map('file_create_url', $css);
  return array_values($css);
}