Module: alfresco/forms/controls/MarkdownWithPreviewEditor

alfresco/forms/controls/MarkdownWithPreviewEditor

This form control provide an editor configured to show content in markdown format with an associated preview widget showing what the content is like.
Since:
  • 1.0.89
Author:
  • Dave Draper
License:
Source:

Members

cssRequirements :Array

An array of the CSS files to use with this widget.
Type:
  • Array
Source:

editMode :string

Overrides the default configuration to configure the CodeMirrorEditor to use markdown format.
Type:
  • string
Default Value:
  • "markdown"
Source:

Methods

createFormControl(config, domNode)

Extends the inherited function to create a Markdown widget to use to preview the markdown content.
Parameters:
Name Type Description
config object The configuration to create the form control with
domNode element The element to create the form control in.
Source:

onEditorChange(editor, changeObject)

Extends the inherited function to publish the edit changes to the Markdown widget to update the preview
Parameters:
Name Type Description
editor object The editor being updated
changeObject object An object with the details of the changes
Source: