@worktile/theia 19.2.0 → 19.2.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.
|
@@ -2015,8 +2015,16 @@ class TheBaseElement extends BaseElementComponent {
|
|
|
2015
2015
|
this.nativeElement.classList.add(`slate-element-${this.element.type}`, blockClass);
|
|
2016
2016
|
if (this.editor) {
|
|
2017
2017
|
const isVisible = this.editor.isVisible(this.element);
|
|
2018
|
+
const isBlockCard = this.editor.isBlockCard(this.element);
|
|
2018
2019
|
if (!isVisible) {
|
|
2019
|
-
|
|
2020
|
+
if (isBlockCard) {
|
|
2021
|
+
setTimeout(() => {
|
|
2022
|
+
toggleHeadingRelatedElement(this.editor, this.element, isVisible);
|
|
2023
|
+
}, 0);
|
|
2024
|
+
}
|
|
2025
|
+
else {
|
|
2026
|
+
toggleHeadingRelatedElement(this.editor, this.element, isVisible);
|
|
2027
|
+
}
|
|
2020
2028
|
}
|
|
2021
2029
|
}
|
|
2022
2030
|
}
|