Hello, I've used a TextArea and a button. I wanted some text to appear inside the TextArea right on text cursor position when I clicked the button. It worked fine.
Then I added CKEdtor and now I am not able to add text on current cursor position. So far, the best I have is adding text at the end of text inside the editor.
Any help? I am using CKEditor.Reactive.Thanks in advance!Best regards,Paulo
I was able to sort out the situation by using an action that triggers when I click the button and then runs JS adding text passed as parameter:
CKEDITOR.instances['TextArea_Body'].insertText($parameters.Tag);
Here are a few links that you may find useful:
Insert text at the cursor position to a CKEditor using jQuery
Inserting a text where cursor is using Javascript/jquery