| Namespace | tinymce.html |
| Class | Schema |
| Method | Defined By |
|---|---|
|
Schema(settings:Object)
Constructs a new Schema instance.
|
Schema |
|
addCustomElements(custom_elements:String):void
Adds custom non HTML elements to the schema.
|
Schema |
|
addValidChildren(valid_children:String):void
Parses a valid children string and adds them to the schema structure.
|
Schema |
|
addValidElements(valid_elements:String):void
Parses a valid elements string and adds it to the schema.
|
Schema |
|
getBoolAttrs():Object
Returns a map with boolean attributes.
|
Schema |
|
getBoolAttrs():Object
Returns a map with block elements.
|
Schema |
|
getElementRule(name:String):Object
Returns true/false if the specified element is valid or not according to the schema.
|
Schema |
|
getEmptyElements():Object
Returns a map with empty elements.
|
Schema |
|
getWhiteSpaceElements():Object
Returns a map with elements where white space is to be preserved like PRE or SCRIPT.
|
Schema |
|
isValidChild(name:String, child:String):Boolean
Returns true/false if the specified element and it's child is valid or not according to the schema.
|
Schema |
|
setValidElements(valid_elements:String):void
Parses a valid elements string and sets it to the schema.
|
Schema |
public
function Schema(settings:Object)
| settings:Object | Name/value settings object. |
public
function addCustomElements(custom_elements:String):void
| custom_elements:String | Comma separated list of custom elements to add. |
public
function addValidChildren(valid_children:String):void
| valid_children:String | Valid children elements string to parse |
public
function addValidElements(valid_elements:String):void
| valid_elements:String | String in the valid elements format to be parsed. |
public
function getBoolAttrs():Object
public
function getBoolAttrs():Object
public
function getElementRule(name:String):Object
| name:String | Element name to check for. |
public
function getEmptyElements():Object
public
function getWhiteSpaceElements():Object
public
function isValidChild(name:String, child:String):Boolean
| name:String | Element name to check for. |
| child:String | Element child to verify. |
public
function setValidElements(valid_elements:String):void
| valid_elements:String | String in the valid elements format to be parsed. |