We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Availability of API to get selected text

Thread ID:

Created:

Updated:

Platform:

Replies:

149481 Nov 27,2019 11:11 AM UTC Jan 31,2020 11:06 AM UTC Blazor 2
loading
Tags: Rich Text Editor
Loic Chotin
Asked On November 27, 2019 11:11 AM UTC

In the Blazor RichTextEditor control, I need to get the contents, both formatted and plain-text, of the current selection. The Blazor RTE doesn't have this API, but I can see that the API does exist in the plain JS RTE. So the question would be - do you plan to expose this API in the Blazor RTE? Also, I assume that the Blazor RTE is just wrapping the JS one. If that's the case, could you advise on steps to manually invoke this API from outside the wrapper? Thank you!


Pandiyaraj Muniyandi [Syncfusion]
Replied On November 28, 2019 05:48 PM UTC

Hi Loic, 
 
Greetings from Syncfusion support. 
  
In your query shared our documentation link is explain the EJ1 RichTextEditor control functionality. But in Blazor, we used EJ2 pure javascript source to render the RTE component. We have GetSelection() public method in RichTextEditor component to get the plain text from the current selection range in the editor. 
  
  
Currently, we doesn’t have methods to get the formatted text from the selection range. We will consider Provide option to get the formatted text from the current selection in RichTextEditoras improvement from our end.  This changes  will be included in our 2019 Volume 4 SP1 which is tentatively planned to roll-out around end of January 2020. 
  
You can now track the current status of the report, review the proposed resolution timeline, and contact us for any further inquiries through this link: https://www.syncfusion.com/feedback/10484/ 
 
Regards, 
Pandiyaraj 


Indrajith Srinivasan [Syncfusion]
Replied On January 31, 2020 11:06 AM UTC

Hi Loic, 
 
We are glad to announce that our Essential Studio Volume 4, 2019 service pack release (v17.4.0.46) is rolled out and is available for download under the following link. And the support for Provide option to get the formatted text from the current selection in RichTextEditoris included. You can now get the selected HTML using the method GetSelectedHtml.

API link:
https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.RichTextEditor.SfRichTextEditor.html#Syncfusion_Blazor_RichTextEditor_SfRichTextEditor_GetSelectedHtml 
 
 
We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance. 
 
Regards, 
Indrajith 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon