Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting cursor position in ckeditor4-angular #63

Closed
Chinna2405 opened this issue Nov 7, 2019 · 4 comments
Closed

Getting cursor position in ckeditor4-angular #63

Chinna2405 opened this issue Nov 7, 2019 · 4 comments

Comments

@Chinna2405
Copy link

Are you reporting a feature request or a bug?

Provide detailed reproduction steps (if any)

  1. I tried to get the cursor Position my editor but i couldn't do that?
  2. Get error when using getSelection() methos

Expected result

What is the expected result of the above steps?

Actual result

What is the actual result of the above steps?

Other details

  • Browser: …
  • OS: …
  • Integration version: …
  • CKEditor version: …
  • Installed CKEditor plugins: …
@Dumluregn
Copy link
Collaborator

Hi,
from the information you provided it's hard to understand your problem. Please give us more details and preferably a sample where we could reproduce the issue (for reference see #54).

@Chinna2405
Copy link
Author

Okay. I will explain below about my issue.

In my issue, I am trying to add some elements from the list outside the editor by clicking it.
But when I typed my whole content in the editor and I chose a place where to insert the element which i am going to click is getting added in the next of whole content but i need to get that element in my cursor position where i have clicked the cursor.

I have tried but couldn't able to get the cursor position.

Please help me to fix the issue.

Thanks in Advance.

@Dumluregn
Copy link
Collaborator

Thanks for giving more context, I'm starting to understand your issue, but still need something more, like at least screen or CodePen example. Also I wonder if this is anyhow connected to Angular? Because it seems irrelevant 🤔

@Chinna2405
Copy link
Author

I have found a way to insert the selected text in the editor.

this.editor.instance.insertText('selected text');

Thanks for spending your valuable time in this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants