JSON to client (#5553)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { Node } from "prosemirror-model";
|
||||
import ProsemirrorHelper from "@shared/utils/ProsemirrorHelper";
|
||||
import { ProsemirrorHelper } from "@shared/utils/ProsemirrorHelper";
|
||||
import { schema } from "@server/editor";
|
||||
|
||||
// Note: The test is here rather than shared to access the schema
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
import compact from "lodash/compact";
|
||||
import uniq from "lodash/uniq";
|
||||
|
||||
const attachmentRedirectRegex =
|
||||
/\/api\/attachments\.redirect\?id=(?<id>[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})/gi;
|
||||
const attachmentPublicRegex =
|
||||
/public\/([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})\/(?<id>[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})/gi;
|
||||
import {
|
||||
attachmentPublicRegex,
|
||||
attachmentRedirectRegex,
|
||||
} from "@shared/utils/ProsemirrorHelper";
|
||||
|
||||
export default function parseAttachmentIds(
|
||||
text: string,
|
||||
|
||||
Reference in New Issue
Block a user