ckeditor selectionStart code example
Example: ckeditor selectionStart
<script>
CKEDITOR.instances[ckeditor_id].insertText(val);
// ckeditor will automatically append any text you want with code above by saving selectionStart as instances method
// the val will be inserted at last clicked or active cursor position in ckeditor textarea
</script>