Unable to get inserted HTML through execcommand in editor.getHtml() #3809
Unanswered
mihir-khandekar
asked this question in
Q&A
Replies: 1 comment 3 replies
-
Try to sync the content of the selected component |
Beta Was this translation helpful? Give feedback.
3 replies
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
-
Hello,
I am trying to add an HTML element at the current cursor position, following the instructions mentioned here I am able to insert the HTML.
editor.Canvas.getBody().ownerDocument.execCommand( 'insertHTML', false,
' +variable +
'
);
However when I use the editor API to get the HTML using
editor.getHtml()
, the inserted HTML is not is not part of the returned HTML string.Please help.
Beta Was this translation helpful? Give feedback.
All reactions