• I’m trying to post a code snippet in the design mode, but it is being stripped automatically, how can I fix that?

    For example, I want to post something like this in the article:

    <?xml version="1.0" encoding="UTF-8" ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

    So the user can copy the code as he wish, but the problem lies in the editor filter, it is erasing some part of the text.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    I don’t understand the issue. I mean, the current editor doesn’t have html view. So, the behavior is right, isn’t it? Probably I will add the html view in future versions.
    I want to keep the editor as simple as posible, that’s the reason becouse I’m not using the wp editor.

    Thanks for your suggestions and for using our plugin!

    Thread Starter spikespiegel

    (@spikespiegel)

    No, I dont want to put a HTML which will be converted in something else..

    I need to provide codes which users can copy and paste in any other place.

    Something like this, there is a page where the user is going to have the option to see a blogger (blogspot) template code, so he’ll be able to copy the code and paste it on his layout at blospot.com, this is an example:

    Title: X Template with 2 columns
    — Here is the template code —

    Cique here to copy the whole code.

    Something like that.

    THe problem is that the plugin html5 editor is filtering the code immediately when I paste it when I’m trying to create the article.

    Thread Starter spikespiegel

    (@spikespiegel)

    I don’t wanna sound desperate, but actually I am. :S

    I’ve been looking for one week, an extension that can make what I need to make. Yours seems to make the perfect job, except for the filtering part.
    I’ll give you an example of what I need to make:
    https://www.w3schools.com/php/php_file_upload.asp

    as you can, w3w is a tutorials website where the user can follow the tutorial and also copy the code, so he can use the code on his script.
    That’s what I need to do. I need the user to be able to copy the code that will be submitted as article by someone else.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘text being filtered’ is closed to new replies.