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.

#116979 testing using vuejs in joomla articles with jce as editor

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 infini on Thursday, 05 December 2024 15:21 GMT

infini

we're testing using vuejs inside joomla article, but jce appears to be stripping out vuejs @click it turns <button @click="getUsers">Get Users</button> to <button>Get Users</button> .. we;'ve already looked at your article "Scripts removed on saving" without much success, any other ideas you have that may help?

Ryan

but jce appears to be stripping out vuejs @click it turns <button @click="getUsers">Get Users</button> to <button>Get Users</button>

This is because @click is not valid syntax for an HTML attribute.

Use v-on:click instead, eg:

<button v-on:click="getUsers">Get Users</button>

Ryan Demmer

Lead Developer / CEO / CTO

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

infini

perfect! thank you for the tip (solution)!