Hello guys, Sorry I have another question to ask.
From the sample here, https://prosemirror.net/examples/menu/
let active = command(this.editorView.state, null, this.editorView)
It uses toggleMark to check the mark activity, but from I learnt from the doc, it seems much proper to get the selection to check if a mark is applied to any node in it.
Which is the best practice to check mark activity, I’m a bit confused by the sample code, so if anyone could help me figure it out, that would be excellent, cheer!!!