MDL-77740 editor_tiny: Set the Editor window from the iFrame element 8fe80e743cad96ae6abfe97838efc2e26c6787f4
authorAndrew Nicols <andrew@nicols.co.uk>
Fri, 24 Mar 2023 13:27:36 +0000 (21:27 +0800)
committerAndrew Nicols <andrew@nicols.co.uk>
Tue, 28 Mar 2023 02:43:21 +0000 (10:43 +0800)
commit8fe80e743cad96ae6abfe97838efc2e26c6787f4
tree98f9727a5c987bee2f27a0a27d75417ba3f4e7ba
parent09fd61415e45f2f1410d75cce093b852419dcf6e
MDL-77740 editor_tiny: Set the Editor window from the iFrame element

This is a workaround for an upstream bug which I have not been able to
reproduce outside of Moodle whereby the editor.contentWindow does not
match the editor.iframeElement.contentWindow when it should.

This issue only seems to affect Firefox, and it may even be a bug in
Firefox. It can only be reproduced when using a fresh browser which has
never had a TinyMCE window open.
lib/editor/tiny/amd/build/editor.min.js
lib/editor/tiny/amd/build/editor.min.js.map
lib/editor/tiny/amd/build/utils.min.js
lib/editor/tiny/amd/build/utils.min.js.map
lib/editor/tiny/amd/src/editor.js
lib/editor/tiny/amd/src/utils.js