javascript Programming Glossary: editor.getselection
How to block editing on certain part of content in CKEDITOR textarea? http://stackoverflow.com/questions/11328681/how-to-block-editing-on-certain-part-of-content-in-ckeditor-textarea selectionObject.selectRanges resInitialRange var sel editor.getSelection var firstElement sel.getStartElement var currentPath new CKEDITOR.dom.elementPath.. lastSelectedElement resRange.collapse editor.getSelection .selectRanges resRange resRange.endContainer. .scrollIntoView.. openResDefaultDialog currentEditorName try var sel editor.getSelection var firstElement sel.getStartElement var currentPath new CKEDITOR.dom.elementPath..
Set cursor to specific position in CKEditor http://stackoverflow.com/questions/16835365/set-cursor-to-specific-position-in-ckeditor editor.document.getById 'someId2' .getFirst 1 em b^ar em editor.getSelection .selectRanges range Will select p id someId1 foo em id someId2.. editor.editable true bar.^ p editor.getSelection .selectRanges range Will select p foo bar.^ p Restoring selection.. while making selections . Solution 1 by a range var ranges editor.getSelection .getRanges Make DOM changes. editor.getSelection .selectRanges..
|