Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wax-prosemirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wax
wax-prosemirror
Commits
3898d21c
Commit
3898d21c
authored
Nov 15, 2019
by
chris
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add block quote schema
parent
07e43e5d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
7 deletions
+15
-7
editors/editoria/src/Editoria.js
editors/editoria/src/Editoria.js
+0
-1
wax-prosemirror-core/src/Wax.js
wax-prosemirror-core/src/Wax.js
+4
-5
wax-prosemirror-schema/src/EditoriaSchema.js
wax-prosemirror-schema/src/EditoriaSchema.js
+11
-1
No files found.
editors/editoria/src/Editoria.js
View file @
3898d21c
...
...
@@ -12,7 +12,6 @@ import text from "./text";
const
options
=
{
schema
,
plugins
,
keys
,
rules
};
...
...
wax-prosemirror-core/src/Wax.js
View file @
3898d21c
...
...
@@ -43,10 +43,9 @@ class Wax extends Component {
const
{
schema
,
plugins
,
keys
,
rules
}
=
options
;
const
WaxOnchange
=
onChange
?
onChange
:
value
=>
true
;
const
WaxKeys
=
options
&&
options
.
keys
?
options
.
keys
:
new
CreateShortCuts
({
schema
:
schema
,
shortCuts
:
{}
});
const
WaxShortCuts
=
keys
?
keys
:
new
CreateShortCuts
({
schema
:
schema
,
shortCuts
:
{}
});
const
WaxRules
=
new
CreateRules
({
schema
:
schema
,
rules
:
rules
});
...
...
@@ -54,7 +53,7 @@ class Wax extends Component {
const
finalPlugins
=
defaultPlugins
.
concat
([
placeholder
({
content
:
this
.
props
.
placeholder
}),
Wax
Key
s
,
Wax
ShortCut
s
,
WaxRules
]);
if
(
plugins
)
finalPlugins
.
push
(...
plugins
);
...
...
wax-prosemirror-schema/src/EditoriaSchema.js
View file @
3898d21c
// Npdes
const
pDOM
=
[
"
p
"
,
0
],
brDOM
=
[
"
br
"
];
brDOM
=
[
"
br
"
],
blockquoteDOM
=
[
"
blockquote
"
,
0
];
//Marks
const
emDOM
=
[
"
em
"
,
0
],
...
...
@@ -477,6 +478,15 @@ const EditoriaSchema = {
return
[
"
li
"
,
attrs
,
0
];
},
defining
:
true
},
blockquote
:
{
content
:
"
block+
"
,
group
:
"
block
"
,
defining
:
true
,
parseDOM
:
[{
tag
:
"
blockquote
"
}],
toDOM
()
{
return
blockquoteDOM
;
}
}
},
marks
:
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment