Show:

Streams html Class

Inline editor for HTML content

Constructor

Streams html

(
  • [options]
)

Parameters:

  • [options] Object optional

    this object contains function parameters

    • publisherId String

      The publisher's user id.

    • field String

      The name of the stream field used to save the html.

    • [streamName] String optional

      If empty, and "creatable" is true, then this can be used to add new related streams.

    • [placeholder] String optional

      The placeholder HTML

    • [editor="auto"] String optional

      Can be "ckeditor", "froala", "basic" or "auto".

    • [editable] Boolean optional

      Set to false to avoid showing even authorized users an interface to replace the contents

    • [ckeditor] Object optional

      The config, if any, to pass to ckeditor

    • [froala] Object optional

      The config, if any, to pass to froala

    • [preprocess] Function optional

      Optional function which takes [callback, tool] and calls callback(objectToExtendAnyStreamFields)

    • [beforeSave] Q.Event optional

      This event triggers before save

    • [onFroalaEditor] Q.Event optional

      This event triggers when the froala editor is loaded

Item Index