TinyMCE:API/tinymce.Editor/serializer

From Moxiecode Documentation Wiki

Jump to: navigation, search

Property: serializer

Summary

This property is contains a instance of the tinymce.dom.Serializer class. It enables you serialize DOM nodes into strings based on various init options like valid_elements.

Examples

// Serializes the first paragraph in the editor into a string
tinyMCE.activeEditor.serializer.serialize(tinyMCE.activeEditor.dom.select('p')[0]);
Personal tools