Tried for many hours to figure out how to just position the cursor to top or bottom of editor window. Thought it would be easy, since I've been able to create some simple plugins and other stuff. Anyone done this? (I'd even be open to automatically using the 'find' plugin to find first instance of something, without popping up dialog, but can't get this either.)
Thanks -
Thanks -

Re: Jump To Top/Bottom
viewtopic.php?f=11&t=17335&p=44376&hilit=set+cursor+position#p44376
var pElement = new CKEDITOR.dom.element( 'span' ); //the span element to put the caret in pElement.setAttribute('style','background-color:#ffffff;position:relative;left:0px;');//giving it attributes var oEditor=CKEDITOR.instances.message;//message is the name of my editor oEditor.insertElement(pElement)+oEditor.insertHtml(nmess);//nmess is the content to insert var selection = oEditor.getSelection(); var range = selection.getRanges()[0]; var newRange = new CKEDITOR.dom.range(range.document); newRange.moveToElementEditablePosition(pElement,0); newRange.select();