Skip to content
Snippets Groups Projects
Commit 5bdfdd30 authored by rhenck's avatar rhenck
Browse files

[editor] Fix console error in TipTap extension

parent f12a099d
No related branches found
No related tags found
No related merge requests found
......@@ -30,7 +30,9 @@ export const orderedListExtension = OrderedList.extend({
const node = tr?.doc?.nodeAt(pos);
if (node) {
const nodeAttrs = { ...node.attrs, listStyle: newStyle };
return tr.setNodeMarkup(pos, node.type, nodeAttrs, node.marks);
if (node.type.name !== 'text') {
return tr.setNodeMarkup(pos, node.type, nodeAttrs, node.marks);
}
}
return tr;
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment