Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#13268 closed Bug (fixed)

Documentation for CKEDITOR.dom.text is incorrect

Reported by: Ben Kiefer Owned by:
Priority: Normal Milestone: CKEditor 4.4.8
Component: Documentation & Samples Version: 4.4.8
Keywords: Cc:

Description

 *		var nativeNode = document.createTextNode( 'Example' );
 *		var text = CKEDITOR.dom.text( nativeNode );
 *
 *		var text = CKEDITOR.dom.text( 'Example' );

should be

 *		var nativeNode = document.createTextNode( 'Example' );
 *		var text = new CKEDITOR.dom.text( nativeNode );
 *
 *		var text = new CKEDITOR.dom.text( 'Example' );

Or you will get an error when replacing an element with that text.

Change History (3)

comment:2 Changed 10 years ago by Piotrek Koszuliński

Resolution: fixed
Status: newclosed

Thanks! Merged.

comment:3 Changed 10 years ago by Piotrek Koszuliński

Milestone: CKEditor 4.4.8
Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy