Forums

WYSIWYG replaces each & with & (10 posts)

  1. saphod
    Member
    Posted 11 months ago #

    Hi,

    I think this is a known problem, but I have found nothing yet. I hope someone can help me.

    If I use a "&" in a post with the WYSIWYG-editor, each time I edit it, the "&" becomes "&", so after one edit, it reads "&", after the second time "&" and after a while, there is a whole bunch of it: "&....".

    I have to change this manually each time, and that is pretty annoying.

    Is there any fix for this?

    Thanks!

  2. iridiax
    Member
    Posted 11 months ago #

    Do not switch back and forth between the visual and html editors because it will mess up your code.

  3. saphod
    Member
    Posted 11 months ago #

    Even if I don't switch, it happens. I have a post with "&&". Everytime I go edit, it displays &&...

  4. saphod
    Member
    Posted 10 months ago #

    Any idea if this has been changed in WP 2.7?
    I am still on 2.6.5 and there it is the same problem - still.

    Does anyone know how to get this right?
    It's pretty annoying.

  5. sidhighwind
    Member
    Posted 8 months ago #

    saphod,

    I am seeing this problem also and it is very annoying. Did you ever find a solution?

    Jon

  6. sidhighwind
    Member
    Posted 8 months ago #

    OK if you have the syntaxhighlighter plugin installed it is double encoding for TinyMCE which if you are not using screws this up majorly.

    just comment out the support for TinyMCE

    // Account for TinyMCE
    		//add_filter( 'content_save_pre', array(&$this, 'TinyMCEDecode'), 8 );
    		//add_filter( 'the_editor_content', array(&$this, 'TinyMCEEncode'), 8 );
  7. masschel
    Member
    Posted 8 months ago #

    Euhm, and where would I comment that support?

    I edited the code for TinyMCE, but could not find what you mention. I found

    add_filter( 'tiny_mce_before_init', 'tadv_mce_options' );

    which I commented, but it did not help. I still get the amp; issue. Then I tried deactivating the plugin, but that also did not help. I have the following version of the plugins installed:

    SyntaxHighlighter 1.1.2
    Tiny MCE Advanced 3.2

    If somebody could shed another light on how to solve this, please be welcome, this is getting... annoying.

  8. masschel
    Member
    Posted 8 months ago #

    Pardon. Found it. It is exactly as sidhighwind describes, in the syntaxhighlighter plugin. I was looking everywhere, except that one. But hey, I'm a man, I'm allowed by nature.

  9. dinsdale
    Member
    Posted 6 months ago #

    I'm glad I found this. Effin' hades! All is right again.

  10. pepe-gonzales
    Member
    Posted 3 months ago #

    Hi I found out, that it was the plugin "simple tags" withe the option auto tags switched on. I will write the author. :-)

Reply

You must log in to post.

About this Topic