mirror of https://github.com/writeas/writefreely
A focused writing and publishing space.
https://write.with.parts
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
534 B
21 lines
534 B
import { schema } from "prosemirror-markdown";
|
|
import { Schema } from "prosemirror-model";
|
|
|
|
export const writeFreelySchema = new Schema({
|
|
nodes: schema.spec.nodes
|
|
.remove("blockquote")
|
|
.remove("horizontal_rule")
|
|
.addToEnd("readmore", {
|
|
inline: false,
|
|
content: "",
|
|
group: "block",
|
|
draggable: true,
|
|
toDOM: (node) => [
|
|
"div",
|
|
{ class: "editorreadmore" },
|
|
"Read more...",
|
|
],
|
|
parseDOM: [{ tag: "div.editorreadmore" }],
|
|
}),
|
|
marks: schema.spec.marks,
|
|
});
|
|
|