Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / modules / ckeditor / js / ckeditor.admin.es6.js
index 92e225caec0a822bc9efe71cf7531491dd995282..4cf6a63e44be1750eb3554fb4da850cd5e49bf57 100644 (file)
@@ -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 = {
               .find('input')
               .addClass('error')
               .attr('aria-invalid', 'true');
-            $(`<div class=\"description\" >${Drupal.t('Please provide a name for the button group.')}</div>`).insertAfter(form.elements[0]);
+            $(`<div class="description" >${Drupal.t('Please provide a name for the button group.')}</div>`).insertAfter(form.elements[0]);
           }
           return true;
         }
 
       // 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,