Now I have a simple table schema for parsing markdown table.
Here are th
and td
schemas
th: {
content: "inline*",
group: "block",
parseDOM: [{tag: "th"}],
toDOM() { return ["th",{},['p', 0]]}
},
td: {
content: "inline*",
group: "block",
parseDOM: [{tag: "td"}],
toDOM() { return ["td",{},['p', 0]]}
},
Now I want to create a new line in the dom or do not delete the tr
\ td
dom when I press delete
button or backspace
button .
How to achive it?