Details
Description
Steps to reproduce:
- Create or edit some content with richtext field type
- Click in the editor
- Choose from pulldown block element "Formated"
- 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