3 * A Backbone Model for the state of an in-place editor.
5 * @see Drupal.quickedit.EditorView
8 (function (Backbone, Drupal) {
15 * @augments Backbone.Model
17 Drupal.quickedit.EditorModel = Backbone.Model.extend(/** @lends Drupal.quickedit.EditorModel# */{
22 * @prop {string} originalValue
23 * @prop {string} currentValue
24 * @prop {Array} validationErrors
26 defaults: /** @lends Drupal.quickedit.EditorModel# */{
29 * Not the full HTML representation of this field, but the "actual"
30 * original value of the field, stored by the used in-place editor, and
31 * in a representation that can be chosen by the in-place editor.
38 * Analogous to originalValue, but the current value.
45 * Stores any validation errors to be rendered.
49 validationErrors: null