WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] WYSIWYG Content Messed Up On Submission (3 posts)

  1. WebTechGlobal
    Member
    Posted 4 years ago #

    Hey this is a strange one.

    I use the WYSIWYG editor in my CSV 2 POST Pro plugin just fine. I added it to eStore also in the same way but when I submit the form the content ends up just a link with the text being this...

    \"\"

    The url to that link is...

    http://localhost/testing/wordpress/wp-admin/%5C%22http://localhost/testing/wordpress/wp-content/uploads/2010/01/60-plasma1.jpg%5C%22

    So some sort of stripping is going on but I can't see why. It doesnt make any sense. This is me dumping $_POST['content'] as the first thing that is being done when processing the subsmission.

    So what is happening on submission of the WYSIWYG editor that would mess up the content of my post variable?

    Also the HTML part of the editor has a box inside it which is strange. You think its something to do with that? Its like a box inside the text area that restricts some space.

    Thanks for any help everyone this has got me stuck for about 5 hours.

    Ryan

  2. WebTechGlobal
    Member
    Posted 4 years ago #

    I should have said that the content includes an image but is being reduced to that above and the actual post created has no content at all, that shown above doesnt even end up in the content!

  3. WebTechGlobal
    Member
    Posted 4 years ago #

    FIXED

    Realised I was missing this...

    $_POST = stripslashes_deep($_POST);

Topic Closed

This topic has been closed to new replies.

About this Topic