-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Description
Hey! Thanks for this really cool plugin!
Would you accept a pr to export these functions as utils from the list package?
const isListItem = block => block && block.type == blocks.list_item;
const getListItem = (editor, block) => {
const possibleListItem = editor.value.document.getParent(block.key);
return isListItem(possibleListItem) ? possibleListItem : null;
};
const isList = block =>
block &&
(block.type == blocks.unordered_list || block.type == blocks.ordered_list);
const getList = (editor, block) => {
const possibleList = editor.value.document.getParent(block.key);
return isList(possibleList) ? possibleList : null;
};I need these utils in order to be able to show an active status in my editor :)
Metadata
Metadata
Assignees
Labels
No labels