Class: FragmentEditor

FragmentEditor()

Creates a Fragment Editor component that lets you create a new fragment or edit an existing fragment. This component integrates three <SourceEditor /> components for each part of the fragment and a <FragmentPreview /> component for the preview.

Constructor

new FragmentEditor()

Source:

Members

(static, non-null) STATE :Object

State definition.
Type:
  • Object
Source:

autocompleteTags :Array

List of tags for custom autocompletion in the HTML editor.
Type:
  • Array
Default Value:
  • []
Source:

(non-null) fragmentCollectionId :string

Fragment collection ID.
Type:
  • string
Default Value:
  • undefined
Source:

(non-null) fragmentEntryId :string

Fragment entry ID.
Type:
  • string
Default Value:
  • undefined
Source:

(non-null) name :string

Fragment name.
Type:
  • string
Default Value:
  • undefined
Source:

(non-null) spritemap :string

Path of the available icons.
Type:
  • string
Source:

urls :Object

URLs used for communicating with back-end logic.
Type:
  • Object
Source:

Methods

getContent() → {Object}

Returns content for the fragment.
Source:
Returns:
Type
Object

isHtmlValid() → {boolean}

Returns true when HTML content is valid.
Source:
Returns:
true when HTML is valid; false otherwise.
Type
boolean

shouldUpdate()

Source: