@worktile/theia 14.2.26 → 14.2.28
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/esm2020/components/plugin-menu/plugin-menu.component.mjs +6 -7
- package/esm2020/plugins/table/components/table.component.mjs +3 -2
- package/fesm2015/worktile-theia.mjs +7 -6
- package/fesm2015/worktile-theia.mjs.map +1 -1
- package/fesm2020/worktile-theia.mjs +7 -5
- package/fesm2020/worktile-theia.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -10297,15 +10297,14 @@ class ThePluginMenuComponent extends mixinUnsubscribe(MixinBase) {
|
|
|
10297
10297
|
this.tableSelectPopoverConfig = {
|
|
10298
10298
|
panelClass: 'plugin-menu-table-select-container',
|
|
10299
10299
|
minWidth: 0,
|
|
10300
|
-
|
|
10300
|
+
// 避免重写
|
|
10301
10301
|
originActiveClass: 'thy-popover-origin-active'
|
|
10302
10302
|
};
|
|
10303
10303
|
this.containerClassName = `the-plugin-menu-container`;
|
|
10304
10304
|
this.theDisplaySearch = false;
|
|
10305
10305
|
this.removeKeywords = () => {
|
|
10306
|
-
const hotkey = getPluginOptions(this.editor, PluginKeys.quickInsert)?.hotkey;
|
|
10307
10306
|
const node = Node.get(this.editor, this.editor.selection.anchor.path);
|
|
10308
|
-
if (node &&
|
|
10307
|
+
if (node && Node.string(node).length > 0) {
|
|
10309
10308
|
Editor.deleteBackward(this.editor, { unit: 'block' });
|
|
10310
10309
|
}
|
|
10311
10310
|
};
|
|
@@ -10386,7 +10385,9 @@ class ThePluginMenuComponent extends mixinUnsubscribe(MixinBase) {
|
|
|
10386
10385
|
if (!this.editor.selection) {
|
|
10387
10386
|
refocus(this.editor);
|
|
10388
10387
|
}
|
|
10389
|
-
this.
|
|
10388
|
+
if (!this.theDisplaySearch) {
|
|
10389
|
+
this.removeKeywords();
|
|
10390
|
+
}
|
|
10390
10391
|
menuItem.execute(this.editor);
|
|
10391
10392
|
this.thyPopoverRef.close();
|
|
10392
10393
|
QuickInsertEditor.updatePluginMenuRef(this.editor, null);
|
|
@@ -12357,7 +12358,8 @@ class TheTableComponent extends TheBaseElementComponent {
|
|
|
12357
12358
|
if (this.element.columns) {
|
|
12358
12359
|
const columns = [];
|
|
12359
12360
|
this.tableWrapper.nativeElement.querySelectorAll('col').forEach((ele) => {
|
|
12360
|
-
|
|
12361
|
+
// Compatible with the problem that the width cannot be obtained under safari #WIK-9643
|
|
12362
|
+
columns.push({ width: ele.clientWidth || coercePixelsFromCssValue(ele.style.width) });
|
|
12361
12363
|
});
|
|
12362
12364
|
// Editor container width changes, resulting in column widths no longer valid #WIK-6766
|
|
12363
12365
|
const warning = this.element.columns.some((col, index) => col.width !== columns[index]?.width);
|