upd comments

This commit is contained in:
Murod Khaydarov 2018-06-28 13:50:42 +03:00
commit 65397b758c
No known key found for this signature in database
GPG key ID: C480BA53A8D274C5
3 changed files with 4 additions and 4 deletions

View file

@ -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);

View file

@ -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;

View file

@ -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)();