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

Adding block element "Formated" in Richtext editor leads to error

    XMLWordPrintable

Details

    Description

      Steps to reproduce:

      1. Create or edit some content with richtext field type
      2. Click in the editor
      3. Choose from pulldown block element "Formated"
        1. Also with lists (ordered and unordered) and table elements this error ocures.

       

      Leads to errors in browser console:

      TypeError: Cannot read property 'offsetWidth' of null
       at Object.setPositionFor (ezplatform-richtext-onlineeditor-js.js:29309)
       at Object.setPosition (ezplatform-richtext-onlineeditor-js.js:29260)
       at Object._updatePosition (alloy-editor-no-react-min.js:1066)
       at Object.componentDidUpdate (alloy-editor-no-react-min.js:1066)
       at Object.componentDidUpdate (create-react-class.min.js:1)
       at oj (react-dom.production.min.js:127)
       at Aj (react-dom.production.min.js:160)
       at unstable_runWithPriority (react.production.min.js:25)
       at Da (react-dom.production.min.js:60)
       at ab (react-dom.production.min.js:154)
      Uncaught TypeError: Cannot read property 'offsetWidth' of null
       at Object.setPositionFor (ezplatform-richtext-onlineeditor-js.js:29309)
       at Object.setPosition (ezplatform-richtext-onlineeditor-js.js:29260)
       at Object._updatePosition (alloy-editor-no-react-min.js:1066)
       at Object.componentDidUpdate (alloy-editor-no-react-min.js:1066)
       at Object.componentDidUpdate (create-react-class.min.js:1)
       at oj (react-dom.production.min.js:127)
       at Aj (react-dom.production.min.js:160)
       at unstable_runWithPriority (react.production.min.js:25)
       at Da (react-dom.production.min.js:60)
       at ab (react-dom.production.min.js:154)

      Looks like this problem comes with https://github.com/ezsystems/ezplatform-richtext/commit/c2b1b0d9c8b34fbc6107657dc8ae1f77d928da6a

       

      Designs

        Attachments

          Activity

            People

              Unassigned Unassigned
              e8c27efa-d74a-4f0f-93e7-219bc3702db7@accounts.ibexa.co Holger Marx
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: