@ckeditor/ckeditor5-table
Advanced tools
Comparing version 25.0.0 to 26.0.0
{ | ||
"name": "@ckeditor/ckeditor5-table", | ||
"version": "25.0.0", | ||
"version": "26.0.0", | ||
"description": "Table feature for CKEditor 5.", | ||
@@ -12,24 +12,30 @@ "keywords": [ | ||
], | ||
"main": "src/index.js", | ||
"dependencies": { | ||
"@ckeditor/ckeditor5-core": "^25.0.0", | ||
"@ckeditor/ckeditor5-engine": "^25.0.0", | ||
"@ckeditor/ckeditor5-ui": "^25.0.0", | ||
"@ckeditor/ckeditor5-utils": "^25.0.0", | ||
"@ckeditor/ckeditor5-widget": "^25.0.0", | ||
"ckeditor5": "^26.0.0", | ||
"lodash-es": "^4.17.15" | ||
}, | ||
"devDependencies": { | ||
"@ckeditor/ckeditor5-alignment": "^25.0.0", | ||
"@ckeditor/ckeditor5-block-quote": "^25.0.0", | ||
"@ckeditor/ckeditor5-clipboard": "^25.0.0", | ||
"@ckeditor/ckeditor5-editor-classic": "^25.0.0", | ||
"@ckeditor/ckeditor5-horizontal-line": "^25.0.0", | ||
"@ckeditor/ckeditor5-image": "^25.0.0", | ||
"@ckeditor/ckeditor5-indent": "^25.0.0", | ||
"@ckeditor/ckeditor5-list": "^25.0.0", | ||
"@ckeditor/ckeditor5-media-embed": "^25.0.0", | ||
"@ckeditor/ckeditor5-paragraph": "^25.0.0", | ||
"@ckeditor/ckeditor5-typing": "^25.0.0", | ||
"@ckeditor/ckeditor5-undo": "^25.0.0", | ||
"json-diff": "^0.5.4" | ||
"@ckeditor/ckeditor5-alignment": "^26.0.0", | ||
"@ckeditor/ckeditor5-block-quote": "^26.0.0", | ||
"@ckeditor/ckeditor5-clipboard": "^26.0.0", | ||
"@ckeditor/ckeditor5-core": "^26.0.0", | ||
"@ckeditor/ckeditor5-dev-utils": "^24.0.0", | ||
"@ckeditor/ckeditor5-editor-classic": "^26.0.0", | ||
"@ckeditor/ckeditor5-engine": "^26.0.0", | ||
"@ckeditor/ckeditor5-horizontal-line": "^26.0.0", | ||
"@ckeditor/ckeditor5-image": "^26.0.0", | ||
"@ckeditor/ckeditor5-indent": "^26.0.0", | ||
"@ckeditor/ckeditor5-list": "^26.0.0", | ||
"@ckeditor/ckeditor5-media-embed": "^26.0.0", | ||
"@ckeditor/ckeditor5-paragraph": "^26.0.0", | ||
"@ckeditor/ckeditor5-theme-lark": "^26.0.0", | ||
"@ckeditor/ckeditor5-typing": "^26.0.0", | ||
"@ckeditor/ckeditor5-ui": "^26.0.0", | ||
"@ckeditor/ckeditor5-undo": "^26.0.0", | ||
"@ckeditor/ckeditor5-utils": "^26.0.0", | ||
"@ckeditor/ckeditor5-widget": "^26.0.0", | ||
"json-diff": "^0.5.4", | ||
"webpack": "^4.43.0", | ||
"webpack-cli": "^3.3.11" | ||
}, | ||
@@ -52,4 +58,8 @@ "engines": { | ||
"src", | ||
"theme" | ||
] | ||
"theme", | ||
"build" | ||
], | ||
"scripts": { | ||
"dll:build": "webpack" | ||
} | ||
} |
@@ -10,3 +10,3 @@ /** | ||
import Command from '@ckeditor/ckeditor5-core/src/command'; | ||
import { Command } from 'ckeditor5/src/core'; | ||
import { getColumnIndexes, getSelectionAffectedTableCells } from '../utils/selection'; | ||
@@ -13,0 +13,0 @@ |
@@ -10,3 +10,3 @@ /** | ||
import Command from '@ckeditor/ckeditor5-core/src/command'; | ||
import { Command } from 'ckeditor5/src/core'; | ||
import { getRowIndexes, getSelectionAffectedTableCells } from '../utils/selection'; | ||
@@ -13,0 +13,0 @@ |
@@ -10,4 +10,4 @@ /** | ||
import Command from '@ckeditor/ckeditor5-core/src/command'; | ||
import { findOptimalInsertionPosition } from '@ckeditor/ckeditor5-widget/src/utils'; | ||
import { Command } from 'ckeditor5/src/core'; | ||
import { findOptimalInsertionPosition, checkSelectionOnObject } from 'ckeditor5/src/widget'; | ||
@@ -34,5 +34,4 @@ /** | ||
const validParent = getInsertTableParent( selection.getFirstPosition() ); | ||
this.isEnabled = schema.checkChild( validParent, 'table' ); | ||
this.isEnabled = isAllowedInParent( selection, schema ) && | ||
!checkSelectionOnObject( selection, schema ); | ||
} | ||
@@ -69,9 +68,12 @@ | ||
// Returns valid parent to insert table | ||
// Checks if the table is allowed in the parent. | ||
// | ||
// @param {module:engine/model/position} position | ||
function getInsertTableParent( position ) { | ||
const parent = position.parent; | ||
// @param {module:engine/model/selection~Selection|module:engine/model/documentselection~DocumentSelection} selection | ||
// @param {module:engine/model/schema~Schema} schema | ||
// @returns {Boolean} | ||
function isAllowedInParent( selection, schema ) { | ||
const positionParent = selection.getFirstPosition().parent; | ||
const validParent = positionParent === positionParent.root ? positionParent : positionParent.parent; | ||
return parent === parent.root ? parent : parent.parent; | ||
return schema.checkChild( validParent, 'table' ); | ||
} |
@@ -10,3 +10,3 @@ /** | ||
import Command from '@ckeditor/ckeditor5-core/src/command'; | ||
import { Command } from 'ckeditor5/src/core'; | ||
import TableWalker from '../tablewalker'; | ||
@@ -13,0 +13,0 @@ import { getTableCellsContainingSelection } from '../utils/selection'; |
@@ -10,3 +10,3 @@ /** | ||
import Command from '@ckeditor/ckeditor5-core/src/command'; | ||
import { Command } from 'ckeditor5/src/core'; | ||
import TableUtils from '../tableutils'; | ||
@@ -13,0 +13,0 @@ import { getSelectedTableCells, isSelectionRectangular } from '../utils/selection'; |
@@ -10,3 +10,3 @@ /** | ||
import Command from '@ckeditor/ckeditor5-core/src/command'; | ||
import { Command } from 'ckeditor5/src/core'; | ||
@@ -13,0 +13,0 @@ import TableWalker from '../tablewalker'; |
@@ -10,3 +10,3 @@ /** | ||
import Command from '@ckeditor/ckeditor5-core/src/command'; | ||
import { Command } from 'ckeditor5/src/core'; | ||
@@ -13,0 +13,0 @@ import { getRowIndexes, getSelectionAffectedTableCells } from '../utils/selection'; |
@@ -10,3 +10,3 @@ /** | ||
import Command from '@ckeditor/ckeditor5-core/src/command'; | ||
import { Command } from 'ckeditor5/src/core'; | ||
@@ -13,0 +13,0 @@ import TableWalker from '../tablewalker'; |
@@ -10,3 +10,3 @@ /** | ||
import Command from '@ckeditor/ckeditor5-core/src/command'; | ||
import { Command } from 'ckeditor5/src/core'; | ||
@@ -13,0 +13,0 @@ import { getRowIndexes, getSelectionAffectedTableCells } from '../utils/selection'; |
@@ -10,3 +10,3 @@ /** | ||
import Command from '@ckeditor/ckeditor5-core/src/command'; | ||
import { Command } from 'ckeditor5/src/core'; | ||
@@ -13,0 +13,0 @@ import { |
@@ -10,3 +10,3 @@ /** | ||
import Command from '@ckeditor/ckeditor5-core/src/command'; | ||
import { Command } from 'ckeditor5/src/core'; | ||
@@ -13,0 +13,0 @@ import { updateNumericAttribute } from '../utils/common'; |
@@ -10,3 +10,3 @@ /** | ||
import Command from '@ckeditor/ckeditor5-core/src/command'; | ||
import { Command } from 'ckeditor5/src/core'; | ||
import { getSelectionAffectedTableCells } from '../utils/selection'; | ||
@@ -13,0 +13,0 @@ |
@@ -11,4 +11,4 @@ /** | ||
import TableWalker from './../tablewalker'; | ||
import { setHighlightHandling, toWidget, toWidgetEditable } from '@ckeditor/ckeditor5-widget/src/utils'; | ||
import toArray from '@ckeditor/ckeditor5-utils/src/toarray'; | ||
import { setHighlightHandling, toWidget, toWidgetEditable } from 'ckeditor5/src/widget'; | ||
import { toArray } from 'ckeditor5/src/utils'; | ||
@@ -383,3 +383,3 @@ /** | ||
// Additional requirement for data pipeline to have backward compatible data tables. | ||
if ( !asWidget && !hasAnyAttribute( firstChild ) && isSingleParagraph ) { | ||
if ( !asWidget && isSingleParagraph && !hasAnyAttribute( firstChild ) ) { | ||
const innerParagraph = tableCell.getChild( 0 ); | ||
@@ -386,0 +386,0 @@ |
@@ -88,2 +88,26 @@ /** | ||
/** | ||
* A converter that ensures an empty paragraph is inserted in a table cell if no other content was converted. | ||
* | ||
* @returns {Function} Conversion helper. | ||
*/ | ||
export function ensureParagraphInTableCell( elementName ) { | ||
return dispatcher => { | ||
dispatcher.on( `element:${ elementName }`, ( evt, data, conversionApi ) => { | ||
// The default converter will create a model range on converted table cell. | ||
if ( !data.modelRange ) { | ||
return; | ||
} | ||
// Ensure a paragraph in the model for empty table cells for converted table cells. | ||
if ( data.viewItem.isEmpty ) { | ||
const tableCell = data.modelRange.start.nodeAfter; | ||
const modelCursor = conversionApi.writer.createPositionAt( tableCell, 0 ); | ||
conversionApi.writer.insertElement( 'paragraph', modelCursor ); | ||
} | ||
}, { priority: 'low' } ); | ||
}; | ||
} | ||
// Scans table rows and extracts required metadata from the table: | ||
@@ -90,0 +114,0 @@ // |
@@ -10,3 +10,4 @@ /** | ||
import Plugin from '@ckeditor/ckeditor5-core/src/plugin'; | ||
import { Plugin } from 'ckeditor5/src/core'; | ||
import { Widget } from 'ckeditor5/src/widget'; | ||
@@ -19,3 +20,2 @@ import TableEditing from './tableediting'; | ||
import TableMouse from './tablemouse'; | ||
import Widget from '@ckeditor/ckeditor5-widget/src/widget'; | ||
@@ -22,0 +22,0 @@ import '../theme/table.css'; |
@@ -10,3 +10,3 @@ /** | ||
import Plugin from '@ckeditor/ckeditor5-core/src/plugin'; | ||
import { Plugin } from 'ckeditor5/src/core'; | ||
import TableCellPropertiesUI from './tablecellproperties/tablecellpropertiesui'; | ||
@@ -13,0 +13,0 @@ import TableCellPropertiesEditing from './tablecellproperties/tablecellpropertiesediting'; |
@@ -10,3 +10,3 @@ /** | ||
import Command from '@ckeditor/ckeditor5-core/src/command'; | ||
import { Command } from 'ckeditor5/src/core'; | ||
import { getSelectionAffectedTableCells } from '../../utils/selection'; | ||
@@ -13,0 +13,0 @@ |
@@ -10,6 +10,4 @@ /** | ||
import Plugin from '@ckeditor/ckeditor5-core/src/plugin'; | ||
import { addBorderRules } from '@ckeditor/ckeditor5-engine/src/view/styles/border'; | ||
import { addPaddingRules } from '@ckeditor/ckeditor5-engine/src/view/styles/padding'; | ||
import { addBackgroundRules } from '@ckeditor/ckeditor5-engine/src/view/styles/background'; | ||
import { Plugin } from 'ckeditor5/src/core'; | ||
import { addBorderRules, addPaddingRules, addBackgroundRules } from 'ckeditor5/src/engine'; | ||
@@ -16,0 +14,0 @@ import { downcastAttributeToStyle, upcastStyleToAttribute, upcastBorderStyles } from './../converters/tableproperties'; |
@@ -10,8 +10,6 @@ /** | ||
import Plugin from '@ckeditor/ckeditor5-core/src/plugin'; | ||
import ButtonView from '@ckeditor/ckeditor5-ui/src/button/buttonview'; | ||
import clickOutsideHandler from '@ckeditor/ckeditor5-ui/src/bindings/clickoutsidehandler'; | ||
import ContextualBalloon from '@ckeditor/ckeditor5-ui/src/panel/balloon/contextualballoon'; | ||
import { Plugin } from 'ckeditor5/src/core'; | ||
import { ButtonView, clickOutsideHandler, ContextualBalloon, getLocalizedColorOptions, normalizeColorOptions } from 'ckeditor5/src/ui'; | ||
import TableCellPropertiesView from './ui/tablecellpropertiesview'; | ||
import tableCellProperties from './../../theme/icons/table-cell-properties.svg'; | ||
import { | ||
@@ -25,6 +23,2 @@ colorFieldValidator, | ||
} from '../utils/ui/table-properties'; | ||
import { | ||
getLocalizedColorOptions, | ||
normalizeColorOptions | ||
} from '@ckeditor/ckeditor5-ui/src/colorgrid/utils'; | ||
import { debounce } from 'lodash-es'; | ||
@@ -34,2 +28,4 @@ import { getTableWidgetAncestor } from '../utils/ui/widget'; | ||
import tableCellProperties from './../../theme/icons/table-cell-properties.svg'; | ||
const ERROR_TEXT_TIMEOUT = 500; | ||
@@ -36,0 +32,0 @@ |
@@ -10,16 +10,19 @@ /** | ||
import View from '@ckeditor/ckeditor5-ui/src/view'; | ||
import ViewCollection from '@ckeditor/ckeditor5-ui/src/viewcollection'; | ||
import submitHandler from '@ckeditor/ckeditor5-ui/src/bindings/submithandler'; | ||
import { | ||
LabeledFieldView, | ||
createLabeledDropdown, | ||
createLabeledInputText, | ||
LabelView, | ||
addListToDropdown, | ||
ToolbarView, | ||
ButtonView, | ||
FocusCycler, | ||
View, | ||
ViewCollection, | ||
FormHeaderView, | ||
submitHandler | ||
} from 'ckeditor5/src/ui'; | ||
import { KeystrokeHandler, FocusTracker } from 'ckeditor5/src/utils'; | ||
import { icons } from 'ckeditor5/src/core'; | ||
import KeystrokeHandler from '@ckeditor/ckeditor5-utils/src/keystrokehandler'; | ||
import FocusTracker from '@ckeditor/ckeditor5-utils/src/focustracker'; | ||
import FocusCycler from '@ckeditor/ckeditor5-ui/src/focuscycler'; | ||
import LabeledFieldView from '@ckeditor/ckeditor5-ui/src/labeledfield/labeledfieldview'; | ||
import { createLabeledDropdown, createLabeledInputText } from '@ckeditor/ckeditor5-ui/src/labeledfield/utils'; | ||
import LabelView from '@ckeditor/ckeditor5-ui/src/label/labelview'; | ||
import { addListToDropdown } from '@ckeditor/ckeditor5-ui/src/dropdown/utils'; | ||
import ToolbarView from '@ckeditor/ckeditor5-ui/src/toolbar/toolbarview'; | ||
import ButtonView from '@ckeditor/ckeditor5-ui/src/button/buttonview'; | ||
import { | ||
@@ -33,14 +36,2 @@ fillToolbar, | ||
import FormHeaderView from '@ckeditor/ckeditor5-ui/src/formheader/formheaderview'; | ||
import checkIcon from '@ckeditor/ckeditor5-core/theme/icons/check.svg'; | ||
import cancelIcon from '@ckeditor/ckeditor5-core/theme/icons/cancel.svg'; | ||
import alignLeftIcon from '@ckeditor/ckeditor5-core/theme/icons/align-left.svg'; | ||
import alignRightIcon from '@ckeditor/ckeditor5-core/theme/icons/align-right.svg'; | ||
import alignCenterIcon from '@ckeditor/ckeditor5-core/theme/icons/align-center.svg'; | ||
import alignJustifyIcon from '@ckeditor/ckeditor5-core/theme/icons/align-justify.svg'; | ||
import alignTopIcon from '@ckeditor/ckeditor5-core/theme/icons/align-top.svg'; | ||
import alignMiddleIcon from '@ckeditor/ckeditor5-core/theme/icons/align-middle.svg'; | ||
import alignBottomIcon from '@ckeditor/ckeditor5-core/theme/icons/align-bottom.svg'; | ||
import '../../../theme/form.css'; | ||
@@ -51,9 +42,9 @@ import '../../../theme/tableform.css'; | ||
const ALIGNMENT_ICONS = { | ||
left: alignLeftIcon, | ||
center: alignCenterIcon, | ||
right: alignRightIcon, | ||
justify: alignJustifyIcon, | ||
top: alignTopIcon, | ||
middle: alignMiddleIcon, | ||
bottom: alignBottomIcon | ||
left: icons.alignLeft, | ||
center: icons.alignCenter, | ||
right: icons.alignRight, | ||
justify: icons.alignJustify, | ||
top: icons.alignTop, | ||
middle: icons.alignMiddle, | ||
bottom: icons.alignBottom | ||
}; | ||
@@ -774,3 +765,3 @@ | ||
label: t( 'Save' ), | ||
icon: checkIcon, | ||
icon: icons.check, | ||
class: 'ck-button-save', | ||
@@ -787,3 +778,3 @@ type: 'submit', | ||
label: t( 'Cancel' ), | ||
icon: cancelIcon, | ||
icon: icons.cancel, | ||
class: 'ck-button-cancel', | ||
@@ -790,0 +781,0 @@ type: 'cancel', |
@@ -10,3 +10,3 @@ /** | ||
import Plugin from '@ckeditor/ckeditor5-core/src/plugin'; | ||
import { Plugin } from 'ckeditor5/src/core'; | ||
@@ -13,0 +13,0 @@ import TableSelection from './tableselection'; |
@@ -10,5 +10,5 @@ /** | ||
import Plugin from '@ckeditor/ckeditor5-core/src/plugin'; | ||
import { Plugin } from 'ckeditor5/src/core'; | ||
import upcastTable, { skipEmptyTableRow } from './converters/upcasttable'; | ||
import upcastTable, { ensureParagraphInTableCell, skipEmptyTableRow } from './converters/upcasttable'; | ||
import { | ||
@@ -111,2 +111,4 @@ convertParagraphInTableCell, | ||
conversion.for( 'upcast' ).elementToElement( { model: 'tableCell', view: 'th' } ); | ||
conversion.for( 'upcast' ).add( ensureParagraphInTableCell( 'td' ) ); | ||
conversion.for( 'upcast' ).add( ensureParagraphInTableCell( 'th' ) ); | ||
@@ -113,0 +115,0 @@ conversion.for( 'editingDowncast' ).add( downcastInsertCell() ); |
@@ -13,8 +13,4 @@ /** | ||
import Plugin from '@ckeditor/ckeditor5-core/src/plugin'; | ||
import priorities from '@ckeditor/ckeditor5-utils/src/priorities'; | ||
import { | ||
isArrowKeyCode, | ||
getLocalizedArrowKeyCodeDirection | ||
} from '@ckeditor/ckeditor5-utils/src/keyboard'; | ||
import { Plugin } from 'ckeditor5/src/core'; | ||
import { priorities, isArrowKeyCode, getLocalizedArrowKeyCodeDirection } from 'ckeditor5/src/utils'; | ||
import { getSelectedTableCells, getTableCellsContainingSelection } from './utils/selection'; | ||
@@ -21,0 +17,0 @@ |
@@ -10,3 +10,3 @@ /** | ||
import Plugin from '@ckeditor/ckeditor5-core/src/plugin'; | ||
import { Plugin } from 'ckeditor5/src/core'; | ||
@@ -13,0 +13,0 @@ import TableSelection from './tableselection'; |
@@ -10,3 +10,3 @@ /** | ||
import DomEventObserver from '@ckeditor/ckeditor5-engine/src/view/observer/domeventobserver'; | ||
import { DomEventObserver } from 'ckeditor5/src/engine'; | ||
@@ -13,0 +13,0 @@ /** |
@@ -10,3 +10,3 @@ /** | ||
import Plugin from '@ckeditor/ckeditor5-core/src/plugin'; | ||
import { Plugin } from 'ckeditor5/src/core'; | ||
@@ -13,0 +13,0 @@ import TablePropertiesEditing from './tableproperties/tablepropertiesediting'; |
@@ -10,3 +10,3 @@ /** | ||
import Command from '@ckeditor/ckeditor5-core/src/command'; | ||
import { Command } from 'ckeditor5/src/core'; | ||
@@ -13,0 +13,0 @@ /** |
@@ -10,5 +10,4 @@ /** | ||
import Plugin from '@ckeditor/ckeditor5-core/src/plugin'; | ||
import { addBorderRules } from '@ckeditor/ckeditor5-engine/src/view/styles/border'; | ||
import { addBackgroundRules } from '@ckeditor/ckeditor5-engine/src/view/styles/background'; | ||
import { Plugin } from 'ckeditor5/src/core'; | ||
import { addBackgroundRules, addBorderRules } from 'ckeditor5/src/engine'; | ||
@@ -15,0 +14,0 @@ import TableEditing from '../tableediting'; |
@@ -10,6 +10,7 @@ /** | ||
import Plugin from '@ckeditor/ckeditor5-core/src/plugin'; | ||
import ButtonView from '@ckeditor/ckeditor5-ui/src/button/buttonview'; | ||
import clickOutsideHandler from '@ckeditor/ckeditor5-ui/src/bindings/clickoutsidehandler'; | ||
import ContextualBalloon from '@ckeditor/ckeditor5-ui/src/panel/balloon/contextualballoon'; | ||
import { Plugin } from 'ckeditor5/src/core'; | ||
import { ButtonView, ContextualBalloon, clickOutsideHandler, getLocalizedColorOptions, normalizeColorOptions } from 'ckeditor5/src/ui'; | ||
import { debounce } from 'lodash-es'; | ||
import TablePropertiesView from './ui/tablepropertiesview'; | ||
@@ -25,7 +26,2 @@ import tableProperties from './../../theme/icons/table-properties.svg'; | ||
} from '../utils/ui/table-properties'; | ||
import { | ||
getLocalizedColorOptions, | ||
normalizeColorOptions | ||
} from '@ckeditor/ckeditor5-ui/src/colorgrid/utils'; | ||
import { debounce } from 'lodash-es'; | ||
import { getTableWidgetAncestor } from '../utils/ui/widget'; | ||
@@ -32,0 +28,0 @@ import { getBalloonTablePositionData, repositionContextualBalloon } from '../utils/ui/contextualballoon'; |
@@ -10,16 +10,19 @@ /** | ||
import View from '@ckeditor/ckeditor5-ui/src/view'; | ||
import ViewCollection from '@ckeditor/ckeditor5-ui/src/viewcollection'; | ||
import submitHandler from '@ckeditor/ckeditor5-ui/src/bindings/submithandler'; | ||
import { | ||
ButtonView, | ||
FocusCycler, | ||
FormHeaderView, | ||
LabelView, | ||
LabeledFieldView, | ||
ToolbarView, | ||
View, | ||
ViewCollection, | ||
addListToDropdown, | ||
createLabeledDropdown, | ||
createLabeledInputText, | ||
submitHandler | ||
} from 'ckeditor5/src/ui'; | ||
import { FocusTracker, KeystrokeHandler } from 'ckeditor5/src/utils'; | ||
import { icons } from 'ckeditor5/src/core'; | ||
import KeystrokeHandler from '@ckeditor/ckeditor5-utils/src/keystrokehandler'; | ||
import FocusTracker from '@ckeditor/ckeditor5-utils/src/focustracker'; | ||
import FocusCycler from '@ckeditor/ckeditor5-ui/src/focuscycler'; | ||
import LabeledFieldView from '@ckeditor/ckeditor5-ui/src/labeledfield/labeledfieldview'; | ||
import { createLabeledDropdown, createLabeledInputText } from '@ckeditor/ckeditor5-ui/src/labeledfield/utils'; | ||
import LabelView from '@ckeditor/ckeditor5-ui/src/label/labelview'; | ||
import { addListToDropdown } from '@ckeditor/ckeditor5-ui/src/dropdown/utils'; | ||
import ToolbarView from '@ckeditor/ckeditor5-ui/src/toolbar/toolbarview'; | ||
import ButtonView from '@ckeditor/ckeditor5-ui/src/button/buttonview'; | ||
import { | ||
@@ -33,10 +36,2 @@ fillToolbar, | ||
import FormHeaderView from '@ckeditor/ckeditor5-ui/src/formheader/formheaderview'; | ||
import checkIcon from '@ckeditor/ckeditor5-core/theme/icons/check.svg'; | ||
import cancelIcon from '@ckeditor/ckeditor5-core/theme/icons/cancel.svg'; | ||
import objectLeftIcon from '@ckeditor/ckeditor5-core/theme/icons/object-left.svg'; | ||
import objectRightIcon from '@ckeditor/ckeditor5-core/theme/icons/object-right.svg'; | ||
import objectCenterIcon from '@ckeditor/ckeditor5-core/theme/icons/object-center.svg'; | ||
import '../../../theme/form.css'; | ||
@@ -47,5 +42,5 @@ import '../../../theme/tableform.css'; | ||
const ALIGNMENT_ICONS = { | ||
left: objectLeftIcon, | ||
center: objectCenterIcon, | ||
right: objectRightIcon | ||
left: icons.objectLeft, | ||
center: icons.objectCenter, | ||
right: icons.objectRight | ||
}; | ||
@@ -672,3 +667,3 @@ | ||
label: t( 'Save' ), | ||
icon: checkIcon, | ||
icon: icons.check, | ||
class: 'ck-button-save', | ||
@@ -685,3 +680,3 @@ type: 'submit', | ||
label: t( 'Cancel' ), | ||
icon: cancelIcon, | ||
icon: icons.cancel, | ||
class: 'ck-button-cancel', | ||
@@ -688,0 +683,0 @@ type: 'cancel', |
@@ -10,4 +10,4 @@ /** | ||
import Plugin from '@ckeditor/ckeditor5-core/src/plugin'; | ||
import first from '@ckeditor/ckeditor5-utils/src/first'; | ||
import { Plugin } from 'ckeditor5/src/core'; | ||
import { first } from 'ckeditor5/src/utils'; | ||
@@ -14,0 +14,0 @@ import TableWalker from './tablewalker'; |
@@ -10,4 +10,4 @@ /** | ||
import Plugin from '@ckeditor/ckeditor5-core/src/plugin'; | ||
import WidgetToolbarRepository from '@ckeditor/ckeditor5-widget/src/widgettoolbarrepository'; | ||
import { Plugin } from 'ckeditor5/src/core'; | ||
import { WidgetToolbarRepository } from 'ckeditor5/src/widget'; | ||
import { getSelectedTableWidget, getTableWidgetAncestor } from './utils/ui/widget'; | ||
@@ -14,0 +14,0 @@ |
@@ -10,7 +10,5 @@ /** | ||
import Plugin from '@ckeditor/ckeditor5-core/src/plugin'; | ||
import { addListToDropdown, createDropdown } from '@ckeditor/ckeditor5-ui/src/dropdown/utils'; | ||
import SplitButtonView from '@ckeditor/ckeditor5-ui/src/dropdown/button/splitbuttonview'; | ||
import Model from '@ckeditor/ckeditor5-ui/src/model'; | ||
import Collection from '@ckeditor/ckeditor5-utils/src/collection'; | ||
import { Plugin } from 'ckeditor5/src/core'; | ||
import { addListToDropdown, createDropdown, Model, SplitButtonView } from 'ckeditor5/src/ui'; | ||
import { Collection } from 'ckeditor5/src/utils'; | ||
@@ -40,2 +38,9 @@ import InsertTableView from './ui/inserttableview'; | ||
*/ | ||
static get pluginName() { | ||
return 'TableUI'; | ||
} | ||
/** | ||
* @inheritDoc | ||
*/ | ||
init() { | ||
@@ -42,0 +47,0 @@ const editor = this.editor; |
@@ -10,3 +10,3 @@ /** | ||
import Plugin from '@ckeditor/ckeditor5-core/src/plugin'; | ||
import { Plugin } from 'ckeditor5/src/core'; | ||
@@ -13,0 +13,0 @@ import TableWalker from './tablewalker'; |
@@ -10,3 +10,3 @@ /** | ||
// @if CK_DEBUG // import CKEditorError from '@ckeditor/ckeditor5-utils/src/ckeditorerror'; | ||
// @if CK_DEBUG // import { CKEditorError } from 'ckeditor5/src/utils'; | ||
@@ -13,0 +13,0 @@ /** |
@@ -10,8 +10,5 @@ /** | ||
import View from '@ckeditor/ckeditor5-ui/src/view'; | ||
import InputTextView from '@ckeditor/ckeditor5-ui/src/inputtext/inputtextview'; | ||
import ButtonView from '@ckeditor/ckeditor5-ui/src/button/buttonview'; | ||
import { createDropdown } from '@ckeditor/ckeditor5-ui/src/dropdown/utils'; | ||
import ColorGrid from '@ckeditor/ckeditor5-ui/src/colorgrid/colorgridview'; | ||
import removeButtonIcon from '@ckeditor/ckeditor5-core/theme/icons/eraser.svg'; | ||
import { View, InputTextView, ButtonView, createDropdown, ColorGridView } from 'ckeditor5/src/ui'; | ||
import { icons } from 'ckeditor5/src/core'; | ||
import '../../theme/colorinput.css'; | ||
@@ -273,3 +270,3 @@ | ||
removeColorButton.withText = true; | ||
removeColorButton.icon = removeButtonIcon; | ||
removeColorButton.icon = icons.eraser; | ||
removeColorButton.label = t( 'Remove color' ); | ||
@@ -291,3 +288,3 @@ removeColorButton.on( 'execute', () => { | ||
_createColorGrid( locale ) { | ||
const colorGrid = new ColorGrid( locale, { | ||
const colorGrid = new ColorGridView( locale, { | ||
colorDefinitions: this.options.colorDefinitions, | ||
@@ -294,0 +291,0 @@ columns: this.options.columns |
@@ -10,3 +10,3 @@ /** | ||
import View from '@ckeditor/ckeditor5-ui/src/view'; | ||
import { View } from 'ckeditor5/src/ui'; | ||
@@ -13,0 +13,0 @@ import '../../theme/formrow.css'; |
@@ -10,3 +10,3 @@ /** | ||
import View from '@ckeditor/ckeditor5-ui/src/view'; | ||
import { View } from 'ckeditor5/src/ui'; | ||
@@ -13,0 +13,0 @@ import './../../theme/inserttable.css'; |
@@ -10,6 +10,7 @@ /** | ||
import { centeredBalloonPositionForLongWidgets } from '@ckeditor/ckeditor5-widget/src/utils'; | ||
import Rect from '@ckeditor/ckeditor5-utils/src/dom/rect'; | ||
import { centeredBalloonPositionForLongWidgets } from 'ckeditor5/src/widget'; | ||
import { Rect } from 'ckeditor5/src/utils'; | ||
import { BalloonPanelView } from 'ckeditor5/src/ui'; | ||
import { getTableWidgetAncestor } from './widget'; | ||
import BalloonPanelView from '@ckeditor/ckeditor5-ui/src/panel/balloon/balloonpanelview'; | ||
@@ -16,0 +17,0 @@ const DEFAULT_BALLOON_POSITIONS = BalloonPanelView.defaultPositions; |
@@ -10,7 +10,7 @@ /** | ||
import ButtonView from '@ckeditor/ckeditor5-ui/src/button/buttonview'; | ||
import Collection from '@ckeditor/ckeditor5-utils/src/collection'; | ||
import Model from '@ckeditor/ckeditor5-ui/src/model'; | ||
import { ButtonView, Model } from 'ckeditor5/src/ui'; | ||
import { Collection } from 'ckeditor5/src/utils'; | ||
import { isColor, isLength, isPercentage } from 'ckeditor5/src/engine'; | ||
import ColorInputView from '../../ui/colorinputview'; | ||
import { isColor, isLength, isPercentage } from '@ckeditor/ckeditor5-engine/src/view/styles/utils'; | ||
@@ -17,0 +17,0 @@ const isEmpty = val => val === ''; |
@@ -10,3 +10,3 @@ /** | ||
import { isWidget } from '@ckeditor/ckeditor5-widget/src/utils'; | ||
import { isWidget } from 'ckeditor5/src/widget'; | ||
@@ -13,0 +13,0 @@ /** |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2441675
2
137
11118
22
+ Addedckeditor5@^26.0.0
+ Added@ckeditor/ckeditor5-clipboard@26.0.0(transitive)
+ Added@ckeditor/ckeditor5-core@26.0.0(transitive)
+ Added@ckeditor/ckeditor5-engine@26.0.0(transitive)
+ Added@ckeditor/ckeditor5-enter@26.0.0(transitive)
+ Added@ckeditor/ckeditor5-paragraph@26.0.0(transitive)
+ Added@ckeditor/ckeditor5-select-all@26.0.0(transitive)
+ Added@ckeditor/ckeditor5-typing@26.0.0(transitive)
+ Added@ckeditor/ckeditor5-ui@26.0.0(transitive)
+ Added@ckeditor/ckeditor5-undo@26.0.0(transitive)
+ Added@ckeditor/ckeditor5-upload@26.0.0(transitive)
+ Added@ckeditor/ckeditor5-utils@26.0.0(transitive)
+ Added@ckeditor/ckeditor5-widget@26.0.0(transitive)
+ Addedckeditor5@26.0.0(transitive)
- Removed@ckeditor/ckeditor5-core@^25.0.0
- Removed@ckeditor/ckeditor5-engine@^25.0.0
- Removed@ckeditor/ckeditor5-ui@^25.0.0
- Removed@ckeditor/ckeditor5-utils@^25.0.0
- Removed@ckeditor/ckeditor5-widget@^25.0.0
- Removed@ckeditor/ckeditor5-core@25.0.0(transitive)
- Removed@ckeditor/ckeditor5-engine@25.0.0(transitive)
- Removed@ckeditor/ckeditor5-typing@25.0.0(transitive)
- Removed@ckeditor/ckeditor5-ui@25.0.0(transitive)
- Removed@ckeditor/ckeditor5-utils@25.0.0(transitive)
- Removed@ckeditor/ckeditor5-widget@25.0.0(transitive)