mirror of
https://github.com/writefreely/writefreely
synced 2024-11-28 11:30:18 +00:00
5a4ff2a9de
Ref T727
19 lines
477 B
JavaScript
19 lines
477 B
JavaScript
import { schema } from "prosemirror-markdown";
|
|
import { Schema } from "prosemirror-model";
|
|
|
|
export const writeFreelySchema = new Schema({
|
|
nodes: schema.spec.nodes
|
|
.addToEnd("readmore", {
|
|
inline: false,
|
|
content: "",
|
|
group: "block",
|
|
draggable: true,
|
|
toDOM: (node) => [
|
|
"div",
|
|
{ class: "editorreadmore" },
|
|
"Read more...",
|
|
],
|
|
parseDOM: [{ tag: "div.editorreadmore" }],
|
|
}),
|
|
marks: schema.spec.marks,
|
|
});
|