I'm seeing a couple issues:
jQuery.select2() is not a valid JS function when the modal is first loaded. Seems to be some kind of JS loading order going wrong. If I close the modal and re-open it, it works all times except for that very first time.- Some z-index errors with results not showing up. May need to add some CSS to help fix.
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | 3091977-fix-ckeditor-modal-zindex.patch | 309 bytes | dave reid |
| #4 | 3091977-fix-modal-zindex.patch | 479 bytes | dave reid |
Comments
Comment #2
dave reidComment #3
dave reidActually issue #1 was just related to the minimum_single variable so it doesn't seem to be an actual bug.
The modal z-index issue is realted to https://select2.org/troubleshooting/common-problems#select2-does-not-fun... but I cannot get the dropdownParent to work properly because the HTML is attached inside the modal contents independently. Can we react to the dialog being opened instead, or having its contents ready instead of the attach() method being used?
Comment #4
dave reidThis isn't the best fix because this ends up putting the select2 above other things like the toolbar. But at least this gets it working for now until I can figure out how to use the dropdownParent properly.
Comment #6
dave reidComment #8
dave reid.
Comment #9
dave reidTurns out CKEditor modals have a higher z-index than the default jQuery UI modals. We should use the value of CKEDITOR.config.baseFloatZIndex + 2, which is 10002.
Comment #11
matthandClosing this bug report since CKEditor4 is no longer supported. We cannot reproduce in CKEditor5.