Skip to content

Commit

Permalink
Fix issue #374
Browse files Browse the repository at this point in the history
  • Loading branch information
gohabereg@gmail.com committed Aug 3, 2018
1 parent a58c8d2 commit 5bc3d62
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions build/codex-editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -15012,6 +15012,7 @@ var BlockManager = function (_Module) {
index = this.currentBlockIndex;
}
this._blocks.remove(index);
this.currentBlockIndex--;
}

/**
Expand Down Expand Up @@ -20159,6 +20160,10 @@ var UI = function (_Module) {
* */
this.Editor.Toolbar.plusButton.hide();

if (!this.Editor.BlockManager.currentBlock) {
this.Editor.BlockManager.insert();
}

/**
* Show the Plus Button if:
* - Block is an initial-block (Text)
Expand Down
2 changes: 1 addition & 1 deletion build/codex-editor.js.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/components/modules/blockManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ export default class BlockManager extends Module {
index = this.currentBlockIndex;
}
this._blocks.remove(index);
this.currentBlockIndex--;
}

/**
Expand Down
4 changes: 4 additions & 0 deletions src/components/modules/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,10 @@ export default class UI extends Module {
* */
this.Editor.Toolbar.plusButton.hide();

if (!this.Editor.BlockManager.currentBlock) {
this.Editor.BlockManager.insert();
}

/**
* Show the Plus Button if:
* - Block is an initial-block (Text)
Expand Down

0 comments on commit 5bc3d62

Please sign in to comment.