Details
-
Bug
-
Resolution: Done
-
Medium
-
4.6.0-beta4
Description
Cannot use custom attribute of type choice with link.
Steps:
- Add config with
fieldtypes: ezrichtext: attributes: link: another-attribute: type: choice choices: [ attr1, attr2 ] default_value: attr2 required: false multiple: true
- Reload cache.
- Edit article.
- Check RTE field.
Actual result: Field is disable, error occurs in console
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'forEach') at IbexaLinkFormView.createDropdown (ibexa-richtext-onlineeditor-js.js:112542:22) at ibexa-richtext-onlineeditor-js.js:112517:31 at Array.forEach (<anonymous>) at IbexaLinkFormView.createFromAttributesChildren (ibexa-richtext-onlineeditor-js.js:112508:42) at new IbexaLinkFormView (ibexa-richtext-onlineeditor-js.js:112330:38) at IbexaLinkUI.createFormView (ibexa-richtext-onlineeditor-js.js:111981:22) at new IbexaLinkUI (ibexa-richtext-onlineeditor-js.js:111965:28) at ibexa-richtext-onlineeditor-js.js:8478:46 at Array.map (<anonymous>) at loadPlugins (ibexa-richtext-onlineeditor-js.js:8476:35)
Expected result: Type choice can be used