Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-129751

Fragment's content gets duplicated when using the <p> tag

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Won't Fix
    • Affects Version/s: Master
    • Fix Version/s: None
    • Labels:
    • Fix Priority:
      3

      Description

      Steps to reproduce:

      1. Start the bundle
      2. Create a collection and a fragment in it
      3. Put the below content into the HTML field's divs:

      <p>
      <lfr-editable id="heading" type="rich-text">
      De boodschap van de alert.
      </lfr-editable>
      </p>
      

      4. Create a content page, put the fragment on it
      5. Change the fragment's content to the below (you might need to do it manually without copy-pasting):
      " test

      • aaa
      • bb
      • cc"

      6. Click outside the fragment

      Expected behavior: Fragment's content gets saved

      Current behavior: Fragment's content gets duplicated, and only the first line ("test") can be modified after

      Note:

      • If you remove the <p> tags from the fragment, it works and you won't get duplicated content

      The issue is reproducable via the AlloyEditor toolbar too in case creating

      • a numbered list
      • a bulleted list
      • changing the style
      • changing the line height
      • align left, right, center, justify

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              support-lep@liferay.com SE Support
              Reporter:
              roland.pakai Roland Pákai
              Participants of an Issue:
              Recent user:
              Liferay JIRA Bot
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                6 weeks, 4 days ago

                  Packages

                  Version Package