Skip to content

Instantly share code, notes, and snippets.

@jbub
Created July 10, 2013 08:34
Show Gist options
  • Save jbub/5964489 to your computer and use it in GitHub Desktop.
Save jbub/5964489 to your computer and use it in GitHub Desktop.
If you are using tinymce across subdomains you need to uncomment and changedocument.domain in tiny_mce_popup.js.
# document.domain is commented by default, change it to our domain and uncomment it, this will edit file in place
sed -i "s/\/\/ document.domain = 'moxiecode.com';/document.domain = 'example.com';/" path/to/tiny_mce/tiny_mce_popup.js
# note that in order to get this working on os x, you must pass argument to -i
# this will save unedited copy of tiny_mce_popup.js as tiny_mce_popup.js.tmp
sed -i ".tmp" "s/\/\/ document.domain = 'moxiecode.com';/document.domain = 'example.com';/" path/to/tiny_mce/tiny_mce_popup.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment