Page 1 of 1

Still having problems with my TinyMCE admin panel [solved]

Posted: Fri Mar 31, 2006 12:45 pm
by Luke
Alright, I have a new problem with TinyMCE. I am using it as a WYSIWYG editor for news on a client's site. To edit a news event, it pulls html formatted text from a database, urlencodes it, and sends it in the url via query string. I think this is where my problem is, because it's causing links to look like this...

../../%22http://www.goldnuggetmuseum.com/beta/gold_nugget_days.php/%22

probably has something to do with urlencode, huh? What would be a better way to pass this info?

Posted: Fri Mar 31, 2006 1:30 pm
by neophyte
Pass a record id and pull it out of the db when it gets there.

Posted: Fri Mar 31, 2006 1:37 pm
by Luke
Hmm... after further inspection (and changing it to pass that info in a session variable instead) I have noticed that it has something to do with TinyMCE turning this:

Code: Select all

<a href="http://www.somelink.com/somewhere.php">Some Link</a>
into this:

Code: Select all

<a href=""../../%22http://www.somelink.com/somewhere.php/%22">Some Link</a>
%22 is a quote, right? I removed all urlencoding from my code, and nothing is being passed through the URI anymore, so that shouldn't be a problem. It's something that TinyMCE is doing.