File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed
react-prosemirror-config-default/src
react-prosemirror-example Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -21,8 +21,8 @@ const superscript = {
2121const 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 = {
3232const 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'
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff 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 } }
You can’t perform that action at this time.
0 commit comments