Skip to content

Commit 783bbc1

Browse files
authored
Fix mark parseDOM style specification (#17)
1 parent a187695 commit 783bbc1

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

react-prosemirror-config-default/src/marks.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ const superscript = {
2121
const strikethrough = {
2222
parseDOM: [
2323
{ tag: 'strike' },
24-
{ style: 'text-decoration:line-through' },
25-
{ style: 'text-decoration-line:line-through' }
24+
{ style: 'text-decoration=line-through' },
25+
{ style: 'text-decoration-line=line-through' }
2626
],
2727
toDOM: () => ['span', {
2828
style: 'text-decoration-line:line-through'
@@ -32,7 +32,7 @@ const strikethrough = {
3232
const underline = {
3333
parseDOM: [
3434
{ tag: 'u' },
35-
{ style: 'text-decoration:underline' }
35+
{ style: 'text-decoration=underline' }
3636
],
3737
toDOM: () => ['span', {
3838
style: 'text-decoration:underline'

react-prosemirror-example/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"build"
1010
],
1111
"dependencies": {
12-
"@aeaton/react-prosemirror": "^0.11.0",
12+
"@aeaton/react-prosemirror": "^0.21.0",
1313
"@aeaton/react-prosemirror-config-default": "^0.10.0",
1414
"react": "^16.3.0",
1515
"react-dom": "^16.3.0",

react-prosemirror-example/src/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ ReactDOM.render(
3232
<Input>
3333
<Editor
3434
options={options}
35-
value={`<h1>This is a title</h1><p>This is a paragraph</p>`}
3635
onChange={doc => {
3736
document.getElementById('output').textContent = JSON.stringify(doc, null, 2)
3837
}}

0 commit comments

Comments
 (0)