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

CKEditor - Web Content HTML field looses its value when switching Source mode

    Details

      Description

      Reproduced on: 7.2.x

      052d765b0619e83dcb4e74b13b5b692707ade081

      Reproduced on: master

      1f38c8e7050863bf094b2f59ab1f87db1ab66ab9

      Reproduction Steps

      1. Setup Liferay DXP and make sure to set the following properties (not needed for master):
        editor.wysiwyg.portal-impl.portlet.ddm.text_html.ftl=ckeditor editor.wysiwyg.portal-web.docroot.html.portlet.announcements.edit_entry.jsp=ckeditor editor.wysiwyg.portal-web.docroot.html.portlet.blogs.edit_entry.jsp=ckeditor
      1. Create a web content structure TestStructure with 2 HTML fields
      2. Create a web content template with this structure connected to the template
      3. Create a web content useing TestStructure
      4. Put the value for the first HTML field to "field 1"
      5. Put the value for the second HTML field to "field 2"
      6. Enable Source mode for the first HTML field
      7. Copy the content from the first HTML field
      8. Enable Source mode for the second HTML field
      9. Paste the copied content from the first HTML field to the second HTML field
      10. Switch Source mode back normal for the second HTML field
      11. Update the value for the first HTML field to "new content for field 1"
      12. Switch Source mode back normal for the first HTML field

      Expected Behavior
      The new value is shown.

      Actual Behavior
      Observe that the value for the first HTML field is equal to the content from the second HTML field and the new value is not saved.

        Attachments

          Activity

            People

            Assignee:
            summer.zhang Summer Zhang
            Reporter:
            norbert.nemeth Norbert Németh
            Participants of an Issue:
            Recent user:
            Sergio Alonso
            Engineering Assignee:
            Norbert Németh
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              41 weeks ago

                Packages

                Version Package
                7.2.10 DXP FP15
                7.2.X
                7.3.10.3 DXP SP3
                7.3.X
                7.4.13 DXP GA1
                7.4.3.4 CE GA4
                Master