Merel Posted November 20, 2019 Share Posted November 20, 2019 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? Link to comment Share on other sites More sharing options...
dragan Posted November 20, 2019 Share Posted November 20, 2019 Do you mean you place that class in CKEditor? You have to enable inline 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 2 Link to comment Share on other sites More sharing options...
Merel Posted November 20, 2019 Author Share Posted November 20, 2019 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 ! Link to comment Share on other sites More sharing options...
dragan Posted November 20, 2019 Share Posted November 20, 2019 well, whatever field-name it is - "body" or whatever you've named it. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now