Page Menu
Home
Musing Studio
Search
Configure Global Search
Log In
Files
F10494013
schema.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
574 B
Subscribers
None
schema.js
View Options
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"
,
style
:
"width: 100%;text-align:center"
},
"Read more..."
,
],
parseDOM
:
[{
tag
:
"div.editorreadmore"
}],
}),
marks
:
schema
.
spec
.
marks
,
});
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Mar 6, 3:33 AM (1 d, 10 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3168184
Attached To
rWF WriteFreely
Event Timeline
Log In to Comment