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.
 
 
 
 
 

22 lines
534 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. .remove("blockquote")
  6. .remove("horizontal_rule")
  7. .addToEnd("readmore", {
  8. inline: false,
  9. content: "",
  10. group: "block",
  11. draggable: true,
  12. toDOM: (node) => [
  13. "div",
  14. { class: "editorreadmore" },
  15. "Read more...",
  16. ],
  17. parseDOM: [{ tag: "div.editorreadmore" }],
  18. }),
  19. marks: schema.spec.marks,
  20. });