You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, if i use the same classname of one of Craft CMS classname, the style is apply.
If i declare a classname used by Craft, Craft element is overwritted.
Steps to reproduce
Will change all the Craft cms button style
Will change the btn style in my Cke Editor
Additional info
Craft version: 5.4.7.1
Plugins & versions: 4.2.0
The text was updated successfully, but these errors were encountered:
The styles you define in the CKEditor Config Custom Styles field are added to the head of the page (and apply to the whole page). If you use a class name that’s used in other places, those styles will affect elements outside of the CKEditor, too. If that's not a desired behaviour in your case, you can either use a unique class name (e.g. mycke-btn), or ensure your styles only target that class name when it’s inside a CKEditor field (e.g. .ck-editor__main .btn).
I hope this helps!
I’ll close this now, but feel free to reach out again if you run into any further problems.
Description
Hello, if i use the same classname of one of Craft CMS classname, the style is apply.
If i declare a classname used by Craft, Craft element is overwritted.
Steps to reproduce
Will change all the Craft cms button style
Will change the btn style in my Cke Editor
Additional info
The text was updated successfully, but these errors were encountered: