This commit is contained in:
RobertNafikov 2023-10-28 16:56:40 +08:00 committed by GitHub
commit ca821024e7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 2 deletions

View file

@ -475,6 +475,11 @@ export default class UI extends Module<UINodes> {
*/
this.Editor.BlockManager.dropPointer();
/**
* Close InlineToolbar
*/
this.Editor.InlineToolbar.close();
/**
* Close Toolbar
*/
@ -485,7 +490,12 @@ export default class UI extends Module<UINodes> {
* @param {KeyboardEvent} event - keyboard event
*/
private backspacePressed(event: KeyboardEvent): void {
const { BlockManager, BlockSelection, Caret } = this.Editor;
const { BlockManager, BlockSelection, Caret, InlineToolbar } = this.Editor;
/**
* Close InlineToolbar
*/
InlineToolbar.close();
/**
* If any block selected and selection doesn't exists on the page (that means no other editable element is focused),

View file

@ -14,7 +14,11 @@
&--showed {
opacity: 1;
visibility: visible;
transform: translateX(-50%)
transform: translateX(-50%);
}
&:not(&--showed) {
top: 0 !important;
}
&--left-oriented {