Add more highlighter color choices (#7012)

* Add more highlighter color choices, closes #7011

* docs
This commit is contained in:
Tom Moor
2024-06-09 13:54:31 -04:00
committed by GitHub
parent 808415b906
commit ed59b3e350
10 changed files with 167 additions and 34 deletions

View File

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