0 results found

tinymce.html.Writer

Contribute to this page
Namespacetinymce.html
ClassWriter

This class is used to write HTML tags out it can be used with the Serializer or the SaxParser.Version:3.4

Example

Public Methods

MethodDefined 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

Method details

Writer

public function Writer(settings:Object)
Constructs a new Writer instance.

Parameters

ParamDetail
settings:ObjectName/value settings object.

cdata

public function cdata(text:String):void
Writes a cdata node such as .

Parameters

ParamDetail
text:StringString to write out inside the cdata.

cdata

public function cdata(text:String):void
Writes a comment node such as .

Parameters

ParamDetail
text:StringString to write out inside the comment.

doctype

public function doctype(text:String):void
Writes a doctype node such as .

Parameters

ParamDetail
text:StringString to write out inside the doctype.

end

public function end(name:String):void
Writes the a end element such as.

Parameters

ParamDetail
name:StringName of the element.

getContent

public function getContent():String
Returns the contents that got serialized.

Returns
String - HTML contents that got written down.

pi

public function pi(name:String, text:String):void
Writes a PI node such as .

Parameters

ParamDetail
name:StringName of the pi.
text:StringString to write out inside the pi.

reset

public function reset():void
Resets the internal buffer if one wants to reuse the writer.

start

public function start(name:String, attrs:Array, empty:Boolean):void
Writes the a start element such as

.

Parameters

ParamDetail
name:StringName of the element.
attrs:ArrayOptional attribute array or undefined if it hasn't any.
empty:BooleanOptional empty state if the tag should end like
.

text

public function text(text:String, raw:Boolean):void
Writes a text node.

Parameters

ParamDetail
text:StringString to write out.
raw:BooleanOptional raw state if true the contents wont get encoded.

Except as otherwise noted, the content of this page is licensed under the Creative Commons BY-NC-SA 3.0 License, and code samples are licensed under the Apache 2.0 License.