wontlost-ltd / vaadin-litelement-ckeditor

Vaadin14+LitElement+CKEditor5
Other
17 stars 13 forks source link

Question on how to possibly set caret position or alternative options #52

Open FollowSteph opened 1 year ago

FollowSteph commented 1 year ago

I think I asked this before but I cannot find any discussion in my notes, etc. therefore my apologies if I did. In short I've got a letterhead that I put in a table so that I can align a company logo with an address (only way I could find to do it nice and cleanly) the problem is that because it starts at the first position the table is highlighted which makes it look odd when generating a report. With that in mind is there any way to set a caret position, etc. so that it instead of the table being highlighted it would be anything else. Ideally selecting the caret position would be great since this could push it to the start of the report rather than letterhead but any suggestions would be appreciated.

image

FollowSteph commented 1 year ago

In case you're considering it or that it's even possible perhaps this could help: https://stackoverflow.com/questions/16835365/set-cursor-to-specific-position-in-ckeditor