Skip to content
Snippets Groups Projects
Commit 0b99fde9 authored by Angie Byron's avatar Angie Byron
Browse files

Issue #2161763 by Wim Leers, sun: Remove unnecessary...

Issue #2161763 by Wim Leers, sun: Remove unnecessary drupalSettings.editor.getUntransformedTextURL setting.
parent e22ce699
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -118,14 +118,6 @@ function editor_library_info() { ...@@ -118,14 +118,6 @@ function editor_library_info() {
'scope' => 'footer', 'scope' => 'footer',
'attributes' => array('defer' => TRUE), 'attributes' => array('defer' => TRUE),
), ),
array(
'type' => 'setting',
'data' => array(
'editor' => array(
'getUntransformedTextURL' => url('editor/!entity_type/!id/!field_name/!langcode/!view_mode'),
)
)
),
), ),
'dependencies' => array( 'dependencies' => array(
array('edit', 'edit'), array('edit', 'edit'),
......
...@@ -164,7 +164,7 @@ Drupal.edit.editors.editor = Drupal.edit.EditorView.extend({ ...@@ -164,7 +164,7 @@ Drupal.edit.editors.editor = Drupal.edit.EditorView.extend({
// Create a Drupal.ajax instance to load the form. // Create a Drupal.ajax instance to load the form.
var textLoaderAjax = new Drupal.ajax(fieldID, this.$el, { var textLoaderAjax = new Drupal.ajax(fieldID, this.$el, {
url: Drupal.edit.util.buildUrl(fieldID, drupalSettings.editor.getUntransformedTextURL), url: Drupal.edit.util.buildUrl(fieldID, Drupal.url('editor/!entity_type/!id/!field_name/!langcode/!view_mode')),
event: 'editor-internal.editor', event: 'editor-internal.editor',
submit: { nocssjs : true }, submit: { nocssjs : true },
progress: { type : null } // No progress indicator. progress: { type : null } // No progress indicator.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment