| Namespace | tinymce.html |
| Class | Writer |
| Method | Defined By |
|---|---|
|
Writer(settings:Object)
Constructs a new Writer instance.
|
Writer |
|
cdata(text:String):void
Writes a cdata node such as .
|
Writer |
|
cdata(text:String):void
Writes a comment node such as .
|
Writer |
|
doctype(text:String):void
Writes a doctype node such as .
|
Writer |
|
end(name:String):void
Writes the a end element such as .
|
Writer |
|
getContent():String
Returns the contents that got serialized.
|
Writer |
|
pi(name:String, text:String):void
Writes a PI node such as .
|
Writer |
|
reset():void
Resets the internal buffer if one wants to reuse the writer.
|
Writer |
|
start(name:String, attrs:Array, empty:Boolean):void
Writes the a start element such as .
|
Writer |
|
text(text:String, raw:Boolean):void
Writes a text node.
|
Writer |
public
function Writer(settings:Object)
| settings:Object | Name/value settings object. |
public
function cdata(text:String):void
| text:String | String to write out inside the cdata. |
public
function cdata(text:String):void
| text:String | String to write out inside the comment. |
public
function doctype(text:String):void
| text:String | String to write out inside the doctype. |
public
function end(name:String):void
| name:String | Name of the element. |
public
function getContent():String
public
function pi(name:String, text:String):void
| name:String | Name of the pi. |
| text:String | String to write out inside the pi. |
public
function reset():void
public
function start(name:String, attrs:Array, empty:Boolean):void
.
| name:String | Name of the element. |
| attrs:Array | Optional attribute array or undefined if it hasn't any. |
| empty:Boolean | Optional empty state if the tag should end like <br />. |
public
function text(text:String, raw:Boolean):void
| text:String | String to write out. |
| raw:Boolean | Optional raw state if true the contents wont get encoded. |