mirror of
https://github.com/codex-team/editor.js
synced 2024-06-09 09:22:16 +02:00
Merge cadba911d9
into ee188bfe5d
This commit is contained in:
commit
ca821024e7
|
@ -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),
|
||||
|
|
|
@ -14,7 +14,11 @@
|
|||
&--showed {
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
transform: translateX(-50%)
|
||||
transform: translateX(-50%);
|
||||
}
|
||||
|
||||
&:not(&--showed) {
|
||||
top: 0 !important;
|
||||
}
|
||||
|
||||
&--left-oriented {
|
||||
|
|
Loading…
Reference in a new issue