Post by magisterson » Wed Mar 20, 2019 8:32 am

How to stop removing custom CSS classes from "HTML content" editor? Default editor always removing my classes. If I add <div class="my_class"></div> it will replace it to: <div></div> - how to stop it and let me add some more html tags?

New member

Posts

Joined
Tue Jul 23, 2013 10:15 pm

Post by paulfeakins » Wed Mar 20, 2019 7:38 pm

magisterson wrote:
Wed Mar 20, 2019 8:32 am
How to stop removing custom CSS classes from "HTML content" editor?
Just switch out of HTML mode *before* you save. Simples! :crazy:

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by magisterson » Wed Mar 20, 2019 9:46 pm

LOL, it's look like some kind of bug :o

New member

Posts

Joined
Tue Jul 23, 2013 10:15 pm

Post by paulfeakins » Thu Mar 21, 2019 6:26 pm

magisterson wrote:
Wed Mar 20, 2019 9:46 pm
LOL, it's look like some kind of bug :o
It's a feature ;)

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by magisterson » Fri Mar 22, 2019 5:19 am

Pretty annoying ;D

New member

Posts

Joined
Tue Jul 23, 2013 10:15 pm

Post by IP_CAM » Fri Mar 22, 2019 9:12 am

Pretty annoying
Well, not really, one just needs to know the difference :laugh:
https://whatis.techtarget.com/definitio ... at-you-get
The Microsoft FrontPage HTML Editor uses it since 1995 ;)

My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by letxobnav » Fri Mar 22, 2019 11:42 am

Ah, javascript, always a problem.

Difficulty here is that you cannot correct it (as the article suggests) in the editor's "code section" itself, you have to code to remove the (in the background inserted) rubbish.

Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces

“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.


User avatar
Expert Member

Posts

Joined
Fri Aug 18, 2017 4:35 pm
Location - Taiwan
Who is online

Users browsing this forum: Bing [Bot] and 412 guests