3 namespace Drupal\ckeditor;
5 use Drupal\editor\Entity\Editor;
8 * Defines an interface for CKEditor plugins with associated CSS.
10 * This allows a CKEditor plugin to add additional CSS in iframe CKEditor
11 * instances without needing to implement hook_ckeditor_css_alter().
13 * @see \Drupal\ckeditor\CKEditorPluginInterface
14 * @see \Drupal\ckeditor\CKEditorPluginButtonsInterface
15 * @see \Drupal\ckeditor\CKEditorPluginContextualInterface
16 * @see \Drupal\ckeditor\CKEditorPluginConfigurableInterface
17 * @see \Drupal\ckeditor\CKEditorPluginBase
18 * @see \Drupal\ckeditor\CKEditorPluginManager
19 * @see \Drupal\ckeditor\Annotation\CKEditorPlugin
22 interface CKEditorPluginCssInterface extends CKEditorPluginInterface {
25 * Retrieves enabled plugins' iframe instance CSS files.
27 * Note: this does not use a Drupal asset library because this CSS will be
28 * loaded by CKEditor, not by Drupal.
30 * @param \Drupal\editor\Entity\Editor $editor
31 * A configured text editor object.
34 * An array of CSS files. This is a flat list of file paths relative to
37 public function getCssFiles(Editor $editor);