@ckeditor/ckeditor5-table 0.0.0-nightly-20251218.0 → 0.0.0-nightly-20251220.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
@@ -2205,7 +2205,7 @@ const downcastTableAlignmentConfig = {
2205
2205
  *
2206
2206
  * @param table Table model element.
2207
2207
  * @param conversionApi The conversion API object.
2208
- * @param defaultTableProperties Normalized default table properties.
2208
+ * @param editor The editor instance.
2209
2209
  * @returns Created element.
2210
2210
  */ function downcastPlainTable(table, conversionApi, editor) {
2211
2211
  const writer = conversionApi.writer;
@@ -5571,6 +5571,14 @@ function getMaxOffset(tableCell, start, currentMaxOffset, which) {
5571
5571
  // Define the config.
5572
5572
  editor.config.define('table.defaultHeadings.rows', 0);
5573
5573
  editor.config.define('table.defaultHeadings.columns', 0);
5574
+ editor.config.define('table.showHiddenBorders', true);
5575
+ if (editor.config.get('table.showHiddenBorders')) {
5576
+ editor.editing.view.change((writer)=>{
5577
+ for (const root of editor.editing.view.document.roots){
5578
+ writer.addClass('ck-table-show-hidden-borders', root);
5579
+ }
5580
+ });
5581
+ }
5574
5582
  // Define all the commands.
5575
5583
  editor.commands.add('insertTable', new InsertTableCommand(editor));
5576
5584
  editor.commands.add('insertTableRowAbove', new InsertRowCommand(editor, {