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.

#101586 Custom HTML is deleted by switching to wysiwyg view

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 miguel.bonaval on Monday, 04 November 2019 14:50 GMT

miguel.bonaval
Hi, I need to create some custom HTML tags in my articles, but when I change the view to wysiwyg the custom HTML is deleted. The HTML tags I need are like these:

<book-learn-button label="My  orders" top left> </book-learn-button>
<book-learn-component course-type="Language" course-search-mode="country" country-id="GB" > </book-learn-component>
I have made the changes in the configurations like set the HTML validator to false and add in the "Custom Configuration Variables" this one:

validate:false;
But nothing works. Any help is appreciated, please.

Ryan
Set the Validate HTML option back to Yes, and in Editor Profiles -> Editor Parameters -> Advanced, add the following to the Extended Elements field:

+book-learn-button[*],+book-learn-component[*]
https://cdn.joomlacontenteditor.net/tmp/101586-custom-html-is-deleted-by-switching-to-wysiwyg-view.jpg

Ryan Demmer

Lead Developer / CEO / CTO

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

miguel.bonaval
thanks, this solution fixed my problem