Add this snippet to administrator/components/com_content/models/forms/article.xml
:
<field name="extrafield" type="editor"
label="An Extra Field" description="Whatever"
filter="JComponentHelper::filterText" buttons="true" />
In administrator/components/com_content/views/article/tmpl/edit.php
render the new field:
<?php echo $this->form->getInput('extrafield'); ?>
Go to any media form field (the "Images and links" tab works for this), select an image, and try to close the modal in any available manner (the insert/cancel buttons, the X icon, or clicking outside the modal).
The modal is closed.
The modal does not close. In the browser console is a "Uncaught RangeError: Maximum call stack size exceeded" message.
Clone of the CMS as of bb1010a
Closed as we have a pr
@mbabker my bad! will do a PR in few minutes