indvd00m@0: indvd00m@0: indvd00m@0: indvd00m@0:
indvd00m@0:
indvd00m@0: This sample shows how to configure CKEditor instances to use the
indvd00m@0: textselection (textselection) plugin that makes the editor keep it's text-selection when switching between WYSIWYG and Source mode, and scrolls the selection into the viewport.
indvd00m@0: To add a CKEditor instance using the textselection plugin, insert the following JavaScript call to your code:
indvd00m@0:
indvd00m@0: CKEDITOR.replace( 'textarea_id', {
indvd00m@0: extraPlugins: 'textselection',
indvd00m@0: });
indvd00m@0:
indvd00m@0: Note that textarea_id in the code above is the id attribute of
indvd00m@0: the <textarea> element to be replaced with CKEditor.