editor_image_upload_settings_form

editor_image_upload_settings_form(Editor $editor) Subform constructor to configure the text editor's image upload settings. Each text editor plugin that is configured to offer the ability to insert images and uses EditorImageDialog for that, should use this form to update the text editor's configuration so that EditorImageDialog knows whether it should allow the user to upload images. Parameters \Drupal\editor\Entity\Editor $editor: The text editor entity that is being edited. Return value ar

editor_help

editor_help($route_name, RouteMatchInterface $route_match) Implements hook_help(). File core/modules/editor/editor.module, line 23 Adds bindings for client-side "text editors" to text formats. Code function editor_help($route_name, RouteMatchInterface $route_match) { switch ($route_name) { case 'help.page.editor': $output = ''; $output .= '<h3>' . t('About') . '</h3>'; $output .= '<p>' . t('The Text Editor module provides a framework that other module

editor_form_filter_format_form_alter

editor_form_filter_format_form_alter(&$form, FormStateInterface $form_state) Implements hook_form_BASE_FORM_ID_alter() for \Drupal\filter\FilterFormatEditForm. File core/modules/editor/editor.module, line 107 Adds bindings for client-side "text editors" to text formats. Code function editor_form_filter_format_form_alter(&$form, FormStateInterface $form_state) { $editor = $form_state->get('editor'); if ($editor === NULL) { $format = $form_state->getFormObject()->getEnt

editor_form_filter_admin_overview_alter

editor_form_filter_admin_overview_alter(&$form, FormStateInterface $form_state) Implements hook_form_FORM_ID_alter(). File core/modules/editor/editor.module, line 85 Adds bindings for client-side "text editors" to text formats. Code function editor_form_filter_admin_overview_alter(&$form, FormStateInterface $form_state) { // @todo Cleanup column injection: https://www.drupal.org/node/1876718. // Splice in the column for "Text editor" into the header. $position = array_search('na

editor_form_filter_admin_form_ajax

editor_form_filter_admin_form_ajax($form, FormStateInterface $form_state) AJAX callback handler for filter_format_form(). File core/modules/editor/editor.module, line 208 Adds bindings for client-side "text editors" to text formats. Code function editor_form_filter_admin_form_ajax($form, FormStateInterface $form_state) { return $form['editor']['settings']; }

editor_form_filter_admin_format_validate

editor_form_filter_admin_format_validate($form, FormStateInterface $form_state) Additional validate handler for filter_format_form(). File core/modules/editor/editor.module, line 215 Adds bindings for client-side "text editors" to text formats. Code function editor_form_filter_admin_format_validate($form, FormStateInterface $form_state) { // This validate handler is not applicable when using the 'Configure' button. if ($form_state->getTriggeringElement()['#name'] === 'editor_configure'

editor_form_filter_admin_format_submit

editor_form_filter_admin_format_submit($form, FormStateInterface $form_state) Additional submit handler for filter_format_form(). File core/modules/editor/editor.module, line 233 Adds bindings for client-side "text editors" to text formats. Code function editor_form_filter_admin_format_submit($form, FormStateInterface $form_state) { // Delete the existing editor if disabling or switching between editors. $format = $form_state->getFormObject()->getEntity(); $format_id = $format->

editor_form_filter_admin_format_editor_configure

editor_form_filter_admin_format_editor_configure($form, FormStateInterface $form_state) Button submit handler for filter_format_form()'s 'editor_configure' button. File core/modules/editor/editor.module, line 186 Adds bindings for client-side "text editors" to text formats. Code function editor_form_filter_admin_format_editor_configure($form, FormStateInterface $form_state) { $editor = $form_state->get('editor'); $editor_value = $form_state->getValue(array('editor', 'editor')); if

editor_filter_xss

editor_filter_xss($html, FilterFormatInterface $format = NULL, FilterFormatInterface $original_format = NULL) Applies text editor XSS filtering. Parameters string $html: The HTML string that will be passed to the text editor. \Drupal\filter\FilterFormatInterface|null $format: The text format whose text editor will be used or NULL if the previously defined text format is now disabled. \Drupal\filter\FilterFormatInterface $original_format|null: (optional) The original text format (i.e. when swit

editor_filter_format_presave

editor_filter_format_presave(FilterFormatInterface $format) Implements hook_ENTITY_TYPE_presave(). Synchronizes the editor status to its paired text format status. File core/modules/editor/editor.module, line 615 Adds bindings for client-side "text editors" to text formats. Code function editor_filter_format_presave(FilterFormatInterface $format) { // The text format being created cannot have a text editor yet. if ($format->isNew()) { return; } /** @var \Drupal\filter\FilterFo