Axllent\Gfmarkdown\Forms\MarkdownEditor
Markdown Editor using Ace Editor
Synopsis
class MarkdownEditor
extends TextareaField
{
- // members
- protected $theme;
- protected $rows;
- protected $wrap;
- protected $highlight_active_line;
- // methods
- public void __construct()
- public MarkdownEditor setTheme()
- public MarkdownEditor setWrap()
- public MarkdownEditor setHighlightActiveLine()
- protected mixed currConfig()
- public string FieldHolder()
- public Array getAttributes()
Hierarchy
Extends
- SilverStripe\Forms\TextareaField
Members
protected
- $highlight_active_line
—
mixed
Highlight active line - Ace editor - $rows
—
mixed
Rows - Ace editor - $theme
—
mixed
Theme - Ace editor - $wrap
—
mixed
Wrap - Ace editor
Methods
protected
- currConfig() — Check current config else return a default
public
- __construct() — Constructor
- FieldHolder() — Returns the field holder used by templates
- getAttributes() — Generates the attributes to be used on the field
- setHighlightActiveLine() — Sets the current line highlighting for the ACE editor markdown editor.
- setTheme() — Sets the theme for the ACE editor markdown editor.
- setWrap() — Sets the "Wrap Mode" on the ACE editor markdown editor.