Skip to content
This repository has been archived by the owner on Oct 25, 2022. It is now read-only.

Commit

Permalink
Improved comments
Browse files Browse the repository at this point in the history
  • Loading branch information
silviubogan committed Aug 18, 2020
1 parent 120ddf3 commit 6721e06
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions src/blocks/Text/keyboard/indentListItems.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ export function increaseItemDepth(editor, event) {
if (!slate.listTypes.includes(type)) {
// Do not increase any indent level.
// And also, this situation shows that there is a LI inside something that is not a list, and this means that something broke the data in the Slate document.
// Maybe throw an exception?
// TODO: Maybe throw an exception?
return false; // false means that the event was not practically handled
}

Expand Down Expand Up @@ -221,12 +221,20 @@ export function increaseItemDepth(editor, event) {
return true;
}

/**
* Indents current list item + plus siblings that come after it.
* @param {Editor} editor
* @param {Event} event
*/
export function increaseMultipleItemDepth(editor, event) {
// TODO: implement indenting current list item + plus siblings that come
// after it
// TODO: implement
}

/**
* Un-indents current list item + plus siblings that come after it.
* @param {Editor} editor
* @param {Event} event
*/
export function decreaseMultipleItemsDepth(editor, event) {
// TODO: implement un-indenting current list item + plus siblings that come
// after it
// TODO: implement
}

0 comments on commit 6721e06

Please sign in to comment.