Page tree
Skip to end of metadata
Go to start of metadata

This element allows you to customize the colors accessible via the color chooser dialog used by EditLive!.

Configuration Element Tree Structure

<editLive>
<wysiwygEditor>
<colorPalette>

<editLive>
  ...
  <wysiwygEditor>
    ...
      <colorPalette>
 
      </colorPalette>
  <wysiwygEditor/>
  ...
</editLive>

Optional Attributes

showMoreColors

This boolean attribute defines whether the color chooser displayed by the editor will allow the user to select any color they wish (via the More Colors link on the dialog). If this value is set to false, the only colors available to the user will be the colors defined in the <color> child elements.

This attribute is a boolean and can have the value of either true or false.

Default Value: true

Child Elements

<color>

These elements define a single color which will appear in the color chooser used by EditLive!.

Example

The following example would disable the More Colors link from the color chooser (hence, limiting the user to only select colors specified by the <color> elements).

<editLive>
  ...
  <wysiwygEditor>
    ...
      <colorPalette showMoreColors="false">
 
      </colorPalette>
  <wysiwygEditor/>
  ...
</editLive>

Remarks

The <colorPalette> element can appear only once within the <editLive> element.

  • No labels