#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:1 Changed 10 years ago by
comment:3 Changed 10 years ago by
Milestone: | → CKEditor 4.4.8 |
---|
Fixed with PR https://github.com/ckeditor/ckeditor-dev/pull/186