mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-15 11:09:01 +08:00
fix bug in suggestions plugin, fix #176
This commit is contained in:
parent
17c06eac80
commit
53b1d0d4df
@ -10,6 +10,11 @@ function triggerCharacter({
|
||||
}) {
|
||||
|
||||
return $position => {
|
||||
// cancel if top level node
|
||||
if ($position.depth <= 0) {
|
||||
return false
|
||||
}
|
||||
|
||||
// Matching expressions used for later
|
||||
const escapedChar = `\\${char}`
|
||||
const suffix = new RegExp(`\\s${escapedChar}$`)
|
||||
|
Loading…
Reference in New Issue
Block a user