chore: Upgrade all of prosemirror (#5366)
Co-authored-by: Apoorv Mishra <apoorvmishra101092@gmail.com>
This commit is contained in:
@@ -12,6 +12,9 @@ import { parser } from "@server/editor";
|
||||
export default function parseDocumentIds(text: string): string[] {
|
||||
const doc = parser.parse(text);
|
||||
const identifiers: string[] = [];
|
||||
if (!doc) {
|
||||
return identifiers;
|
||||
}
|
||||
|
||||
doc.descendants((node: Node) => {
|
||||
// get text nodes
|
||||
|
||||
Reference in New Issue
Block a user