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