Created
July 10, 2013 08:34
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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