Page Menu
Home
Musing Studio
Search
Configure Global Search
Log In
Files
F15045956
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Subscribers
None
View Options
diff --git a/prose/schema.js b/prose/schema.js
index 3dc0305..c956bdc 100644
--- a/prose/schema.js
+++ b/prose/schema.js
@@ -1,63 +1,63 @@
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" }],
})
.addToEnd("emailsub", {
inline: false,
content: "",
group: "block",
draggable: true,
toDOM: () => [
"div", { id: "emailsub", contenteditable: "false" },
["form", {},
["p", {}, "Enter your email to subscribe to updates."],
- ["input", { type: "email", name: "email", placeholder: "me@example.com" }],
- ["input", { type: "submit", id: "subscribe-btn", value: "Subscribe" }],
+ ["input", { type: "email", disabled: true, placeholder: "me@example.com" }],
+ ["input", { type: "submit", disabled: true, value: "Subscribe" }],
],
],
parseDOM: [{ tag: "div#emailsub" }],
})
.addToEnd("comment", {
inline: true,
content: "",
group: "inline",
draggable: false,
toDOM: () => ["a", { class: "editor-comment" }, "Discuss..."],
parseDOM: [{ tag: "a.editor-comment" }],
})
.addToEnd("html_block", {
attrs: { content: { default: "" } },
content: "",
group: "block",
marks: "",
draggable: true,
toDOM: (node) => [
"div",
{ class: "editor-html-block", contenteditable: "false" },
node.attrs.content,
],
parseDOM: [{ tag: "div.editor-html-block", getAttrs: (dom) => ({ content: dom.textContent }) }],
})
.addToEnd("html_inline", {
attrs: { content: { default: "" } },
inline: true,
content: "",
group: "inline",
toDOM: (node) => ["code", { class: "editor-html-inline" }, node.attrs.content],
parseDOM: [{ tag: "code.editor-html-inline", getAttrs: (dom) => ({ content: dom.textContent }) }],
}),
marks: schema.spec.marks,
});
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Mon, Nov 30, 7:46 PM (13 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3830855
Attached To
rWF WriteFreely
Event Timeline
Log In to Comment