Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / ckeditor / js / models / Model.es6.js
index 40c0ac6160e85f189fadce451e459c69bba1dfa0..f0ad4cc471840bc7abc68109f8de08549305d4ca 100644 (file)
@@ -3,7 +3,7 @@
  * A Backbone Model for the state of a CKEditor toolbar configuration .
  */
 
-(function (Drupal, Backbone) {
+(function(Drupal, Backbone) {
   /**
    * Backbone model for the CKEditor toolbar configuration state.
    *
    *
    * @augments Backbone.Model
    */
-  Drupal.ckeditor.Model = Backbone.Model.extend(/** @lends Drupal.ckeditor.Model# */{
-
-    /**
-     * Default values.
-     *
-     * @type {object}
-     */
-    defaults: /** @lends Drupal.ckeditor.Model# */{
-
+  Drupal.ckeditor.Model = Backbone.Model.extend(
+    /** @lends Drupal.ckeditor.Model# */ {
       /**
-       * The CKEditor configuration that is being manipulated through the UI.
+       * Default values.
+       *
+       * @type {object}
        */
-      activeEditorConfig: null,
+      defaults: /** @lends Drupal.ckeditor.Model# */ {
+        /**
+         * The CKEditor configuration that is being manipulated through the UI.
+         */
+        activeEditorConfig: null,
 
-      /**
-       * The textarea that contains the serialized representation of the active
-       * CKEditor configuration.
-       */
-      $textarea: null,
+        /**
+         * The textarea that contains the serialized representation of the active
+         * CKEditor configuration.
+         */
+        $textarea: null,
 
-      /**
-       * Tracks whether the active toolbar DOM structure has been changed. When
-       * true, activeEditorConfig needs to be updated, and when that is updated,
-       * $textarea will also be updated.
-       */
-      isDirty: false,
+        /**
+         * Tracks whether the active toolbar DOM structure has been changed. When
+         * true, activeEditorConfig needs to be updated, and when that is updated,
+         * $textarea will also be updated.
+         */
+        isDirty: false,
 
-      /**
-       * The configuration for the hidden CKEditor instance that is used to
-       * build the features metadata.
-       */
-      hiddenEditorConfig: null,
+        /**
+         * The configuration for the hidden CKEditor instance that is used to
+         * build the features metadata.
+         */
+        hiddenEditorConfig: null,
 
-      /**
-       * A hash that maps buttons to features.
-       */
-      buttonsToFeatures: null,
+        /**
+         * A hash that maps buttons to features.
+         */
+        buttonsToFeatures: null,
 
-      /**
-       * A hash, keyed by a feature name, that details CKEditor plugin features.
-       */
-      featuresMetadata: null,
+        /**
+         * A hash, keyed by a feature name, that details CKEditor plugin features.
+         */
+        featuresMetadata: null,
+
+        /**
+         * Whether the button group names are currently visible.
+         */
+        groupNamesVisible: false,
+      },
 
       /**
-       * Whether the button group names are currently visible.
+       * @method
        */
-      groupNamesVisible: false,
-    },
-
-    /**
-     * @method
-     */
-    sync() {
-      // Push the settings into the textarea.
-      this.get('$textarea').val(JSON.stringify(this.get('activeEditorConfig')));
+      sync() {
+        // Push the settings into the textarea.
+        this.get('$textarea').val(
+          JSON.stringify(this.get('activeEditorConfig')),
+        );
+      },
     },
-  });
-}(Drupal, Backbone));
+  );
+})(Drupal, Backbone);