improve the highlight extension, add pasteRule and inputRule

This commit is contained in:
Hans Pagel
2020-10-27 22:14:40 +01:00
parent a1a3ecd2d0
commit 47109ed97f
3 changed files with 32 additions and 4 deletions

View File

@@ -13,7 +13,7 @@ export default function markHasAttributes(state: EditorState, type: MarkType, at
// @ts-ignore
return Object.keys(attrs).filter((key: string) => {
// @ts-ignore
console.log(attrs[key], originalAttrs[key], attrs[key] === originalAttrs[key])
// console.log(attrs[key], originalAttrs[key], attrs[key] === originalAttrs[key])
return attrs[key] === originalAttrs[key]
}).length
}