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
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
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,
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
Hi Buvana Sathasivam,
Thanks for your support!
DuyVT
Hi
Buvana Sathasivam,
Hope to see the new release soon.
Many thanks,
DuyVT
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
Hi Buvana S,
Thanks for your help
DuyVT,
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.
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,