Contents

Backend\FormWidgets\MarkdownEditor

Overview

MarkdownEditor renders a markdown editor field.

Extends
Implements
  • Larajax\Contracts\ViewComponentInterface

Public Properties

public string $mode

Display mode: split, tab.

public bool $safeMode

safeMode runs the rendered preview HTML through DOMPurify before it is shown in the editor. Defaults to true.

public bool $legacyMode

The Legacy mode disables the Vue integration.

public bool $sideBySide

sideBySide window by default.

public string $externalToolbarBus

externalToolbarBus defines a mount point for the editor toolbar. Only works in Vue applications and form document layouts.

Show inherited public properties

Inherited Public Properties

Protected Properties

protected $defaultAlias

defaultAlias to identify this widget.

Show inherited protected properties

Inherited Protected Properties


Public Methods

public init()

public init(): void

init the widget, called by the constructor and free from its parameters.

public onRefresh()

public onRefresh(): void

public prepareVars()

public prepareVars(): void

prepareVars for display

public render()

public render(): void

render the widget's primary contents.

Show inherited public methods

Inherited Public Methods

Protected Methods

protected loadAssets()

protected loadAssets(): void

loadAssets adds widget specific asset files. Use $this->addJs() and $this->addCss() to register new assets to include on the page.

Show inherited protected methods

Inherited Protected Methods