Fix dijit Editor in cross-domain pages with document.domain set

Fixes #17529.

(cherry picked from commit 31b55d02d4fc888c420396b00b9ae4282cd4e4c2)