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.

#116958 JCE remove uk-grid attribute in a element

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 [email protected] on Thursday, 21 November 2024 10:33 GMT

[email protected]

I work with the UIKit framework. When editing the content in J5, JCE deletes the uk-grid attribute from the DIV element (see code). When I edit the whole thing via code mirror uk-grid is not deleted. How can I solve this problem in the JCE editor?

example:

//original
<div uk-grid>
    <div></div>
    <div></div>
</div>

//after editing with JCE
<div>
    <div></div>
    <div></div>
</div>

Ryan

In the Editor Global Configuration, what do you have set for the Validate HTML and Doctype options?

Ryan Demmer

Lead Developer / CEO / CTO

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

[email protected]

See screenshot

Validate HTML =  NO

Doctype = mixed

Attachments

Ryan

I'm not seeing this issue in my tests. Please send me a login - https://www.joomlacontenteditor.net/contact/site-login

Ryan Demmer

Lead Developer / CEO / CTO

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

Ryan

I'm not seeing this issue in my tests on your site.

See this article - https://www.svdjk.de/administrativ/test-uk-grid - where I have added the grid example from the UIKit docs, and the uk-grid attribute has been retained when saving in JCE Pro.

Ryan Demmer

Lead Developer / CEO / CTO

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

[email protected]

I have now just opened the article again in the backend and saved it once with editing and once without editing and uk-grid was removed again. The same error as before as soon as I work with JCE. Pleas check again maybe as testuser1 (with administrator privileges only)

Ryan

I have now just opened the article again in the backend and saved it once with editing and once without editing and uk-grid was removed again. The same error as before as soon as I work with JCE. Pleas check again maybe as testuser1 (with administrator privileges only)

The uk-grid attribute is being removed by the Joomla Text Filter, not JCE. The Text Filter settings for the Administrator group are "Default Forbidden List" which will not allow custom attributes like uk-grid.

Ryan Demmer

Lead Developer / CEO / CTO

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

[email protected]

Thank you very much for the quick help. I didn't have the text filter function on my screen. Now it works perfectly! 😊