EditorMail
Table of Contents
Methods
- createInstance() : Editor
- Create instance of editor.
- getBlockList() : array<string|int, mixed>
- Get block list.
- getPreview() : string
- Show preview of content.
- removePhpFromHtml() : string
- Remove php from html.
- show() : string
- Show editor.
Methods
createInstance()
Create instance of editor.
public
static createInstance(array<string|int, mixed> $params) : Editor
Parameters
- $params : array<string|int, mixed>
-
Parameters.
Return values
EditorgetBlockList()
Get block list.
public
static getBlockList() : array<string|int, mixed>
Return values
array<string|int, mixed>getPreview()
Show preview of content.
public
static getPreview(array<string|int, mixed> $params) : string
Parameters
- $params : array<string|int, mixed>
-
Parameters.
Return values
stringremovePhpFromHtml()
Remove php from html.
public
static removePhpFromHtml(string $html[, string $previousHtml = null ][, bool $canEditPhp = false ][, bool $canUseLpa = false ]) : string
Parameters
- $html : string
-
Html.
- $previousHtml : string = null
-
Previous html.
- $canEditPhp : bool = false
-
Can edit php.
- $canUseLpa : bool = false
-
Can use LPA.
Return values
stringshow()
Show editor.
public
static show(array<string|int, mixed> $params) : string
Parameters
- $params : array<string|int, mixed>
-
Parameters.