Jump to content

Recommended Posts

Posted

So I am working with a button in my source code. It looks like this

<p><a class="button-orange-small" href="" rel="noreferrer noopener" target="_blank">....</a></p>

but every time I save he delete my "class" part that gives me troubles with my button. But when I open the inspector he still recognize my button but with wrong styling. So I am really stuck and don't know how I can fix this.

Do someone know how this comes?
 

Posted
34 minutes ago, dragan said:

Do you mean you place that class in CKEditor? You have to enable inli!ne classes, otherwise the richtext editor strips it away when saving.

Admin => Setup => Fields => Your field => Input => Extra allowed content

Enter something like
a[*]{*}(*)

config / syntax examples: https://ckeditor.com/docs/ckeditor4/latest/guide/dev_advanced_content_filter.html#custom-mode

Where can i find " your field" i don't see it by fields? it's probably that !

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...