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

Adding a repeatable widget to web content loses CKEditor custom config

    Details

    • Fix Priority:
      3

      Description

      When custom CKEditor definitions are applied to a repeatable page element (exp. HTML field), the definitions are ignored after the first instance of the element.

      Steps to Reproduce

      1. Include the following into the portal-ext.properties

      editor.wysiwyg.default=ckeditor 
      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 
      editor.wysiwyg.portal-web.docroot.html.portlet.mail.edit.jsp=ckeditor 
      editor.wysiwyg.portal-web.docroot.html.portlet.mail.edit_message.jsp=ckeditor 
      editor.wysiwyg.portal-web.docroot.html.portlet.message_boards.edit_message.bb_code.jsp=alloyeditor_bbcode 
      editor.wysiwyg.portal-web.docroot.html.portlet.message_boards.edit_message.html.jsp=ckeditor 
      editor.wysiwyg.portal-web.docroot.html.taglib.ui.discussion.jsp=ckeditor 
      editor.wysiwyg.portal-web.docroot.html.taglib.ui.email_notification_settings.jsp=ckeditor

      2. Create a Web content structure called "Test" with a single HTML field that is repeatable
      3. Create a Web content template called "Test" for the "Test" structure with default FreeMarker template
      4. Deploy a custom CKEditor custom contributor
      5. Create a Web content Item of structure "Test" - Notice that CKEditor options are determined by the deployed jar (for example, only showing Bold, Italic and Underline)
      6. Add a repeatable element - CKEditor shows all default options

      Expected Results:
      The CKEditor settings appear the same on all HTML elements however many are created.

      Actual Results:
      The CKEditor applies correctly to the first HTML element, but subsequently created HTML elements will appear with a larger formatting feature set.

      Reproduced in:
      7.1.x (19d120eac77bd923980ee704d5ddb04210af0dd5)
      Master (601cc2269ffe2bf6a4b063bf37b1a836b06389ba)

        Attachments

          Activity

            People

            • Assignee:
              support-lep@liferay.com SE Support
              Reporter:
              alec.shay Alec Shay
              Participants of an Issue:
              Recent user:
              Rodrigo Paulino
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                35 weeks, 2 days ago

                Packages

                Version Package