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

Error Alloyeditor button-paragraph-align.jsx:56 Cannot read properties of undefined (reading 'icon')

    Details

      Description

      Description: If you add 'paragraphAlign' button to Alloy Editor Configurator and you add a paragraph text with an image inside, it will fail to open the menu.

      Steps
      1. Use 7.2.x bundle and on your portal-ext.properties add:

      editor.wysiwyg.default=alloyeditor
      editor.wysiwyg.portal-impl.portlet.ddm.text_html.ftl=alloyeditor

      2. Go to Content & Data -> Web content -> Select + Button -> add new Basic Web Content 

      3. Select source code and add the content inside this file webcontent_sourcecode.txtreplace the icon with one you have

      4. Publish the web content and deploy the editor.configurator-1.0.0.jar or go to AlloyEditorConfigContributor.java#L269 and add button 

      "paragraphAlign" compile and deploy modules/apps/frontend-editor/frontend-editor-alloyeditor-web

      5. Open again the web content created at step 2 and try to select a part of text 'This is not going to work' and you will see the error

      Actual: Fails to open the menu, and you need to refresh page to continue working with the editor

      Expected: Editor menu it should not fail when you select a text next to an image

      Note: I used git hash d70471addc1516fba7cc4c58b999ee7d0dc02e95

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              georgel.pop Georgel Vasile Pop
              Reporter:
              georgel.pop Georgel Vasile Pop
              Participants of an Issue:
              Recent user:
              Sophia Zhang
              Engineering Assignee:
              Georgel Vasile Pop
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                11 weeks, 3 days ago

                  Packages

                  Version Package
                  7.2.X
                  7.3.X
                  7.4.13 DXP GA1
                  Master