Embed input checkbox by insertHTML

Hi all,

I try to insert an Input Checkbox by insertHTML but it does not work. It throws this error "The given range isn't in document". Please check this video https://www.loom.com/share/2f93b7480b94432aa234fa91d2ed3541

I see a similar question at https://www.syncfusion.com/forums/152859/embed-youtube-videos. But it seems does not work in the latest JavaScript package "19.4.0.38 (Volume 4 2021 - December 17, 2021)"


Thanks and best regards,

DuyVT


11 Replies

IS Indrajith Srinivasan Syncfusion Team March 7, 2022 06:59 PM UTC

Hi Duy,


Greetings from Syncfusion support,


We have validated your reported query “Input Checkbox by insertHTML but it does not work.”, since the added HTML element is an empty element it is removed in the insertHTML executeCommand.


Can you please share your use-case to insert the input element dynamically inside the Rich Text Editor ?

Regards,

Indrajith



DV duy vo March 9, 2022 03:23 PM UTC

Hi  Indrajith Srinivasan,


Thanks for your support. 

since the added HTML element is an empty element it is removed in the insertHTML executeCommand

=> Is Input Checkbox an empty element? and we cannot insert it into the RTE by insertHTML?


Can you please share your use-case to insert the input element dynamically inside the Rich Text Editor ?

=> I just tried again. Please check the video.

https://www.loom.com/share/195073aeb9f14a61adf9f68fcb7fbe18


Thank and best regards,

DuyVT,



BS Buvana Sathasivam Syncfusion Team March 11, 2022 06:28 AM UTC

 
We have considered the issue "An input element is not able to be inserted into Rich Text Editor content via executeCommand" as a bug on our end, and the fix for the issue will be included with our upcoming Vol 1, 2022 release, which is expected to be rolled out at the end of March. 
 
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:  

Regards, 
Buvana S 



BS Buvana Sathasivam Syncfusion Team March 11, 2022 09:05 AM UTC

Hi Duy,


Currently, we are validating your reported query with high priority. We will update you with further details on or before March 11, 2022.


Regards,

Buvana S



DV duy vo March 11, 2022 01:29 PM UTC

Hi  Buvana Sathasivam,


Thanks for your support!

DuyVT



BS Buvana Sathasivam Syncfusion Team March 14, 2022 08:36 AM UTC

Hi Duy, 

As mentioned earlier, we will include the fix in Vol 1, 2022 main release, which is expected to be rolled out at the end of March 2022. We appreciate your patience until then. 

Regards, 
Buvana S 



DV duy vo March 17, 2022 11:50 AM UTC

Hi  Buvana Sathasivam,

Hope to see the new release soon.

Many thanks,

DuyVT



BS Buvana Sathasivam Syncfusion Team April 7, 2022 05:16 AM UTC

Hi Duy,


Due to its complexity, we couldn't include the fix for the issue "An input element is not able to be inserted into Rich Text Editor content via executeCommand”. We will include the fix with our upcoming weekly patch release on April 12, 2022.


Regards,

Buvana S



DV duy vo April 7, 2022 08:13 AM UTC

Hi Buvana S,


Thanks for your help

DuyVT,



BS Buvana Sathasivam Syncfusion Team April 8, 2022 11:01 AM UTC

As mentioned earlier, we will include the fix with our upcoming patch release on April 12, 2022. We'll let you know when the problem has been resolved.



VJ Vinitha Jeyakumar Syncfusion Team April 13, 2022 09:50 AM UTC

Hi Duy,



We have included the fix for the issue "An input element is not able to be inserted into Rich Text Editor content via executeCommand" with our patch release version 20.1.48. so, please upgrade your package to the latest to resolve the issue from your end.


Release Notes: https://ej2.syncfusion.com/documentation/release-notes/20.1.48/?type=all#richtexteditor



Regards,

Vinitha

Loader.
Up arrow icon