lucee.Componentcontentbox.models.ui.editors.EditorService
ContentBox - A Modular Content Platform Copyright since 2012 by Ortus Solutions, Corp www.ortussolutions.com/products/contentbox --- Manages editor services
Property Summary | ||||
---|---|---|---|---|
type | property | default | serializable | required |
struct
|
editors
|
true
|
false
|
|
struct
|
markups
|
true
|
false
|
|
any
|
settingService
|
true
|
false
|
Constructor Summary | |
---|---|
init(any wirebox)
Constructor. |
Method Summary | |
---|---|
string
|
getDefaultEditor()
Get the default system editor. |
string
|
getDefaultMarkup()
Get the default system markup. |
IEditor
|
getEditor(any name)
Get a registered editor instance. |
string
|
getEditors()
|
string
|
getMarkups()
|
array
|
getRegisteredEditors()
Get an array of registered editor names in alphabetical order. |
array
|
getRegisteredEditorsMap()
Get an array of registered editor names in alphabetical order with their display names. |
array
|
getRegisteredMarkups()
Get an array of registered markup names in alphabetical order. |
string
|
getSettingService()
|
boolean
|
hasEditor(any name)
Check if an editor exists or not. |
boolean
|
hasMarkup(any markup)
Check if an markup exists or not. |
EditorService
|
registerEditor(IEditor editor)
Register a new editor in ContentBox. |
EditorService
|
registerMarkup(any markup)
Register a new markup in ContentBox. |
any
|
setEditors(struct editors)
|
any
|
setMarkups(struct markups)
|
any
|
setSettingService(any settingService)
|
EditorService
|
unRegisterEditor(any name)
UnRegister an editor in ContentBox. |
EditorService
|
unRegisterMarkup(any markup)
UnRegister a markup in ContentBox. |
Methods inherited from class lucee.Component |
---|
None |
Constructor Detail |
---|
Constructor
wirebox
Property Detail |
---|
access
- publicrequired
- falsereturntype
- anyserializable
- trueaccess
- publicrequired
- falsereturntype
- anyserializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- settingService@cbserializable
- trueMethod Detail |
---|
Get the default system editor
Get the default system markup
Get a registered editor instance
name
- The name of the editorGet an array of registered editor names in alphabetical order
Get an array of registered editor names in alphabetical order with their display names
Get an array of registered markup names in alphabetical order
Check if an editor exists or not
name
- The name of the editorCheck if an markup exists or not
markup
- The name of the markupRegister a new editor in ContentBox
editor
- The editor instance to registerRegister a new markup in ContentBox
markup
- The markup name to registereditors
markups
settingService
UnRegister an editor in ContentBox
name
- The name of the editor to unregisterUnRegister a markup in ContentBox
markup
- The markup name to unregister