Skip to content

Some way to output config CSS to frontend #134

Closed Answered by foxtrotcz
foxtrotcz asked this question in Ideas
Discussion options

You must be logged in to vote

Ok, after little trying and reading #29 (comment) I found a way.
Instead of outputting CSS from backend to frontend it gets defined in frontend and imported to backend.

  1. Create you own css file in frontend folder. For example ckeditor.css
  2. In this file add all your css that will be used on frontend and backend CKEditor. The same you would add in Custom Styles field. For example:

.ck.ck-content p.note { border-left: 4px solid #4a7cf6; padding-left: 1rem; color: #4a7cf6; }

  1. Add this file into your frontend template. <link rel="stylesheet" href="/css/ckeditor.css" />
  2. Add this file into CKEditor Custom Styles config by @import. For example @import "/css/ckeditor.css"
  3. Dont forget to define the…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by foxtrotcz
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants