public function ResponsiveArea::getCssFiles in CKEditor Responsive Plugin 8
Same name and namespace in other branches
- 2.0.x src/Plugin/CKEditorPlugin/ResponsiveArea.php \Drupal\ckeditor_responsive_plugin\Plugin\CKEditorPlugin\ResponsiveArea::getCssFiles()
Retrieves enabled plugins' iframe instance CSS files.
Note: this does not use a Drupal asset library because this CSS will be loaded by CKEditor, not by Drupal.
Parameters
\Drupal\editor\Entity\Editor $editor: A configured text editor object.
Return value
string[] An array of CSS files. This is a flat list of file paths relative to the Drupal root.
Overrides CKEditorPluginCssInterface::getCssFiles
File
- src/
Plugin/ CKEditorPlugin/ ResponsiveArea.php, line 57
Class
- ResponsiveArea
- Defines the "responsivearea" plugin.
Namespace
Drupal\ckeditor_responsive_plugin\Plugin\CKEditorPluginCode
public function getCssFiles(Editor $editor) {
$plugin_path = drupal_get_path('module', 'ckeditor_responsive_plugin');
$path = $plugin_path . '/js/plugins/responsivearea/';
return [
$path . 'responsivearea.css',
];
}