rte.exec results do not reflect in finalHtml #4153
Unanswered
mihir-khandekar
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Use the Component API instead of the RTE to update the selected component. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am trying to insert ordered list into the current selected component using the following code.
Although, this does work and the list gets created, when is extract the HTML using
editor.getHtml()
, the list is missing and instead I get a regular<p>
tag in its place.Even tried adding this
editor.getSelected().trigger('sync:content');
after therte.exec()
command but to no avail.Also, is this also a valid option?
Please help.
@artf your guidance will be very helpful.
Beta Was this translation helpful? Give feedback.
All reactions