Hi, I’m currently using a custom toggleMark function, and when working with a MarkType of schema.marks.link, while passing in attrs like so:
toggleMark(schema.marks.link, {href: link})
where ‘link’ is a variable containing a string, and in my custom toggleMark, it creates a mark like so:
let mark = attrs ? markType.create() : markType.create(attrs);
I’m met with an error of “Uncaught RangeError: No value supplied for attribute href”. I’m wondering if I passed in the attributes incorrectly or if something else is wrong? Thank you!