Code Index | File Index

Namespaces

Classes


Class CKEDITOR.htmlWriter


Defined in: plugins/htmlwriter/plugin.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Class used to write HTML data.
Class Detail
CKEDITOR.htmlWriter()
Since: 3.0
Class used to write HTML data.
var writer = new CKEDITOR.htmlWriter();
writer.openTag( 'p' );
writer.attribute( 'class', 'MyClass' );
writer.openTagClose( 'p' );
writer.text( 'Hello' );
writer.closeTag( 'p' );
alert( writer.getHtml() );  "<p class="MyClass">Hello</p>"

Copyright © 2003-2010, CKSource - Frederico Knabben. All rights reserved.