@ckeditor/ckeditor5-table 0.0.0-nightly-20250505.0 → 0.0.0-nightly-20250507.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -5374,6 +5374,8 @@ function getMaxOffset(tableCell, start, currentMaxOffset, which) {
5374
5374
  const mapper = editor.editing.mapper;
5375
5375
  const viewRanges = selectedCells.map((tableCell)=>view.createRangeOn(mapper.toViewElement(tableCell)));
5376
5376
  data.selection = view.createSelection(viewRanges);
5377
+ // Do not let the browser handle it itself. We must modify the model and then apply changes to the view and DOM.
5378
+ data.preventDefault();
5377
5379
  }
5378
5380
  /**
5379
5381
  * Returns an array of table cells that should be selected based on the
@@ -7070,7 +7072,14 @@ const isEmpty = (val)=>val === '';
7070
7072
  * * have some icons,
7071
7073
  * * set a certain UI view property value upon execution.
7072
7074
  *
7073
- * @param nameToValue A function that maps a button name to a value. By default names are the same as values.
7075
+ * @param options Configuration options
7076
+ * @param options.view The view that has the observable property.
7077
+ * @param options.icons Object with button icons.
7078
+ * @param options.toolbar The toolbar to fill with buttons.
7079
+ * @param options.labels Object with button labels.
7080
+ * @param options.propertyName The name of the observable property in the view.
7081
+ * @param options.nameToValue A function that maps a button name to a value. By default names are the same as values.
7082
+ * @param options.defaultValue Default value for the property.
7074
7083
  */ function fillToolbar(options) {
7075
7084
  const { view, icons, toolbar, labels, propertyName, nameToValue, defaultValue } = options;
7076
7085
  for(const name in labels){
@@ -8395,7 +8404,7 @@ const propertyToCommandMap$1 = {
8395
8404
  * Creates a callback that when executed upon the {@link #view view's} property change
8396
8405
  * executes a related editor command with the new property value.
8397
8406
  *
8398
- * @param defaultValue The default value of the command.
8407
+ * @param commandName The default value of the command.
8399
8408
  */ _getPropertyChangeCallback(commandName) {
8400
8409
  return (evt, propertyName, newValue)=>{
8401
8410
  if (!this._isReady) {