Issue #2161763 by Wim Leers, sun: Remove unnecessary drupalSettings.editor.getUntransformedTextURL setting.
parent
e22ce6994d
commit
0b99fde9a2
|
@ -118,14 +118,6 @@ function editor_library_info() {
|
|||
'scope' => 'footer',
|
||||
'attributes' => array('defer' => TRUE),
|
||||
),
|
||||
array(
|
||||
'type' => 'setting',
|
||||
'data' => array(
|
||||
'editor' => array(
|
||||
'getUntransformedTextURL' => url('editor/!entity_type/!id/!field_name/!langcode/!view_mode'),
|
||||
)
|
||||
)
|
||||
),
|
||||
),
|
||||
'dependencies' => array(
|
||||
array('edit', 'edit'),
|
||||
|
|
|
@ -164,7 +164,7 @@ Drupal.edit.editors.editor = Drupal.edit.EditorView.extend({
|
|||
|
||||
// Create a Drupal.ajax instance to load the form.
|
||||
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',
|
||||
submit: { nocssjs : true },
|
||||
progress: { type : null } // No progress indicator.
|
||||
|
|
Loading…
Reference in New Issue