diff --git a/src/utils.js b/src/utils.js index 7b0e1a1..67147c8 100644 --- a/src/utils.js +++ b/src/utils.js @@ -8,7 +8,6 @@ */ import ColorTableView from './ui/colortableview'; -import { normalizeColorCode } from '@ckeditor/ckeditor5-ui/src/colorgrid/utils'; /** * The name of the font size plugin. @@ -112,3 +111,11 @@ export function addColorTableToDropdown( { dropdownView, colors, columns, remove return colorTableView; } + +// Fixes the color value string. +// +// @param {String} value +// @returns {String} +function normalizeColorCode( value ) { + return value.replace( /\s/g, '' ); +}