We have a custom component that uses the inline rich-text editor as one of its properties. This seems to break when there are switches also in the dialog.
It looks like this was a problem and fixed in 126.96.36.199, but wondering if anyone has come across it again? This is producible on version 6.5.2.
This is reproducible on 188.8.131.52 via CQ-4252056 but not on master instance. This doesn't seem to relate to RTE. The error in console is just a side-effect. The root cause is that when the dialog is being opened, the foundation-contentloaded event is not being triggered and RTE initializes on that event.