hi,
i have ckeditor and "addgap" button.i already added the image in the ckeditor textarea and some text.i want to find the cursor position in the ckeditor textarea and at the cursor position i have to add the image again.but i can,t get this.please help me....
here is my code
<div class="container" style="width:500px">
<div class="control-group" align="left" style="float: left" onselect="selectText()">
<textarea name="editor1" id="myTextarea" style="height: 200px; width: 300px" onclick="storeCaret(this);"
onselect="storeCaret(this);" onkeyup="storeCaret(this);"><p>please fill the<img src="img/gap-placeholder.png"/></p> </textarea>
</div>
<div style="float: left;margin-left: 5px">
<input type="button" id="gap" value="Add Gap" onclick="insertText();">
</div>