railo-context.Componentcontentbox.model.ui.editors.EditorService
ContentBox - A Modular Content Platform Copyright 2012 by Luis Majano and Ortus Solutions, Corp www.ortussolutions.com Apache License, Version 2.0 Copyright Since [2012] [Luis Majano and Ortus Solutions,Corp] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. 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 railo-context.Component |
---|
None |
Constructor Detail |
---|
Constructor
wirebox
Property Detail |
---|
required
- falseserializable
- truerequired
- falseserializable
- truerequired
- falseinject
- 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