From e13c967bd4f755217ac46a0edcad8bedb76d9005 Mon Sep 17 00:00:00 2001 From: chris <kokosias@yahoo.gr> Date: Wed, 25 Mar 2020 14:53:24 +0200 Subject: [PATCH] comment out style rule for bold as everything that gets pasted end up in bold --- wax-prosemirror-schema/src/marks/strongMark.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wax-prosemirror-schema/src/marks/strongMark.js b/wax-prosemirror-schema/src/marks/strongMark.js index 32b9482a1..bea068b29 100644 --- a/wax-prosemirror-schema/src/marks/strongMark.js +++ b/wax-prosemirror-schema/src/marks/strongMark.js @@ -4,11 +4,11 @@ const strong = { { tag: "b", getAttrs: node => node.style.fontWeight != "normal" && null - }, - { - style: "font-weight", - getAttrs: value => /^(bold(er)?|[5-9]\d{2,})$/.test(value) && null } + // { + // style: "font-weight", + // getAttrs: value => /^(bold(er)?|[5-9]\d{2,})$/.test(value) && null + // } ], toDOM(hook, next) { hook.value = ["strong", 0]; -- GitLab