Commit 0b99fde9 authored by webchick's avatar webchick

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

Issue #2161763 by Wim Leers, sun: Remove unnecessary drupalSettings.editor.getUntransformedTextURL setting.
parent e22ce699
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment