-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow suggestion character to be used inside the suggestion query (#5895
) * feat(suggestion): add option to allow triggering chars to also be in suggestions It's currently not possible to mention emails or federated usernames for instance, because the triggering char (often `@`) cannot be included in the mention suggestion itself. This option allows to have some, so that the mention will only end with a space. That makes it incompatible with the `allowSpaces` option. Closes #4447 Signed-off-by: Thomas Citharel <[email protected]> * added changeset --------- Signed-off-by: Thomas Citharel <[email protected]> Co-authored-by: Thomas Citharel <[email protected]>
- Loading branch information
Showing
3 changed files
with
21 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@tiptap/suggestion": patch | ||
--- | ||
|
||
Added a new option ´allowToIncludeChar` that allows the usage of the suggestion char inside the query |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters