WordPress.org

Ready to get started?Download WordPress

Forums

Raw HTML
Conflicts with editor's shortcode (8 posts)

  1. Ravi Kasarla
    Member
    Posted 1 year ago #

    I placed the below code in editor

    [raw]

    [one_third][box style=" info-box-notice mh-455"]
    heyyyyyyyyyyyyyyyyyyyyyyyyyyyy
    [/box][/one_third]
    [/raw]

    and page renders as like below

    [one_third][box style=" info-box-notice mh-455"] heyyyyyyyyyyyyyyyyyyyyyyyyyyyy [/box][/one_third]

    if content editor don't have any short codes then this plugin working fine. If we add any short codes then showing issue like above.

    Please suggest the solution to overcome this issue.

    http://wordpress.org/extend/plugins/raw-html/

  2. fancyfiber
    Member
    Posted 1 year ago #

    Yep. Found this same problem myself.

    I fixed it by adding code to the file ../raw-html/include/tag-handler.php

    at about line 22 before: $tags = array(array....

    add: $text = do_shortcode($text);

    Hope this helps.

  3. fancyfiber
    Member
    Posted 1 year ago #

    Oops...discovered some oddities with my "workaround" above. Modified the added code:

    if(!is_admin()) {
          $text = do_shortcode($text);
       }
  4. mbrsolution
    Member
    Posted 1 year ago #

    Hello have you tested the latest version?

    Kind regards

  5. alturic
    Member
    Posted 10 months ago #

    I signed in specifically to say Fancy, you're a life-saver. The latest version of WP, with the latest version of RawHTML still has this problems with shortcodes I guess. It kept putting [raw] tags around the Quform shortcode. Was pulling my brain out. What would be nice (and easier than playing with code) is if there was an option to completely disable raw html per post/page?

    Just curious if every shortcode is affect by this or just specific ones. Either way, good job Fancy!

  6. mkelly99
    Member
    Posted 10 months ago #

    '[raw] &bsp; [/raw]'

    also fails, leaving:

    '[raw] [/raw]'

    when i bounce back to teh visual editor and to test again.

    Thanks

  7. mkelly99
    Member
    Posted 10 months ago #

    And this:

    <!--raw-->   <!--raw-->

    Leaves this:

    <!--raw--> <!--raw-->

  8. mbrsolution
    Member
    Posted 10 months ago #

    Hello @mkelly99 have you read the following?

    The free version only supports the HTML editor. Get the Pro version if you want to be able to switch between HTML and the Visual editor without WordPress messing up your content.

    Kind regards

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic