AbstractEditor
abstract class AbstractEditor implements ComponentInterface
Class AbstractEditor
Traits
Properties
static private array | $id | Component id, 만약 이 trait을 사용한 클래스를 상속한 클래스가 id를 지정하지 않았다면, 그 클래스의 id는 이 trait에서 가지고 있는 id에 저장된다. | from ComponentTrait |
static private array | $componentInfo | Component Informations, 만약 이 trait을 사용한 클래스를 상속한 클래스가 componentInfo를 지정하지 않았다면, 그 클래스의 infomation은 이 trait에서 가지고 있는 componentInfo에 저장된다. | from ComponentTrait |
static protected bool | $supportDesktop | from MobileSupportTrait | |
static protected bool | $supportMobile | from MobileSupportTrait | |
protected EditorHandler | $editors | EditorHandler instance | |
protected UrlGenerator | $urls | UrlGenerator instance | |
protected Gate | $gate | Gate instance | |
protected SkinHandler | $skins | SkinHandler instance | |
protected Dispatcher | $events | Dispatcher instance | |
protected FrontendHandler | $frontend | FrontendHandler instance | |
protected string | $instanceId | Instance identifier | |
protected ConfigEntity|null | $config | ConfigEntity instance | |
protected array | $arguments | Given arguments for the editor | |
protected null | $options | Options for the editor | |
protected array | $files | Used files | |
protected bool | $scriptOnly | Indicates if used only javascript. | |
protected AbstractTool[] | $tools | The registered tools for the editor | |
static protected callable | $imageResolver | The image resolver | |
protected array | $defaultArguments | Default editor arguments | |
protected string | $fileInputName | The file input name | |
protected string | $tagInputName | The tag input name | |
protected string | $mentionInputName | The mention input name | |
protected string | $fileClassName | The file class name | |
protected string | $imageClassName | The image class name | |
protected string | $tagClassName | The tag class name | |
protected string | $mentionClassName | The mention class name | |
protected string | $fileIdentifierAttrName | The file identifier attribute name | |
protected string | $imageIdentifierAttrName | The image identifier attribute name | |
protected string | $mentionIdentifierAttrName | The mention identifier attribute name |
Methods
information을 추가하거나 수정한다.
AbstractEditor constructor.
Get config for the editor
Set arguments for the editor
Get arguments for the editor
Set files the editor used
Get a editor name
Determine if a editor html usable.
Get options
Build options
Get static option data for the editor
Get dynamic option data for the editor
Get activated tool's identifier for the editor
Load tools
Get activated tools for the editor
Get the evaluated contents of the object.
Compile the raw content to be useful
Compile content body
Get a content html tag string
Get attributes string for content html tag
Get script for running the editor
Get options for some editor only
Compile tags in content body
Compile mentions in content body
Compile links in content body
Compile images in content body
Get html node data
Set the image resolver
Resolve image instances
Create crawler instance
Get instance id for the editor
Get uri for custom setting
Get the file input name
Get the tag input name
Get the mention input name
Get the file class name
Get the image class name
Get the tag class name
Get the mention class name
Get the file identifier attribute name
Get the image identifier attribute name
Get the mention identifier attribute name
Details
in ComponentTrait at line 51
static string
getId()
component의 id를 반환한다.
in ComponentTrait at line 67
static void
setId(string $id)
component의 id를 지정한다.
in ComponentTrait at line 83
static mixed
getComponentInfo(string $key = null)
information을 검색한다.
in ComponentTrait at line 99
static void
setComponentInfo(string $key, mixed $value = null)
information을 추가하거나 수정한다.
in ComponentTrait at line 119
static void
boot()
boot
in ComponentTrait at line 129
static null|string
getSettingsURI()
return settings manage uri
in MobileSupportTrait at line 42
static bool
supportDesktop()
desktop 버전 지원 여부를 조사한다.
in MobileSupportTrait at line 52
static bool
supportMobile()
mobile 버전 지원 여부를 조사한다.
in MobileSupportTrait at line 64
static bool
support(string $version)
지정된 버전을 지원하는지 조사한다.
at line 235
__construct(EditorHandler $editors, UrlGenerator $urls, Gate $gate, SkinHandler $skins, Dispatcher $events, FrontendHandler $frontend, string $instanceId)
AbstractEditor constructor.
at line 259
$this
setConfig(ConfigEntity $config)
Set config for the editor
at line 271
null|ConfigEntity
getConfig()
Get config for the editor
at line 282
$this
setArguments(array $arguments = array())
Set arguments for the editor
at line 298
array
getArguments()
Get arguments for the editor
at line 309
void
setFiles(array $files = array())
Set files the editor used
at line 319
abstract string
getName()
Get a editor name
at line 326
abstract boolean
htmlable()
Determine if a editor html usable.
at line 333
array
getOptions()
Get options
at line 347
protected array
buildOptions()
Build options
at line 363
protected array
getStaticOption()
Get static option data for the editor
at line 405
protected array
getDynamicOption()
Get dynamic option data for the editor
at line 433
array
getActivateToolIds()
Get activated tool's identifier for the editor
at line 443
protected void
loadTools()
Load tools
at line 455
AbstractTool[]
getTools()
Get activated tools for the editor
at line 474
string
render()
Get the evaluated contents of the object.
at line 495
string
compile(string $content, bool $htmlable = false)
Compile the raw content to be useful
at line 518
abstract protected string
compileBody(string $content)
Compile content body
at line 525
protected string
getContentHtml()
Get a content html tag string
at line 547
protected string
getContentDomHtmlOption(array $domOptions)
Get attributes string for content html tag
at line 563
protected mixed
getEditorScript(array $options)
Get script for running the editor
at line 587
array
getCustomOptions()
Get options for some editor only
at line 598
protected string
hashTag(string $content)
Compile tags in content body
at line 619
protected string
mention(string $content)
Compile mentions in content body
at line 645
protected string
link(string $content)
Compile links in content body
at line 656
protected string
image(string $content)
Compile images in content body
at line 705
private array
getData(string $content, string $selector, array $attributes = array())
Get html node data
at line 732
static void
setImageResolver(callable $resolver)
Set the image resolver
at line 743
static array
resolveImage(array $ids = array())
Resolve image instances
at line 756
private Crawler
createCrawler(string $content)
Create crawler instance
at line 766
string
getInstanceId()
Get instance id for the editor
at line 777
static string|null
getInstanceSettingURI(string $instanceId)
Get uri for custom setting
at line 787
string
getFileInputName()
Get the file input name
at line 797
string
getTagInputName()
Get the tag input name
at line 807
string
getMentionInputName()
Get the mention input name
at line 817
string
getFileClassName()
Get the file class name
at line 827
string
getImageClassName()
Get the image class name
at line 837
string
getTagClassName()
Get the tag class name
at line 847
string
getMentionClassName()
Get the mention class name
at line 857
string
getFileIdentifierAttrName()
Get the file identifier attribute name
at line 867
string
getImageIdentifierAttrName()
Get the image identifier attribute name
at line 877
string
getMentionIdentifierAttrName()
Get the mention identifier attribute name