TinyMCE:API/tinymce.dom.Serializer

From Moxiecode Documentation Wiki

Jump to: navigation, search

Contents

Class: tinymce.dom.Serializer

This class is used to serialize DOM trees into a string. Consult the TinyMCE Wiki API for more details and examples on how to use this class.

Constructor

Serializer
Constucts a new DOM serializer class.

Events

onPreProcess
Gets dispatched before the contents of a HTML fragment is serialized.
onPostProcess
Gets dispatched after the contents of a HTML fragment has been serialized.

Methods

addRules
Adds valid elements rules to the serializer this enables you to specify things like what elements should be outputted and what attributes specific elements might have.
addValidChildRules
Adds valid child rules.
findAttribRule
Finds an attribute rule object by name.
findRule
Finds a rule object by name.
serialize
Serializes the specified node into a HTML string.
setEntities
Sets a list of entities to use for the named entity encoded.
setRules
Sets the valid elements rules of the serializer this enables you to specify things like what elements should be outputted and what attributes specific elements might have.
setValidChildRules
Sets the valid child rules.
Personal tools