@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-table",
3
- "version": "0.0.0-nightly-20251218.0",
3
+ "version": "0.0.0-nightly-20251220.0",
4
4
  "description": "Table feature for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -13,14 +13,14 @@
13
13
  "type": "module",
14
14
  "main": "src/index.js",
15
15
  "dependencies": {
16
- "ckeditor5": "0.0.0-nightly-20251218.0",
17
- "@ckeditor/ckeditor5-clipboard": "0.0.0-nightly-20251218.0",
18
- "@ckeditor/ckeditor5-core": "0.0.0-nightly-20251218.0",
19
- "@ckeditor/ckeditor5-engine": "0.0.0-nightly-20251218.0",
20
- "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251218.0",
21
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251218.0",
22
- "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251218.0",
23
- "@ckeditor/ckeditor5-widget": "0.0.0-nightly-20251218.0",
16
+ "ckeditor5": "0.0.0-nightly-20251220.0",
17
+ "@ckeditor/ckeditor5-clipboard": "0.0.0-nightly-20251220.0",
18
+ "@ckeditor/ckeditor5-core": "0.0.0-nightly-20251220.0",
19
+ "@ckeditor/ckeditor5-engine": "0.0.0-nightly-20251220.0",
20
+ "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251220.0",
21
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251220.0",
22
+ "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251220.0",
23
+ "@ckeditor/ckeditor5-widget": "0.0.0-nightly-20251220.0",
24
24
  "es-toolkit": "1.39.5"
25
25
  },
26
26
  "author": "CKSource (http://cksource.com/)",
@@ -77,7 +77,7 @@ export declare function convertPlainTableCaption(editor: Editor): DowncastElemen
77
77
  *
78
78
  * @param table Table model element.
79
79
  * @param conversionApi The conversion API object.
80
- * @param defaultTableProperties Normalized default table properties.
80
+ * @param editor The editor instance.
81
81
  * @returns Created element.
82
82
  */
83
83
  export declare function downcastPlainTable(table: ModelElement, conversionApi: DowncastConversionApi, editor: Editor): ViewElement;
@@ -205,7 +205,7 @@ export function convertPlainTableCaption(editor) {
205
205
  *
206
206
  * @param table Table model element.
207
207
  * @param conversionApi The conversion API object.
208
- * @param defaultTableProperties Normalized default table properties.
208
+ * @param editor The editor instance.
209
209
  * @returns Created element.
210
210
  */
211
211
  export function downcastPlainTable(table, conversionApi, editor) {
@@ -220,6 +220,24 @@ export interface TableConfig {
220
220
  * ```
221
221
  */
222
222
  tableCaption?: TableCaptionConfig;
223
+ /**
224
+ * When set to `true` (default), the editor visually displays dashed borders around table elements (`<table>`, `<td>`, `<th>`)
225
+ * that contain inline styles explicitly removing borders (for example: `border: none`, `border-top-style: none`, etc.).
226
+ *
227
+ * This visualization is shown **only in the editing view**.
228
+ * It does not modify the underlying table data or the HTML produced by the editor.
229
+ * When set to `false`, the editor will not render any dashed borders, and elements with `border: none`
230
+ * will remain visually borderless during editing.
231
+ *
232
+ * ```ts
233
+ * const tableConfig = {
234
+ * showHiddenBorders: false
235
+ * };
236
+ * ```
237
+ *
238
+ * @default true
239
+ */
240
+ showHiddenBorders?: boolean;
223
241
  }
224
242
  /**
225
243
  * The configuration of the table properties user interface (balloon).
@@ -159,6 +159,14 @@ export class TableEditing extends Plugin {
159
159
  // Define the config.
160
160
  editor.config.define('table.defaultHeadings.rows', 0);
161
161
  editor.config.define('table.defaultHeadings.columns', 0);
162
+ editor.config.define('table.showHiddenBorders', true);
163
+ if (editor.config.get('table.showHiddenBorders')) {
164
+ editor.editing.view.change(writer => {
165
+ for (const root of editor.editing.view.document.roots) {
166
+ writer.addClass('ck-table-show-hidden-borders', root);
167
+ }
168
+ });
169
+ }
162
170
  // Define all the commands.
163
171
  editor.commands.add('insertTable', new InsertTableCommand(editor));
164
172
  editor.commands.add('insertTableRowAbove', new InsertRowCommand(editor, { order: 'above' }));