Commit 15c7a8e1 authored by chris's avatar chris

format change

parent 47464fae
......@@ -361,10 +361,7 @@ const trackedTransaction = (tr, state, editor) => {
step.mark
);
}
if (
["em", "strong", "underline"].includes(step.mark.type.name) &&
!node.marks.find(mark => mark.type === step.mark.type)
) {
if (!node.marks.find(mark => mark.type === step.mark.type)) {
const formatChangeMark = node.marks.find(
mark => mark.type.name === "format_change"
);
......@@ -418,11 +415,7 @@ const trackedTransaction = (tr, state, editor) => {
step.mark
);
}
if (
["em", "strong", "underline"].includes(step.mark.type.name) &&
node.marks.find(mark => mark.type === step.mark.type)
) {
if (node.marks.find(mark => mark.type === step.mark.type)) {
const formatChangeMark = node.marks.find(
mark => mark.type.name === "format_change"
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment