First, install the build from npm:
npm i ckeditor5-foreground-color
Use it in your JavaScript application:
import ForegroundColor from 'ckeditor5-foreground-color/src/foregroundcolor';
ClassicEditor
.create( document.querySelector( '#editor' ), {
plugins: [ ForegroundColor, ... ],
toolbar: [ 'foregroundcolor', ... ]
} )
.then( ... )
.catch( ... );
Licensed under the terms of GNU General Public License Version 2 or later.