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

Editable paragraph in fragment duplicates its content in page editor when it contains a list

Details

    • 4

    Description

      1. Start up a portal
      2. Create a new site
      3. Go to Design --> Fragments, create a new fragment collection
      4. Create a new fragment in the collection, add the following into the pre-created <div> tag in the HTML window:

      <p class="test" data-lfr-editable-id="01-paragraph" data-lfr-editable-type="rich-text">
      	Paragraph
      </p>

      5. Create a new content page
      6. Add the previously created fragment to it
      7. Start editing the "Paragraph" part by double-clicking on it
      8. Add a random text, select it, format it as bulleted list. Add a second item to the list.

      It should look like this:

      • aaaaaaa
      • bbbbbb

      9. Click on Publish (Note: the content is already duplicated while the page is loading)
      10. Start editing the page again

      Expected result: the content of the editable paragraph in the fragment should be shown only once
      Actual result: the list is shown as duplicated

      Notes:

      • This seems to be a problem only in the page editor, since the fragment is rendered correctly when the page is viewed.
      • Could not reproduce the issue with the standard Paragraph fragment.
      • Could not reproduce it either when the editable field's tag in the fragment was a <div> and instead of a <p>.

      Attachments

        Activity

          People

            sandro.chinea Sandro Chinea
            vendel.toreki Vendel Töreki
            Kiyoshi Lee Kiyoshi Lee
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              1 year, 1 week, 2 days ago

              Packages

                Version Package