|
|
@@ -15,16 +15,15 @@ import ContextualBalloon from '@ckeditor/ckeditor5-ui/src/panel/balloon/contextu
|
|
|
import TableCellPropertiesView from './ui/tablecellpropertiesview';
|
|
|
import tableCellProperties from './../../theme/icons/table-cell-properties.svg';
|
|
|
import {
|
|
|
- repositionContextualBalloon,
|
|
|
+ colorFieldValidator,
|
|
|
getBalloonCellPositionData,
|
|
|
getLocalizedColorErrorText,
|
|
|
getLocalizedLengthErrorText,
|
|
|
- colorFieldValidator,
|
|
|
- lengthFieldValidator
|
|
|
+ lengthFieldValidator,
|
|
|
+ repositionContextualBalloon
|
|
|
} from '../ui/utils';
|
|
|
import { debounce } from 'lodash-es';
|
|
|
|
|
|
-const DEFAULT_BORDER_STYLE = 'none';
|
|
|
const ERROR_TEXT_TIMEOUT = 500;
|
|
|
|
|
|
/**
|
|
|
@@ -232,7 +231,7 @@ export default class TableCellPropertiesUI extends Plugin {
|
|
|
const commands = this.editor.commands;
|
|
|
|
|
|
this.view.set( {
|
|
|
- borderStyle: commands.get( 'tableCellBorderStyle' ).value || DEFAULT_BORDER_STYLE,
|
|
|
+ borderStyle: commands.get( 'tableCellBorderStyle' ).value || '',
|
|
|
borderColor: commands.get( 'tableCellBorderColor' ).value || '',
|
|
|
borderWidth: commands.get( 'tableCellBorderWidth' ).value || '',
|
|
|
width: commands.get( 'tableCellWidth' ).value || '',
|