Свойство | Тип | Описание | |
---|---|---|---|
$arguments | array | Given arguments for the editor | |
$config | ConfigEntity instance | ||
$defaultArguments | array | Default editor arguments | |
$editors | EditorHandler instance | ||
$events | Illuminate\Contracts\Events\Dispatcher | Dispatcher instance | |
$fileClassName | string | The file class name | |
$fileIdentifierAttrName | string | The file identifier attribute name | |
$fileInputName | string | The file input name | |
$files | array | Used files | |
$frontend | FrontendHandler instance | ||
$gate | Illuminate\Contracts\Auth\Access\Gate | Gate instance | |
$imageClassName | string | The image class name | |
$imageIdentifierAttrName | string | The image identifier attribute name | |
$imageResolver | callable | The image resolver | |
$instanceId | string | Instance identifier | |
$mentionClassName | string | The mention class name | |
$mentionIdentifierAttrName | string | The mention identifier attribute name | |
$mentionInputName | string | The mention input name | |
$options | null | Options for the editor | |
$scriptOnly | boolean | Indicates if used only javascript. | |
$skins | Xpressengine\Skin\SkinHandler | SkinHandler instance | |
$tagClassName | string | The tag class name | |
$tagInputName | string | The tag input name | |
$tools | The registered tools for the editor | ||
$urls | Illuminate\Contracts\Routing\UrlGenerator | UrlGenerator instance |
Метод | Описание | |
---|---|---|
__construct ( |
AbstractEditor constructor. | |
compile ( string $content, boolean $htmlable = false ) : string | Compile the raw content to be useful | |
getActivateToolIds ( ) : array | Get activated tool's identifier for the editor | |
getArguments ( ) : array | Get arguments for the editor | |
getConfig ( ) : null | |
Get config for the editor | |
getCustomOptions ( ) : array | Get options for some editor only | |
getFileClassName ( ) : string | Get the file class name | |
getFileIdentifierAttrName ( ) : string | Get the file identifier attribute name | |
getFileInputName ( ) : string | Get the file input name | |
getImageClassName ( ) : string | Get the image class name | |
getImageIdentifierAttrName ( ) : string | Get the image identifier attribute name | |
getInstanceId ( ) : string | Get instance id for the editor | |
getInstanceSettingURI ( string $instanceId ) : string | null | Get uri for custom setting | |
getMentionClassName ( ) : string | Get the mention class name | |
getMentionIdentifierAttrName ( ) : string | Get the mention identifier attribute name | |
getMentionInputName ( ) : string | Get the mention input name | |
getName ( ) : string | Get a editor name | |
getOptions ( ) : array | Get options | |
getTagClassName ( ) : string | Get the tag class name | |
getTagInputName ( ) : string | Get the tag input name | |
getTools ( ) : |
Get activated tools for the editor | |
htmlable ( ) : boolean | Determine if a editor html usable. | |
render ( ) : string | Get the evaluated contents of the object. | |
resolveImage ( array $ids = [] ) : array | Resolve image instances | |
setArguments ( array $arguments = [] ) | Set arguments for the editor | |
setConfig ( |
Set config for the editor | |
setFiles ( array $files = [] ) : void | Set files the editor used | |
setImageResolver ( callable $resolver ) : void | Set the image resolver |
Метод | Описание | |
---|---|---|
buildOptions ( ) : array | Build options | |
compileBody ( string $content ) : string | Compile content body | |
getContentDomHtmlOption ( array $domOptions ) : string | Get attributes string for content html tag | |
getContentHtml ( ) : string | Get a content html tag string | |
getDynamicOption ( ) : array | Get dynamic option data for the editor | |
getEditorScript ( array $options ) : mixed | Get script for running the editor | |
getStaticOption ( ) : array | Get static option data for the editor | |
hashTag ( string $content ) : string | Compile tags in content body | |
image ( string $content ) : string | Compile images in content body | |
link ( string $content ) : string | Compile links in content body | |
loadTools ( ) : void | Load tools | |
mention ( string $content ) : string | Compile mentions in content body |
Метод | Описание | |
---|---|---|
createCrawler ( string $content ) : |
Create crawler instance | |
getData ( string $content, string $selector, array $attributes = [] ) : array | Get html node data |
public __construct ( |
||
$editors | EditorHandler instance | |
$urls | Illuminate\Contracts\Routing\UrlGenerator | UrlGenerator instance |
$gate | Illuminate\Contracts\Auth\Access\Gate | Gate instance |
$skins | Xpressengine\Skin\SkinHandler | SkinHandler instance |
$events | Illuminate\Contracts\Events\Dispatcher | Dispatcher instance |
$frontend | FrontendHandler instance | |
$instanceId | string | Instance identifier |
abstract protected compileBody ( string $content ) : string | ||
$content | string | content |
Результат | string |
public getActivateToolIds ( ) : array | ||
Результат | array |
public getArguments ( ) : array | ||
Результат | array |
protected getContentDomHtmlOption ( array $domOptions ) : string | ||
$domOptions | array | dom options |
Результат | string |
protected getContentHtml ( ) : string | ||
Результат | string |
public getCustomOptions ( ) : array | ||
Результат | array |
protected getDynamicOption ( ) : array | ||
Результат | array |
protected getEditorScript ( array $options ) : mixed | ||
$options | array | options |
Результат | mixed |
public getFileClassName ( ) : string | ||
Результат | string |
public getFileIdentifierAttrName ( ) : string | ||
Результат | string |
public getFileInputName ( ) : string | ||
Результат | string |
public getImageClassName ( ) : string | ||
Результат | string |
public getImageIdentifierAttrName ( ) : string | ||
Результат | string |
public getInstanceId ( ) : string | ||
Результат | string |
public getMentionClassName ( ) : string | ||
Результат | string |
public getMentionIdentifierAttrName ( ) : string | ||
Результат | string |
public getMentionInputName ( ) : string | ||
Результат | string |
protected getStaticOption ( ) : array | ||
Результат | array |
public getTagClassName ( ) : string | ||
Результат | string |
public getTagInputName ( ) : string | ||
Результат | string |
public getTools ( ) : |
||
Результат |
public static resolveImage ( array $ids = [] ) : array | ||
$ids | array | identifier list |
Результат | array |
public setArguments ( array $arguments = [] ) | ||
$arguments | array | arguments |
public setConfig ( |
||
$config | config instance |
public static setImageResolver ( callable $resolver ) : void | ||
$resolver | callable | resolver |
Результат | void |
protected array $arguments | ||
Результат | array |
protected ConfigEntity,Xpressengine\Config|null $config | ||
Результат |
protected array $defaultArguments | ||
Результат | array |
protected EditorHandler,Xpressengine\Editor $editors | ||
Результат |
protected Dispatcher,Illuminate\Contracts\Events $events | ||
Результат | Illuminate\Contracts\Events\Dispatcher |
protected string $fileClassName | ||
Результат | string |
protected string $fileIdentifierAttrName | ||
Результат | string |
protected string $fileInputName | ||
Результат | string |
protected FrontendHandler,Xpressengine\Presenter\Html $frontend | ||
Результат |
protected Gate,Illuminate\Contracts\Auth\Access $gate | ||
Результат | Illuminate\Contracts\Auth\Access\Gate |
protected string $imageClassName | ||
Результат | string |
protected string $imageIdentifierAttrName | ||
Результат | string |
protected static callable $imageResolver | ||
Результат | callable |
protected string $mentionClassName | ||
Результат | string |
protected string $mentionIdentifierAttrName | ||
Результат | string |
protected string $mentionInputName | ||
Результат | string |
protected bool $scriptOnly | ||
Результат | boolean |
protected SkinHandler,Xpressengine\Skin $skins | ||
Результат | Xpressengine\Skin\SkinHandler |
protected string $tagClassName | ||
Результат | string |
protected string $tagInputName | ||
Результат | string |
protected AbstractTool[],Xpressengine\Editor $tools | ||
Результат |