Issue #2161763 by Wim Leers, sun: Remove unnecessary drupalSettings.editor.getUntransformedTextURL setting.

8.0.x
webchick 2014-01-13 22:42:42 -08:00
parent e22ce6994d
commit 0b99fde9a2
2 changed files with 1 additions and 9 deletions

View File

@ -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'),

View File

@ -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.