|
|
@@ -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, '' );
|
|
|
+}
|