@quadrats/common 1.1.0 → 1.1.1
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 +1 -1
- package/table/createTable.js +2 -4
- package/table/index.cjs.js +2 -4
package/package.json
CHANGED
package/table/createTable.js
CHANGED
|
@@ -381,10 +381,8 @@ function createTable(options = {}) {
|
|
|
381
381
|
});
|
|
382
382
|
if (cellEntry) {
|
|
383
383
|
const [, cellPath] = cellEntry;
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
if (!cellText.trim() && Editor.isStart(editor, selection.anchor, cellPath)) {
|
|
387
|
-
// 在空的 table_cell 開頭按 backspace,不執行任何操作
|
|
384
|
+
if (Editor.isStart(editor, selection.anchor, cellPath)) {
|
|
385
|
+
// 在 table_cell 開頭按 backspace,不執行任何操作
|
|
388
386
|
return;
|
|
389
387
|
}
|
|
390
388
|
}
|
package/table/index.cjs.js
CHANGED
|
@@ -645,10 +645,8 @@ function createTable(options = {}) {
|
|
|
645
645
|
});
|
|
646
646
|
if (cellEntry) {
|
|
647
647
|
const [, cellPath] = cellEntry;
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
if (!cellText.trim() && core.Editor.isStart(editor, selection.anchor, cellPath)) {
|
|
651
|
-
// 在空的 table_cell 開頭按 backspace,不執行任何操作
|
|
648
|
+
if (core.Editor.isStart(editor, selection.anchor, cellPath)) {
|
|
649
|
+
// 在 table_cell 開頭按 backspace,不執行任何操作
|
|
652
650
|
return;
|
|
653
651
|
}
|
|
654
652
|
}
|