Permission Denied: Changing the tinymce javascript file?

387 views
Skip to first unread message

Jay McGaffigan

unread,
Sep 15, 2009, 9:51:30 AM9/15/09
to tinymce...@googlegroups.com
When the plugin includes the tiny_mce javascript... it is deploying a
squished up version (no whitespace) is there version of this file
that's more readable?

I'm getting the permissions denied error at character 132050... and it
makes no sense to me... Is this file the "same" as what's in
tiny_mce_src?

Thanks!
Jay

Trevor Rowe

unread,
Sep 15, 2009, 10:24:05 AM9/15/09
to tinymce...@googlegroups.com
Jay,

Sorry to hear you are still having issues. I'm going to make a change
to the plugin so you can tell tinymce_hammer to combine the src (un-
mangled) javascript files. I'll post it to github this morning and
then reply to this thread again once I've made the change. Hopefully
this will help you track down you javascript issue.

Trevor

Jay McGaffigan

unread,
Sep 15, 2009, 10:35:01 AM9/15/09
to tinymce...@googlegroups.com
thanks.

I'm willing to try and make changes locally if you want to send em my way.

For now I used a reformatter to reformat the tiny_mce.js file

and the call is on this.getDoc().body

I threw an alert just before the call to
"return this.bodyElement||this.getDoc().body"
and saw that this is being called multiple times before it fails.

I'm trying to figure out what the "this" is that fails here...

If you have any thoughts on what getBody is doing or where I could
throw an alert to see "What" the this is that'd be cool

Jay

Trevor Rowe

unread,
Sep 15, 2009, 10:37:33 AM9/15/09
to tinymce...@googlegroups.com
I've commited the changes to github. You should be able to pull the
latest version and just add the following line to your config/
initializers/tinymce_hammer.rb file:

Tinymce::Hammer.src = true

That will tell the combiner to suffix the appropriate files with _src
so you get the un-mangled versions.
Reply all
Reply to author
Forward
0 new messages