CKEditor Extension: How do I get the pointer's location?

Answered
0
0

Hello people. I’m using Wisej’s CKEditor extension to embed a text editor into my Wisej 3.1.5 web app, in which I want to insert strings directly into the text in different parts. The idea is to create an editor that allows our users to write contracts where they can insert different variables like client’s name, address, contract costs, etcetera, for which I would need to know where the pointer is located at any given time.

I imagine there’s some javascript magic I could to to achieve this, but since is all wrapped in Wisej’s API I don’t really know how to. Thank you all in advance

  • You must to post comments
Best Answer
1
0

Hi Pablo,

if you want to insert some text at the current caret location in a CKEditor you can use code like this:

this.ckEditor1.Eval("this.editor.insertHtml('<i>Hi</i>')");

Best regards
Frank

  • Pablo Clavijo
    Worked like a charm, thank you
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.