FCK / Firefox Fix

Before I got too involved with posting on this blog, I wanted to make sure all my code was validating (or that I had a good reason for it not to be). Along this process, I noticed a couple of tags repeatedly appearing in my posts:

<input id="gwProxy" type="hidden" />
<input id="jsProxy" onclick="jsCall();" type="hidden" />

After a bit of Googling, I soon learned that it was a Firefox problem with FCK editor (the wysiwyg for wordpress posts), probably relating to specific addons installed in the browser. Well, rather then chase them down, or convert to using chrome or IE only for my wordpress posts, I thought I’d try my hand at creating a plugin that fixed it server-side. Although I’m not a php programmer, it turned out to be much easier than I expected. Just about 6 lines in all.

Anyway, if you’re having the problem as well and would like a quick fix, grab my FCK Fix plugin and give it a whirl.

  • Digg
  • Sphinn
  • del.icio.us
  • RSS

Popular Posts

Alternatively, you may want to return to the Home Page to view the most recent blog posts in order. If you have any questions, I make a point of reading and responding to all comments. Thanks for joining!

  • Thanks. This really helped. Made my day!
  • Thank you this nice post.
  • Ajit
    This fix we are handling at server side will help is avoiding these codes from our post, But FCK editor still shows that code in it. This could confuse the people who rae writing the post. So there should be a way to avoid these codes from coming in the editor.
  • Arthur
    Ok I downloaded the plugin and nothing worked. Am I supposed to open the FCK zip file and move that folder to my Mozilla folder?

    Please give me steps to get this placed in the right area.

    Thanks!
  • terriejo
    testing
  • terriejo
    I fixed my problem disabling the add on called { The Browser Highlighter )

    http://forums.bvcommerce.com/default.aspx?m=637...
  • Thanks for the fix. I couldn't figure out where that code was coming from...now I know, and now it's gone :)
  • THANK YOU, this was driving me crazy. Now I can work on my site without going insane.
  • munjal
    Please help me for this one...
  • Just install the plugin and then "view source" from the actual live page (not the internal WP source viewer)
  • The fact you went around the problem does not mean that you fixed it.
    There is most likely a Browser Exploit that's affecting you, and it can be as deep as hijacking your password.

    Solve the problems with your computer not with the FCK editor, since that's really where the problem is at.

    hijackthis will help, submit a long in the hijackthis forms and they'll figure out the problem...

    for editing the old posts, instead of changing the output on every page, use the same code you have to run an UPDATE mysql statement, and therefore replace the text of the entry that was affected with the new text where you strip it out.
    That way you won't be going around the issue completely, but you'll at least correct the data that was affected by the input
  • Andy, running a mysql command is beyond the capabilities of most wordpress users, and it does not address future posts.

    My script does solve the problem of code getting added to the pages displayed to users. I agree that it does not change firebug or fckeditor - nor would I want it to. That is not my role.

    I think of this as the bandage that stops the bleeding, which is precisely what is needed until the fck / firefox people work things out for themselves. If you are capable of and prefer to use mysql statements every time you author a post, by all means, feel free. And, in fact, if you want to post what they are for other users here, I'd appreciate it. But that's not the route I'll personally be taking, and those out there who are also bleeding from this bug are welcome to use the bandages I'm using (and have provided).
  • axekra
    Thank you so much, is there a place to donate a few dollars?
  • Where is the link to FCK FIx?
  • Upper right hand corner of the page, there's a graphic that says download the plugin.
  • Thanks Brett for the quick response.. :)
  • NP =). Feel free to link back if you find the plugin helpful.
  • KilllerX
    How can I get it to work... do I just have to have that window open or what?
  • Install the plugin. It'll automatically filter out the garbage code before the page loads for anyone (just view source on the live page of your post).
  • cruiz
    It happened in Drupal too!
  • leetramp
    I just tried it, with no luck. Installed and activated the plug in, cleaned out the garbage code, then found the garbage code was re-inserted when I use the wysiwyg editor in Firefox :-(
  • Please preview your post as though it were live. View source. Is it still there? If so, please provide me a link and I'll see if I can figure it out.

    I'm aware that this script doesn't prevent firefox from injecting the code. Rather, it prevents that code from getting pushed through to html when the resulting page is viewed.
  • leetramp
    I see. Yes, it's working. I was looking in the WP edit window, but in an actual browsed page the code is not there. Works great!
  • Glad to hear it! I tried using a wordpress hook to fix it when it got posted to the database too, but ran into some problems. PHP isn't my forte.

    Anyway, possibly more importantly, this method will intercept all of your old posts too, so it's pretty effective.

    Hope to see you around again soon. I've got a reeeeeeeally kickass plugin coming out early next week, and trust me, you won't wanna miss it!
  • Hello,

    Thank you for the fix. I was almost gone mad editing all the posts.

    Thank you again.
blog comments powered by Disqus