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
- Copyright:
- Copyright (C) 2005-2020 Alfresco Software Limited
- License:
- GNU Lesser General Public License, see: Open Source Licensing
- Source:
Members
-
cssRequirements :Array
-
An array of the CSS files to use with this widget.
Type:
- Array
-
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. -
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