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

Message Boards (in HTML edit mode) removed target from links

    Details

      Description

      Customer's Issue
      This ticket follows LPP-27889 where our SME has confirmed that this issue may be unintended.

      The customer is using HTML Message Format (instead of the default BBCode) in Message Boards portlet. In DXP, the default editor is listed as editor.wysiwyg.portal-web.docroot.html.portlet.message_boards.edit_message.html.jsp=ckeditor in portal.properties.

      CKEditor's link UI contains a "Target" tab which allows you to specify the link target (i.e. you can choose the target such as a new window in _blank or in a parent window in _parent).

      The problem behavior they are seeing is that no matter what they specify in the target of the hyperlink, it becomes stripped once it's published, both in the final published content, and if we go back to edit the thread in source mode.

      Steps to reproduce the behavior
      1) Start up Liferay DXP
      2) Go to Liferay DXP (Site) > Contents > Message Boards
      3) In the top right corner, click the secondary menu (⁝) > Configuration > Change the Message Format from BBCode to HTML, and Save
      4) Create a new thread, and add a link through the CKEditor/Alloy Editor UI, and specify the Target to _blank (new window)

      • Title: Testing
      • Content (Source):
        <a href="http://www.liferay.com" target="_blank">Liferay</a> 

      5) Publish the thread
      6) Revisit the thread, and click on the link

      Actual Behavior
      The link opens in the same window. Also, upon inspecting (i.e. editing the thread) the source of the published thread, we can see that target is stripped from the link.

      Expected Behavior
      target is preserved in HTML mode.

      Reproduced in:
      master(086d0ea8d75e57a56ef8f6c31a0cd1c853698718)
      70x(4a5b07b75b73f819fa0e7277b26a2c713af384a4)

        Attachments

          Activity

            People

            • Assignee:
              arthur.chen Arthur Chen
              Reporter:
              arthur.chen Arthur Chen
              Participants of an Issue:
              Recent user:
              Enterprise Release HU
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 48 weeks, 2 days ago

                Packages

                Version Package