class RedactorEditor implements EditorInterface (View source)

Properties

protected $assets
protected $identifier
protected $token
protected $allowFileManager
protected $allowSitemap
protected $pluginManager

Methods

__construct()

No description

allowFileManager()

No description

allowSitemap()

No description

setAllowFileManager(bool $allow)

Set if the editor can offer the "browse files" feature.

setAllowSitemap(bool $allow)

Set if the editor can offer the "browse sitemap" feature.

getEditor($key, $content = null, $options = array())

No description

string
outputPageInlineEditor(string $key, string|null $content = null)

Generate the HTML to be placed in a page to display the inline editor.

string
outputBlockEditModeEditor(string $key, string $content)

Generate the HTML to be placed in a page to display the editor when the page is in edito mode.

string
outputPageComposerEditor(string $key, string $content)

Generate the HTML to be placed in a page to display the editor in composer views.

string
outputStandardEditor(string $key, string|null $content = null)

Generate the HTML to be placed in a page to display the editor.

getPluginManager()

Get the plugin manager instance.

setPluginManager(PluginManager $pluginManager)

No description

saveOptionsForm(Request $request)

Save the plugin options.

requireEditorAssets()

Build the list of required assets.

Details

__construct()

allowFileManager()

allowSitemap()

setAllowFileManager(bool $allow)

Set if the editor can offer the "browse files" feature.

Parameters

bool $allow

setAllowSitemap(bool $allow)

Set if the editor can offer the "browse sitemap" feature.

Parameters

bool $allow

protected getEditor($key, $content = null, $options = array())

Parameters

$key
$content
$options

string outputPageInlineEditor(string $key, string|null $content = null)

Generate the HTML to be placed in a page to display the inline editor.

Parameters

string $key the name of the field to be used to POST the editor content
string|null $content The initial value of the editor content

Return Value

string

string outputBlockEditModeEditor(string $key, string $content)

Generate the HTML to be placed in a page to display the editor when the page is in edito mode.

Parameters

string $key the name of the field to be used to POST the editor content
string $content The initial value of the editor content

Return Value

string

string outputPageComposerEditor(string $key, string $content)

Generate the HTML to be placed in a page to display the editor in composer views.

Parameters

string $key the name of the field to be used to POST the editor content
string $content The initial value of the editor content

Return Value

string

string outputStandardEditor(string $key, string|null $content = null)

Generate the HTML to be placed in a page to display the editor.

Parameters

string $key the name of the field to be used to POST the editor content
string|null $content The initial value of the editor content

Return Value

string

PluginManager getPluginManager()

Get the plugin manager instance.

Return Value

PluginManager

setPluginManager(PluginManager $pluginManager)

Parameters

PluginManager $pluginManager

saveOptionsForm(Request $request)

Save the plugin options.

Parameters

Request $request

requireEditorAssets()

Build the list of required assets.