Class CKEDITOR.htmlWriter
Defined in: plugins/htmlwriter/plugin.js.
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>"