formio.js
formio.js copied to clipboard
[BUG] When selecting 'Heading 1' in content component, In html the heading becomes <h2>
Environment
Please provide as many details as you can:
- Formio.js version: 4.13.5
- Frontend framework: Angular
- Browser: Chrome
- Browser version:
Steps to Reproduce
- Create a form with a content component. Select 'Heading 1' from the dropdown in the rich text editor. Add some arbitrary text.
- Render the form in Angular and open the form in a browser.
- Check the html source code of the page.
- Observe the
around the arbitrary text you entered in step 1.
Expected behavior
When I select 'Heading 1' from the dropdown, the content component gets rendered with a
. So forth for 'Heading 2', 'Heading 3', etc.
Observed behavior
'Heading 1' ->
, 'Heading 2' -> , etc.
See screenshots below
Example
Example
In editor:

Rendered in Angular:

The content component does not seem to work with the latest version (4.15.0-rc.12) of formiojs and react. It shows an empty area. Any recommendations? Does this version work fine with angular?
Closing this thread as it is outdated. Please re-open if it is still relevant. Thank you for your contribution!