EditorHandler
class EditorHandler
Class EditorHandler
Constants
NAME |
Unique name |
CONFIG_NAME |
The name of config prefix |
MAP_CONFIG_NAME |
The name of map config |
FILE_UPLOAD_PATH |
The path for upload |
THUMBNAIL_TYPE |
The type of thumbnail |
Properties
protected PluginRegister | $register | PluginRegister instance | |
protected ConfigManager | $configManager | ConfigManager instance | |
protected Container | $container | Container instance | |
protected Storage | $storage | Storage instance | |
protected MediaManager | $mediaManager | MediaManager instance | |
protected TagHandler | $tagHandler | TagHandler instance | |
protected string | $defaultEditorId | Default editor identifier | |
protected string | $selectorName | The selector for tool's compiling |
Methods
EditorHandler constructor.
Get registered editor ids
Set default editor id
Get default editor id
Set instance by instance id
Get editor id by instance id
Get editor by instance id
Rendering the editor
Get all registered tools
Get a tool
Set tools for specific instance
Get tools for specific instance
Compile the raw content to be useful
Compile the raw content to be useful by tools
Set the config for specific instance
Get the config for specific instance
Get a key string for the config
Get a key string for the permission
Details
at line 141
__construct(PluginRegister $register, ConfigManager $configManager, Container $container, Storage $storage, MediaManager $mediaManager, TagHandler $tagHandler)
EditorHandler constructor.
at line 162
array
getAll()
Get registered editor ids
at line 173
void
setDefaultEditorId(string $editorId)
Set default editor id
at line 183
string
getDefaultEditorId()
Get default editor id
at line 195
void
setInstance(string $instanceId, string $editorId)
Set instance by instance id
at line 210
string
getEditorId(string $instanceId)
Get editor id by instance id
at line 225
AbstractEditor
get(string $instanceId)
Get editor by instance id
at line 248
string
render(string $instanceId, array|false $args, string|null $targetId = null)
Rendering the editor
at line 263
array
getToolAll()
Get all registered tools
at line 275
AbstractTool|null
getTool(string $toolId, string $instanceId)
Get a tool
at line 293
void
setTools(string $instanceId, array $tools)
Set tools for specific instance
at line 304
string[]
getTools(string $instanceId)
Get tools for specific instance
at line 317
string
compile(string $instanceId, string $content, bool $htmlable = false)
Compile the raw content to be useful
at line 331
protected string
compileTools(string $instanceId, string $content)
Compile the raw content to be useful by tools
at line 367
File[]
getFiles(string $targetId)
Get files of target used
at line 392
ConfigEntity
setConfig(string $instanceId, array $data)
Set the config for specific instance
at line 403
ConfigEntity
getConfig(string $instanceId)
Get the config for specific instance
at line 414
protected string
getConfigKey(string $instanceId)
Get a key string for the config
at line 425
string
getPermKey(string $instanceId)
Get a key string for the permission