| Namespace | tinymce.dom |
| Class | Serializer |
| Method | Defined By |
|---|---|
|
Constucts a new DOM serializer class.
|
Serializer |
|
addAttributeFilter(callback:function):void
Adds a attribute filter function to the parser used by the serializer, the parser will collect nodes that has the specif...
|
Serializer |
|
addNodeFilter(callback:function):void
Adds a node filter function to the parser used by the serializer, the parser will collect the specified nodes by name an...
|
Serializer |
|
addRules(rules:String):void
Adds valid elements rules to the serializers schema instance this enables you to specify things like what elements shoul...
|
Serializer |
|
serialize(node:DOMNode, args:Object):void
Serializes the specified browser DOM node into a HTML string.
|
Serializer |
|
setRules(rules:String):void
Sets the valid elements rules to the serializers schema instance this enables you to specify things like what elements s...
|
Serializer |
| Event | Defined By |
|---|---|
|
onPostProcess(sender:Editor, obj:Object)
Fires when the Serializer does a postProcess on the contents.
|
Serializer |
|
onPreProcess(sender:Serializer, args:Object)
This event gets executed before a HTML fragment gets serialized into a HTML string.
|
Serializer |
|
onPreProcess(sender:Serializer, args:Object)
This event gets executed after a HTML fragment has been serialized into a HTML string.
|
Serializer |
|
onPreProcess(sender:Editor, obj:Object)
Fires when the Serializer does a preProcess on the contents.
|
Serializer |
public
function Serializer(settings:Object, dom:DOMUtils, schema:Schema)
| settings:Object | Serializer settings object. |
| dom:DOMUtils | DOMUtils instance reference. |
| schema:Schema | Optional schema reference. |
public
function addAttributeFilter(callback:function):void
| callback:function | Callback function to execute once it has collected nodes. |
public
function addNodeFilter(callback:function):void
| callback:function | Callback function to execute once it has collected nodes. |
public
function addRules(rules:String):void
| rules:String | Valid elements rules string to add to schema. |
public
function serialize(node:DOMNode, args:Object):void
| node:DOMNode | DOM node to serialize. |
| args:Object | Arguments option that gets passed to event handlers. |
public
function setRules(rules:String):void
| rules:String | Valid elements rules string. |
public
event onPostProcess(sender:Editor, obj:Object)
| sender:Editor | Editor instance. |
| obj:Object | PreProcess object. |
public
event onPreProcess(sender:Serializer, args:Object)
| sender:Serializer | object/Serializer instance that is serializing an element. |
| args:Object | Object containing things like the current node. |
public
event onPreProcess(sender:Serializer, args:Object)
| sender:Serializer | object/Serializer instance that is serializing an element. |
| args:Object | Object containing things like the current contents. |