ckeditor5 icon indicating copy to clipboard operation
ckeditor5 copied to clipboard

Where do I insert the custom.css file in the HTML when using CKEditor 5?

Open aysiscore opened this issue 6 years ago • 3 comments

According to the documentation, CKEditor 5's theme styling can be customised by making a custom.css file and "referenced directly in HTML after the <link> tag injected by the editor and its content will simply override the default CSS variables."

In my application there is no <link> tag injected by the editor. There is only a <style> tag inserted as the last element in the <head> tag like such:

<style data-cke="true">.ck.ck-placeholder:before ...</style>

So where exactly does the custom.css file go so I can style the CKEditor's toolbar myself?

aysiscore avatar Jun 12 '20 13:06 aysiscore

Hi, this just means you need to add this css file in a link tag in your html. Alternatively, you can override styles during build process by importing stylesheet into ckeditor.js - everything is in the docs you linked above.

FilipTokarski avatar Jun 15 '20 08:06 FilipTokarski

Closing due to lack of activity.

FilipTokarski avatar Jul 07 '20 09:07 FilipTokarski

I followed the doc and linked a custom.css with a <link ...>, but the