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

[Page builder] custom rich text block with validation produces Uncaught TypeError

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Low Low
    • None
    • 4.6.2, 5.0.x-dev
    • None
    • Ibexa DXP 4.6.x-dev / 5.0.x-dev commerce

    Description

      Prerequisites:
      Prepare custom rich text block https://doc.ibexa.co/en/4.6/content_management/rich_text/create_custom_richtext_block/ with custom yaml

      ibexa_fieldtype_page:
        blocks:
          my_block:
            name: My Richtext Block
            thumbnail: assets/images/blocks/richtext_block_icon.svg
            configuration_template: '@ibexadesign/blocks/my_block/config.html.twig'
            views:
              default:
                template: '@ibexadesign/blocks/my_block/default.html.twig'
                name: My block view
                priority: -255
            attributes:
              content:
                name: Content
                type: richtext
                validators:
                  not_blank_richtext:
                    message: Cant be empty!
      
      

       

      Add admin & storefront themes config (aaccording to eventual errors in PB). This may be tricky to reproduce, do not hesitate to contact me

       

      Steps to reproduce:

      1. Go to page builder
      2. Add custom rich text block
      3. Click 'Save and close' button with no values in 'Content' field

       

      Actual result:

      Uncaught TypeError appears (see pic)

      Expected result:

      No error is present.

      Designs

        Attachments

          Activity

            People

              Unassigned Unassigned
              tomasz.szopinski@ibexa.co Tomasz Szopiński
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: