mirror of
https://github.com/codex-team/editor.js
synced 2026-03-18 08:29:52 +01:00
upd comments
This commit is contained in:
parent
c4f49d0520
commit
65397b758c
3 changed files with 4 additions and 4 deletions
|
|
@ -59,7 +59,7 @@ export default class BlocksAPI extends Module implements IBlocksAPI {
|
|||
}
|
||||
|
||||
/**
|
||||
* In case of deletion first block we need to set caret to the next block by index
|
||||
* In case of deletion first block we need to set caret to the current Block
|
||||
*/
|
||||
if (this.Editor.BlockManager.currentBlockIndex === 0) {
|
||||
this.Editor.Caret.setToBlock(this.Editor.BlockManager.currentBlock);
|
||||
|
|
|
|||
|
|
@ -110,7 +110,7 @@ export default class BlockManager extends Module {
|
|||
* Before moving caret, we should check if caret position is at the end of Plugins node
|
||||
* Using {@link Dom#getDeepestNode} to get a last node and match with current selection
|
||||
*
|
||||
* @param {Boolean} force - force navigation
|
||||
* @param {Boolean} force - force navigation even if caret is not at the end.
|
||||
*/
|
||||
navigateNext(force = false) {
|
||||
let nextBlock = this.nextBlock;
|
||||
|
|
|
|||
|
|
@ -54,8 +54,8 @@ export default class Caret extends Module {
|
|||
}
|
||||
|
||||
/**
|
||||
* @todo try to fix via Promises or use querySelectorAll to not to use timeout
|
||||
*/
|
||||
* @todo try to fix via Promises or use querySelectorAll to not to use timeout
|
||||
*/
|
||||
_.delay( () => {
|
||||
this.set(nodeToSet, offset);
|
||||
}, 20)();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue