WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: WP-Syntax] escaped="true" being stripped (6 posts)

  1. alexleonard
    Member
    Posted 5 years ago #

    Hi there,

    I've just been testing out WP-Syntax and whenever I switch back to the visual editor all my > symbols get turned into &gt ;. So I thought I'd try using <pre escaped="true">. This works if I stay in HTML edit mode, but breaks if I switch back to the visual editor.

    Any thoughts?

    (any formatting outside of the norm with tinymce can be such a pain)

  2. alexleonard
    Member
    Posted 5 years ago #

    Oh, hang on, it doesn't really support the Visual Editor :(

    Perhaps it would be beneficial to also process shortcodes using this plugin - this would then enable the plugin to be used within the visual editor?

    [syntax lang="php"]<?php // your code here[/syntax]

  3. rmm5t
    Member
    Posted 5 years ago #

    Yup, lack for good visual editor support is a pain. Sorry about that. Yes, agreed on shortcodes. WP-Syntax precedes WP's shortcode support, but I would be very willing to accept a well written [syntax] shortcode patch for the plugin. The plugin would need to maintain backwards compatibility for the old format though.

  4. Ben Huson
    Member
    Posted 4 years ago #

    I just found this plugin which prevents attributes you specify from being stripped from the visual editor.

    How about building some of this functionality into WP Syntax to prevent the "line" and "escaped" attributes from being stripped?

  5. rmm5t
    Member
    Posted 4 years ago #

    husobj, Thanks. I'll take a look at that when I get a chance. Looks good. Meanwhile, patches are always helpful.

  6. Steve
    Member
    Posted 4 years ago #

    Hi, I think this problem could quite easily be resolved by merging with your a plug-in a similar solution to that which I have recently posted on my blog.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags