X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fckeditor%2Fjs%2Fckeditor.admin.es6.js;fp=web%2Fcore%2Fmodules%2Fckeditor%2Fjs%2Fckeditor.admin.es6.js;h=4cf6a63e44be1750eb3554fb4da850cd5e49bf57;hp=92e225caec0a822bc9efe71cf7531491dd995282;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0 diff --git a/web/core/modules/ckeditor/js/ckeditor.admin.es6.js b/web/core/modules/ckeditor/js/ckeditor.admin.es6.js index 92e225cae..4cf6a63e4 100644 --- a/web/core/modules/ckeditor/js/ckeditor.admin.es6.js +++ b/web/core/modules/ckeditor/js/ckeditor.admin.es6.js @@ -34,7 +34,7 @@ $configurationForm.append(drupalSettings.ckeditor.toolbarAdmin); // Create a configuration model. - const model = Drupal.ckeditor.models.Model = new Drupal.ckeditor.Model({ + Drupal.ckeditor.models.Model = new Drupal.ckeditor.Model({ $textarea, activeEditorConfig: JSON.parse($textarea.val()), hiddenEditorConfig: drupalSettings.ckeditor.hiddenCKEditorConfig, @@ -42,7 +42,7 @@ // Create the configuration Views. const viewDefaults = { - model, + model: Drupal.ckeditor.models.Model, el: $('.ckeditor-toolbar-configuration'), }; Drupal.ckeditor.views = { @@ -194,7 +194,7 @@ .find('input') .addClass('error') .attr('aria-invalid', 'true'); - $(`
${Drupal.t('Please provide a name for the button group.')}
`).insertAfter(form.elements[0]); + $(`
${Drupal.t('Please provide a name for the button group.')}
`).insertAfter(form.elements[0]); } return true; } @@ -290,7 +290,7 @@ // Create a Drupal dialog that will get a button group name from the user. const $ckeditorButtonGroupNameForm = $(Drupal.theme('ckeditorButtonGroupNameForm')); - var dialog = Drupal.dialog($ckeditorButtonGroupNameForm.get(0), { + const dialog = Drupal.dialog($ckeditorButtonGroupNameForm.get(0), { title: Drupal.t('Button group name'), dialogClass: 'ckeditor-name-toolbar-group', resizable: false,