@dosgato/dialog-ckeditor
Advanced tools
Comparing version 0.0.24 to 0.0.25
@@ -26,5 +26,10 @@ const defaultHeaderColors = [ | ||
'italic', | ||
'strikethrough', | ||
'superscript', | ||
'subscript', | ||
'code', | ||
'removeFormat', | ||
'|', | ||
'horizontalLine', | ||
'blockQuote', | ||
'removeFormat', | ||
'specialCharacters', | ||
@@ -108,4 +113,2 @@ '|', | ||
'italic', | ||
'horizontalLine', | ||
'blockQuote', | ||
'removeFormat', | ||
@@ -118,12 +121,6 @@ 'specialCharacters', | ||
'redo', | ||
'sourceEditing', | ||
'-', | ||
'numberedList', | ||
'bulletedList', | ||
'indent', | ||
'outdent', | ||
'|', | ||
'heading', | ||
'|', | ||
'fontColor' | ||
'sourceEditing' | ||
], | ||
@@ -145,7 +142,12 @@ shouldNotGroupWhenFull: true | ||
'redo', | ||
'|', | ||
'sourceEditing', | ||
'-', | ||
'numberedList', | ||
'bulletedList', | ||
'indent', | ||
'outdent', | ||
'|', | ||
'sourceEditing' | ||
'heading', | ||
'|', | ||
'fontColor' | ||
] | ||
@@ -166,3 +168,3 @@ } | ||
presetConfig = defaultConfig; | ||
if (configType === 'min' || configType === 'ti') | ||
if (configType !== 'full') | ||
return presetConfig; | ||
@@ -172,11 +174,9 @@ const fontColor = { | ||
}; | ||
presetConfig.fontColor = fontColor; | ||
if (configType === 'minwithlist') | ||
return presetConfig; | ||
const tableCellProperties = { | ||
backgroundColors: options.templateColors ?? defaultTemplateColors | ||
}; | ||
presetConfig.fontColor = fontColor; | ||
presetConfig.table.tableCellProperties = tableCellProperties; | ||
presetConfig.table.tableProperties.tableHeaderColors = options.tableHeaderColors ?? defaultHeaderColors; | ||
presetConfig.table.tableCellProperties = tableCellProperties; | ||
return presetConfig; | ||
} |
{ | ||
"name": "@dosgato/dialog-ckeditor", | ||
"description": "A form control that provides an instance of CKEditor. Designed to be compatible with @dosgato/dialog.", | ||
"version": "0.0.24", | ||
"version": "0.0.25", | ||
"main": "./dist/index.js", | ||
@@ -6,0 +6,0 @@ "exports": { |
56625