RTE ExecuteCommand in Safari does not respect the current line position

Hi

I have this code for insert html text in  RTE. In all browsers it works fine, except in Safari because it inserts the text at the beginning of the RTE area.

This functionallity does not apply for Safari?


 private async Task SelectedPopupItemsHandler(MenuEventArgs<MenuItem> e)
    {
        //await RteObj.SaveSelection();
        await Task.Delay(500); 
        if (e.Item.Text == "D4")
        {
            await RteObj.ExecuteCommand(CommandName.InsertHTML, "<span style='color: brown;background-color: white'>" + WebApp.Tools.Tools.GetDate()  + "</span>");
        }

        //await RteObj.RestoreSelection();
    }


2 Replies 1 reply marked as answer

RK Revanth Krishnan Syncfusion Team December 16, 2020 11:57 AM UTC

Hi Jose, 
 
 
Greetings from Syncfusion support. 
 
 
We have validated your query “Rich Text Editor `ExecuteCommand` in Safari does not insert with respect to the current line position while using the SaveSelection and RestoreSelection methods”. 
 
 
We are able to reproduce the issue from our end and have considered “`SaveSelection` and `RestoreSelection` method not working properly” as a bug from and logged the report for the same, the fix will be included with our patch release on the 5th of January. 
 
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/20666 
 
Regards, 
Revanth 



RK Revanth Krishnan Syncfusion Team January 31, 2021 02:29 PM UTC

Hi Jose, 
 
 
Thanks for the patience.  
  
We have resolved the reported issue “`SaveSelection` and `RestoreSelection` method not working properly” with the package version 18.4.39 
  
Can you please upgrade your package to this version to resolve the issue in your end?   
   
Regards,   
Revanth  


Marked as answer
Loader.
Up arrow icon