Edit this page

domain String

Relaxes the same-origin policy when using the iframe-based editor. This is done automatically for all cases except when the policy is relaxed by document.domain = document.domain. In that case, this property must be used to allow the editor to function properly across browsers. This property has been introduced in internal builds after 2014.1.319.


<textarea id="editor"></textarea>
document.domain = document.domain;

  domain: document.domain
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article