UNPKG

slate-edit-list

Version:

A Slate plugin to handle keyboard events in lists.

12 lines (10 loc) 265 B
"use strict"; /** * @param {PluginOptions} opts Plugin options * @param {Node} node * @return {Boolean} true if the node is a UL or OL */ function isList(opts, node) { return node.type === opts.typeUL || node.type === opts.typeOL; } module.exports = isList;