Still having problems with my TinyMCE admin panel [solved]

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Still having problems with my TinyMCE admin panel [solved]

Post 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?
Last edited by Luke on Fri Mar 31, 2006 6:42 pm, edited 1 time in total.
User avatar
neophyte
DevNet Resident
Posts: 1537
Joined: Tue Jan 20, 2004 4:58 pm
Location: Minnesota

Post by neophyte »

Pass a record id and pull it out of the db when it gets there.
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post 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.
Post Reply