A clean, Markdown-based publishing platform made for writers. Write together, and build a community. https://writefreely.org
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.
 
 
 
 
 

20 lines
477 B

  1. import { schema } from "prosemirror-markdown";
  2. import { Schema } from "prosemirror-model";
  3. export const writeFreelySchema = new Schema({
  4. nodes: schema.spec.nodes
  5. .addToEnd("readmore", {
  6. inline: false,
  7. content: "",
  8. group: "block",
  9. draggable: true,
  10. toDOM: (node) => [
  11. "div",
  12. { class: "editorreadmore" },
  13. "Read more...",
  14. ],
  15. parseDOM: [{ tag: "div.editorreadmore" }],
  16. }),
  17. marks: schema.spec.marks,
  18. });