@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/build/table.js +1 -1
- package/dist/index.js +9 -1
- package/dist/index.js.map +1 -1
- package/package.json +9 -9
- package/src/converters/downcast.d.ts +1 -1
- package/src/converters/downcast.js +1 -1
- package/src/tableconfig.d.ts +18 -0
- package/src/tableediting.js +8 -0
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
|
|
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, {
|