3 * A Backbone Model for the state of an in-place editor.
5 * @see Drupal.quickedit.EditorView
8 (function (Backbone, Drupal) {
12 * @augments Backbone.Model
14 Drupal.quickedit.EditorModel = Backbone.Model.extend(/** @lends Drupal.quickedit.EditorModel# */{
19 * @prop {string} originalValue
20 * @prop {string} currentValue
21 * @prop {Array} validationErrors
23 defaults: /** @lends Drupal.quickedit.EditorModel# */{
26 * Not the full HTML representation of this field, but the "actual"
27 * original value of the field, stored by the used in-place editor, and
28 * in a representation that can be chosen by the in-place editor.
35 * Analogous to originalValue, but the current value.
42 * Stores any validation errors to be rendered.
46 validationErrors: null,