You need to be logged in to post in the forum - Log In

An active JCE Pro Subscription is required to post in the forum - Buy a Subscription

Support is currently Offline

Official support hours
Monday to Friday
09:00 - 17:00 Europe/London (BST)

Please create a new Ticket and we will get back to you as soon as we can.

#100411 I need this left {if first}class="container tab-pane active"{else}class="container tab-pane"{/if}

Posted in ‘Editor’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by Ryan on Thursday, 27 June 2019 19:27 BST

softforge
Hi I am using articles anywhere and need this left in the article body but

{if first}class="container tab-pane active"{else}class="container tab-pane"{/if}
but on saving I get

if="" first="" class="container tab-pane" else=""
If I switch editor off its ok and I have switched off every place I can find that will stop it being allowed. Any idea how I can get this to be left untouched in JCE?

Ryan
Any idea how I can get this to be left untouched in JCE?


It's not currently possible - the editor interprets the {code} as an attribute of the tag, and processes it accordingly.

I am close to releasing a plugin to help with this, where code blocks wrapped in shortcode, eg: {articles}{/articles}. will be protected and not treated as regular HTML.

I hope to have a version available for testing early next week.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.