Hello guys,
I have this function to append the value to the editor:
This function was called in the onClick event of this HTML:
Now, the problem is, when I positioned first my cursor to the editor and try to click the %selectionURL text, I would expect that this %selectionURL text would append to the position I set in the editor, BUT it is NOT. It will set to the last paragraph or bottom of the editor.
How will I do that when I click %selectionURL text it will write to the editor where I positioned my cursor. Hope that I am explaining better here.
Thanks,
-neo_phyte
I have this function to append the value to the editor:
function appendToEditorBox(editorID, appendValue) {
var oCKEditor = CKEDITOR.instances[editorID];
oCKEditor.setData(oCKEditor.getData() + appendValue);
}This function was called in the onClick event of this HTML:
<td class="ValueCol" width="50%"><a onclick="appendToEditorBox('dgr_emailParticipant', '%selectionURL');">%selectionURL</a></td>Now, the problem is, when I positioned first my cursor to the editor and try to click the %selectionURL text, I would expect that this %selectionURL text would append to the position I set in the editor, BUT it is NOT. It will set to the last paragraph or bottom of the editor.
How will I do that when I click %selectionURL text it will write to the editor where I positioned my cursor. Hope that I am explaining better here.
Thanks,
-neo_phyte

Re: How to set that it will point to the correct cusor posit
Re: How to set that it will point to the correct cusor posit
function appendToEditorBox(editorID, appendValue) { var oCKEditor = CKEDITOR.instances[editorID]; oCKEditor.insertText(appendValue); }Thanks for the API.
Re: How to set that it will point to the correct cusor posit
Thanks for the API that I had read.