Thursday, February 26, 2009

TinyMCE relative path IMG problem

I've been using TinyMCE as a WYSIWYG editor on my website www.puppages.com. I absolutely LOVE it. There was one issue that was a little frustrating. When someone tried to link back to another page on the site (or an image/document on the site), the TinyMCE code would convert the absolute path into a relative path and the relative path would not work. I was able to fix this by doign some javascript editing.

Here's the solution:
  1. Open the tiny_mce.js file.
  2. Find all references to the function: toRelative(u)
  3. replace with return u
  4. save

1 comment:

Unknown said...

Thanks, seems to work :)