tinymce.dom.Schema

Namespace tinymce.dom
Class Schema
Schema validator class.

Example

if (tinymce.activeEditor.schema.isValid('p', 'span'))
   alert('span is valid child of p.');

Public Methods

Method Defined By
isValid(name:String, child_name:String):boolean
Returns true/false if the specified element and optionally it's child is valid or not according to the XHTML transitiona...
Schema

Method details

isValidmethod

public function isValid(name:String, child_name:String):boolean
Returns true/false if the specified element and optionally it's child is valid or not according to the XHTML transitional DTD.

Parameters

name:String Element name to check for.
child_name:String Element child name to check for.

Returns

boolean - true/false if the element is valid or not.