Adding font color in CkEditor5 react js
I am using CKeditor5 with Classic Editor and upload plugin in reactJs. I want to add font color functionality in text editor. As per documentation I've tried to install and use @ckeditor/ckeditor5-font, but it is giving me error of "ckeditor-duplicated-modules". How to add font color in the text editor?
import { CKEditor } from "@ckeditor/ckeditor5-react";
import ClassicEditor from "@ckeditor/ckeditor5-build-classic";
<CKEditor
config={{
extraPlugins: [uploadPlugin],
}}
editor={ClassicEditor}
开发者_运维问答 data={value}
// onInit={(editor) => {}}
onReady={(editor) => {}}
onChange={this.handleCk5change}
className="ckeditor-custom"
/>
You can create a css file and set the color property for the .ck.ck-content class like this:
.ck.ck-content{
color: red !important;
}
精彩评论