Skip to main content

Add a text range selection event for Text Review plugins

  • January 30, 2023
  • 0 replies
  • 314 views

tank666

Text review plugins can only return suggestions while entering text edit mode and on the PropertyChange event type.

But what if we add a text range selection event and return suggestions for that range? This would make plugins even more powerful.

For example:

  • If the user enters text edit mode and all text is selected (0, text.length) or nothing is selected (start === end), the plugin will return suggestions for the entire length of the text.

  • If the user is already in text edit mode and selects a range of text, return suggestions for that range only. That is, every time the user selects a range of text, the event fires specifically for that range.

0 replies

Be the first to reply!

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings