Uploaded image for project: 'Magnolia UI'
  1. Magnolia UI
  2. MGNLUI-7634

Richtext breaks HTML tags when editing a component

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Neutral Neutral
    • None
    • 6.2.26
    • None

      Steps to reproduce

      1. Go to demo
      2. Open Resources app and edit the config-magnolia.js file
      3. Set to true the Sources plugin and save the file
      4. Within the very same Resources app, go to /mtk2/dialogs/components and edit the textImage.yaml file
      5. Within the text field, just under the info.magnolia.dam.app.field.DamRichTextFieldDefinition property, include the line:
        configJsFile: /.resources/ckeditor/config-magnolia.js
      6. Save the dialog
      7. Go to pages app and create a new page (Basic template)
      8. Open it and within the main area, create a Text And Image component
      9. At the text field, clic on the Source plugin and type <h2>H2 test</h2>
      10. Save dialog and check that on the main area the H2 test is shown and is noticeable that is a header (bold)
      11. Go to JCR app, open the page created before and check that the Text And Image component has on its text attribute the code "<h2>H2 test</h2>"
      12. Now go back to Pages app, open the page created before and edit the Text And Image component
      13. Within the text field, clic on the Source plugin and check it switched from <h2> tags to <p> tags
      14. Now if you save the component, the <h2> tags have been switched to <p> tags and the text contained within the text field is not a header anymore

        Acceptance criteria

              thien.quach Quach Hao Thien
              ccantalapiedra Carlos Cantalapiedra
              Nucleus
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved:
                Work Started:

                  Bug DoR
                  Task DoD

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - Not Specified
                    Not Specified
                    Logged:
                    Time Spent - 6.5h
                    6.5h