X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fckeditor%2Fjs%2Fmodels%2FModel.es6.js;fp=web%2Fcore%2Fmodules%2Fckeditor%2Fjs%2Fmodels%2FModel.es6.js;h=f0ad4cc471840bc7abc68109f8de08549305d4ca;hp=40c0ac6160e85f189fadce451e459c69bba1dfa0;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/web/core/modules/ckeditor/js/models/Model.es6.js b/web/core/modules/ckeditor/js/models/Model.es6.js index 40c0ac616..f0ad4cc47 100644 --- a/web/core/modules/ckeditor/js/models/Model.es6.js +++ b/web/core/modules/ckeditor/js/models/Model.es6.js @@ -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. * @@ -11,61 +11,63 @@ * * @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);