Uploaded image for project: 'Ibexa IBX'
  1. Ibexa IBX
  2. IBX-4724

Unable to open UDW editor if block has multiple richtext fields

    XMLWordPrintable

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Medium Medium
    • 4.3.x-dev
    • 4.3.0
    • None
    • None

    Description

      In page builder you can define fields for a block. In 4.3 it seems that adding more than one richtext field to a block makes the Universal Discovery Widget not open. This is for toolbar items like Embed, image, etc.

      See attached video for demonstration.. Clicking on the buttons opening UDW result in the following error

      ibexa-richtext-onlineeditor-js.js:2 Uncaught TypeError: Cannot read properties of null (reading 'content')
          at i.value (ibexa-richtext-onlineeditor-js.js:2:282366)
          at i.fire (ibexa-richtext-onlineeditor-js.js:2:96439)
          at n.<anonymous> (ibexa-richtext-onlineeditor-js.js:2:273802)
          at t.o (ibexa-richtext-onlineeditor-js.js:2:156121)
          at t.fire (ibexa-richtext-onlineeditor-js.js:2:96439)
          at HTMLButtonElement.n (ibexa-richtext-onlineeditor-js.js:2:161931) 

      Steps to reproduce:

      1. Install Ibexa DXP 4.3.0 experience
      2. Configure new block with two rich text fields (Helse example from Solution Architects code and configuration below + attached)
      3. Create new landing page
      4. Add block with two
      5. Click on embed widget
      6. Observe error

       

      Block configuration used: 

      teaser_text_left_right_image_bottom:
          views:
              teaser:
                  template: '@ibexadesign/blocks/matrix/two_line/teaser_text_left_right_image_bottom.html.twig'
                  name: 'Text Side by Side + Image'
          name: 'Side by Side Text & Image'
          category: Prototype
          thumbnail: '/bundles/ibexaprototypepage/images/blocks/matrix.svg#matrix-two-bot'
          attributes:
              text_left:
                  name: 'Text left'
                  type: richtext
              text_right:
                  name: 'Text right'
                  type: richtext
              image:
                  name: 'Image'
                  type: embed
              subtitle:
                  name: 'Subtitle'
                  type: string
              label:
                  name: 'Button label'
                  type: string
              link:
                  name: 'Button link'
                  type: string

      Designs

        Attachments

          1. TeaserTextLeftRightImage.php
            3 kB
            Jani Tarvainen
          2. IBX-4724-capture.mov
            5.34 MB
            Jani Tarvainen

          Activity

            People

              Unassigned Unassigned
              jani.tarvainen@ibexa.co Jani Tarvainen
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: