@worktile/theia 16.1.6 → 16.1.7
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/plugins/quick-insert/components/quick-insert.component.mjs +14 -18
- package/fesm2015/worktile-theia.mjs +13 -17
- package/fesm2015/worktile-theia.mjs.map +1 -1
- package/fesm2020/worktile-theia.mjs +13 -17
- package/fesm2020/worktile-theia.mjs.map +1 -1
- package/package.json +1 -1
- package/plugins/quick-insert/components/quick-insert.component.d.ts +1 -2
|
@@ -15879,34 +15879,30 @@ class TheQuickInsertComponent {
|
|
|
15879
15879
|
if (this.editor && this.editor.options && !this.editor.options.readonly) {
|
|
15880
15880
|
// wait isOpenedMenu is updated
|
|
15881
15881
|
setTimeout(() => {
|
|
15882
|
-
this.
|
|
15882
|
+
this.updateIconDisplay();
|
|
15883
15883
|
}, 0);
|
|
15884
15884
|
}
|
|
15885
15885
|
};
|
|
15886
|
-
this.
|
|
15886
|
+
this.updateIconDisplay();
|
|
15887
15887
|
}
|
|
15888
15888
|
ngOnChanges(changes) {
|
|
15889
15889
|
if (changes.isVisible && !changes.isVisible.firstChange) {
|
|
15890
|
-
this.
|
|
15890
|
+
this.updateIconDisplay();
|
|
15891
15891
|
}
|
|
15892
15892
|
}
|
|
15893
|
-
|
|
15893
|
+
updateIconDisplay() {
|
|
15894
15894
|
const { editor } = this;
|
|
15895
|
-
|
|
15895
|
+
if (this.isVisible &&
|
|
15896
15896
|
!QuickInsertEditor.isOpenedMenu(editor) &&
|
|
15897
15897
|
isCleanEmptyParagraph(editor) &&
|
|
15898
15898
|
!this.hasExcludeAttribute() &&
|
|
15899
|
-
!this.isRichMediaScope()
|
|
15900
|
-
|
|
15901
|
-
|
|
15902
|
-
|
|
15903
|
-
|
|
15904
|
-
const rootNode = AngularEditor.toDOMNode(editor, block);
|
|
15905
|
-
this.updatePosition(rootNode.offsetLeft, rootNode.offsetTop);
|
|
15906
|
-
return;
|
|
15907
|
-
}
|
|
15908
|
-
this.addHiddenClass();
|
|
15899
|
+
!this.isRichMediaScope()) {
|
|
15900
|
+
const block = Node.ancestor(editor, [editor?.selection?.anchor.path[0]]);
|
|
15901
|
+
const rootNode = AngularEditor.toDOMNode(editor, block);
|
|
15902
|
+
this.updatePosition(rootNode.offsetLeft, rootNode.offsetTop);
|
|
15903
|
+
return;
|
|
15909
15904
|
}
|
|
15905
|
+
this.addHiddenClass();
|
|
15910
15906
|
}
|
|
15911
15907
|
addHiddenClass() {
|
|
15912
15908
|
this.elementRef.nativeElement.classList.add('d-none');
|
|
@@ -15952,9 +15948,9 @@ class TheQuickInsertComponent {
|
|
|
15952
15948
|
QuickInsertEditor.openMenu(this.editor)
|
|
15953
15949
|
.afterClosed()
|
|
15954
15950
|
.subscribe(() => {
|
|
15955
|
-
this.
|
|
15951
|
+
this.updateIconDisplay();
|
|
15956
15952
|
});
|
|
15957
|
-
this.
|
|
15953
|
+
this.updateIconDisplay();
|
|
15958
15954
|
}, 100);
|
|
15959
15955
|
}
|
|
15960
15956
|
}
|