Open KeroZhai opened 2 months ago
Core, Suggestion
2.7.1
I don't want to trigger suggestions in inline code, so I write this:
suggestion: { allow: ({ editor }) => { return !editor.isActive('code') } }
However, this is not working. It turns out that the result of isActive is incorrect, it returns the state of last cursor location.
isActive
Edge
https://codesandbox.io/p/devbox/stoic-lumiere-p2s5s8
isActive returns current state.
No response
I could'nt able to see the suggestion popup inside inlineCode , am I missing something ?
inlineCode
Only spaces are allowed before the @, so in your case it won't trigger the popup.
@
Just using the provided example:
Affected Packages
Core, Suggestion
Version(s)
2.7.1
Bug Description
I don't want to trigger suggestions in inline code, so I write this:
However, this is not working. It turns out that the result of
isActive
is incorrect, it returns the state of last cursor location.Browser Used
Edge
Code Example URL
https://codesandbox.io/p/devbox/stoic-lumiere-p2s5s8
Expected Behavior
isActive
returns current state.Additional Context (Optional)
No response
Dependency Updates