Add more highlighter color choices (#7012)
* Add more highlighter color choices, closes #7011 * docs
This commit is contained in:
@@ -1,5 +1,12 @@
|
||||
import { Node, Schema } from "prosemirror-model";
|
||||
|
||||
/**
|
||||
* Check if a node is a list node.
|
||||
*
|
||||
* @param node The node to check
|
||||
* @param schema The schema to check against
|
||||
* @returns True if the node is a list node, false otherwise
|
||||
*/
|
||||
export function isList(node: Node, schema: Schema) {
|
||||
return (
|
||||
node.type === schema.nodes.bullet_list ||
|
||||
|
||||
Reference in New Issue
Block a user