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

WYSIWYG editor entries are improperly rendered in display portlets

    Details

    • Fix Priority:
      4

      Description

      Description:
      https://github.com/liferay/liferay-portal/blob/master/portal-impl/src/portal.properties#L4641
      These properties properly change the WYSIWYG editors to interpret bbcode or creole however in displaying these entries they are often not translated and interpreted incorrectly as HTML.

      Below are two steps to reproduce but more examples can be given for other properties / portlets.

      Announcements:
      Steps to Reproduce:
      1. Set editor.wysiwyg.portal-web.docroot.html.portlet.announcements.edit_entry.jsp=ckeditor_bbcode in portal-ext.properties.
      2. Start Liferay.
      3. Add announcement portlet to the page.
      4. Add announcement, go to source and input *creole*[b]bbcode[/b]<b>HTML</b>
      5. Toggle source, observe bbcode is bold. Publish.

      Expected Results:
      bbcode is bold. HTML is not bold.

      Actual Results:
      bbcode is not bold. HTML is bold.

      Blogs:
      Steps to Reproduce:
      1. Set editor.wysiwyg.portal-web.docroot.html.portlet.blogs.edit_entry.jsp=ckeditor_bbcode in portal-ext.properties.
      2. Start Liferay.
      3. Add a blogs portlet to the page.
      4. Add blog entry, go to source and input *creole*[b]bbcode[/b]<b>HTML</b>
      5. Toggle source, observe bbcode is bold. Publish.

      Expected Results:
      bbcode is bold. HTML is not bold.

      Actual Results:
      bbcode is not bold. HTML is bold.

      DDL
      Steps to Reproduce:
      1. Set editor.wysiwyg.portal-web.docroot.html.portlet.blogs.edit_entry.jsp=ckeditor_bbcode in portal-ext.properties.
      2. Start Liferay.
      3. Menu > Content > DDL > Add new DDL.
      4. Data Definition > Add Data Definition, add HTML box > Publish DDL with Data Definition.
      5. Add DDL entry for newly created DDL.
      6. Go to source and input *creole*[b]bbcode[/b]<b>HTML</b>
      7. Toggle source, observe bbcode is bold. Publish.
      8. 3 dot menu > View DDL entry

      Expected Results:
      bbcode is bold. HTML is not bold.

      Actual Results:
      bbcode is not bold. HTML is bold.

      Web Content
      Steps to Reproduce:
      1. Set editor.wysiwyg.portal-web.docroot.html.portlet.blogs.edit_entry.jsp=ckeditor_bbcode in portal-ext.properties.
      2. Start Liferay.
      3. Menu > Content > Web Content > Add new Web Content.
      4. Go to source and input *creole*[b]bbcode[/b]<b>HTML</b>
      5. Toggle source, observe bbcode is bold. Publish.
      6. 3 dot menu > Preview (or Add Web Content display to page to observe)

      Expected Results:
      bbcode is bold. HTML is not bold.

      Actual Results:
      bbcode is not bold. HTML is bold.

      Additional Notes:
      Messageboards works properly with bbcode by doing one way translation.

      Pasers/Lexers/Translators are no longer in portal-impl/portal-kernel but are moved in the messageboard/wiki modules.

      Master: 3f520f05cb536a653d628a2f3de1211052772c76
      Branch: 86149424acd5672995412d2045f4e5892652bb8f
      6.2.x: 2240b96f42b3a773d913dda960fe363929d30ac0

        Attachments

          Activity

            People

            • Assignee:
              sergio.gonzalez Sergio Gonzalez (Inactive)
              Reporter:
              spencer.woo Spencer Woo
              Participants of an Issue:
              Recent user:
              Michael Saechang
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                2 years, 13 weeks, 5 days ago

                Packages

                Version Package