editor_file_download

editor_file_download($uri) Implements hook_file_download(). See also file_file_download() file_get_file_references() File core/modules/editor/editor.module, line 476 Adds bindings for client-side "text editors" to text formats. Code function editor_file_download($uri) { // Get the file record based on the URI. If not in the database just return. /** @var \Drupal\file\FileInterface[] $files */ $files = \Drupal::entityTypeManager() ->getStorage('file') ->loadByProperties(['

editor_field_formatter_info_alter

editor_field_formatter_info_alter(&$info) Implements hook_form_FORM_ID_alter() for \Drupal\filter\FilterFormatListBuilder. Implements hook_field_formatter_info_alter(). See also quickedit_field_formatter_info_alter() File core/modules/editor/editor.module, line 75 Adds bindings for client-side "text editors" to text formats. Code function editor_field_formatter_info_alter(&$info) { // Update \Drupal\text\Plugin\Field\FieldFormatter\TextDefaultFormatter's // annotation to indicate

editor_entity_update

editor_entity_update(EntityInterface $entity) Implements hook_entity_update(). File core/modules/editor/editor.module, line 362 Adds bindings for client-side "text editors" to text formats. Code function editor_entity_update(EntityInterface $entity) { // Only act on content entities. if (!($entity instanceof FieldableEntityInterface)) { return; } // On new revisions, all files are considered to be a new usage and no // deletion of previous file usages are necessary. if (!empt

editor_entity_revision_delete

editor_entity_revision_delete(EntityInterface $entity) Implements hook_entity_revision_delete(). File core/modules/editor/editor.module, line 415 Adds bindings for client-side "text editors" to text formats. Code function editor_entity_revision_delete(EntityInterface $entity) { // Only act on content entities. if (!($entity instanceof FieldableEntityInterface)) { return; } $referenced_files_by_field = _editor_get_file_uuids_by_field($entity); foreach ($referenced_files_by_field

editor_entity_insert

editor_entity_insert(EntityInterface $entity) Implements hook_entity_insert(). File core/modules/editor/editor.module, line 348 Adds bindings for client-side "text editors" to text formats. Code function editor_entity_insert(EntityInterface $entity) { // Only act on content entities. if (!($entity instanceof FieldableEntityInterface)) { return; } $referenced_files_by_field = _editor_get_file_uuids_by_field($entity); foreach ($referenced_files_by_field as $field => $uuids) {

editor_entity_delete

editor_entity_delete(EntityInterface $entity) Implements hook_entity_delete(). File core/modules/editor/editor.module, line 401 Adds bindings for client-side "text editors" to text formats. Code function editor_entity_delete(EntityInterface $entity) { // Only act on content entities. if (!($entity instanceof FieldableEntityInterface)) { return; } $referenced_files_by_field = _editor_get_file_uuids_by_field($entity); foreach ($referenced_files_by_field as $field => $uuids) {

editor_element_info_alter

editor_element_info_alter(&$types) Implements hook_element_info_alter(). Extends the functionality of text_format elements (provided by Filter module), so that selecting a text format notifies a client-side text editor when it should be enabled or disabled. See also \Drupal\filter\Element\TextFormat File core/modules/editor/editor.module, line 64 Adds bindings for client-side "text editors" to text formats. Code function editor_element_info_alter(&$types) { $types['text_format']['#

EditorXssFilterInterface::filterXss

public static EditorXssFilterInterface::filterXss($html, FilterFormatInterface $format, FilterFormatInterface $original_format = NULL) Filters HTML to prevent XSS attacks when a user edits it in a text editor. Should filter as minimally as possible, only to remove XSS attack vectors. Is only called when: loading a non-XSS-safe text editor for a $format that contains a filter preventing XSS attacks (a FilterInterface::TYPE_HTML_RESTRICTOR filter): if the output is safe, it should also be safe to

EditorXssFilterInterface

Defines an interface for text editor XSS (Cross-site scripting) filters. Hierarchy interface \Drupal\editor\EditorXssFilterInterface File core/modules/editor/src/EditorXssFilterInterface.php, line 10 Namespace Drupal\editor Members Name Modifiers Type Description EditorXssFilterInterface::filterXss public static function Filters HTML to prevent XSS attacks when a user edits it in a text editor.

EditorSelectorInterface::getEditorAttachments

public EditorSelectorInterface::getEditorAttachments(array $editor_ids) Returns the attachments for all editors. Parameters array $editor_ids: A list of all in-place editor IDs that should be attached. Return value array An array of attachments, for use with #attached. See also \Drupal\Core\Render\AttachmentsResponseProcessorInterface::processAttachments() File core/modules/quickedit/src/EditorSelectorInterface.php, line 36 Class EditorSelectorInterface Interface for selecting an in-pla