Commit Graph

43 Commits

Author SHA1 Message Date
Dominik
f019f70a19
fix(suggestion): 🐛 make clientrect prop optional as it can potentially be undefined (#2813)
This commit makes the clientRect prop optional - this means that this value can be null. This allows developers using the suggestion extension to know that they have to implement a check for the clientRect before using it.

#2795
2022-05-27 12:31:46 +02:00
Jon Noronha
0819e29e57 again 2022-04-29 12:47:11 +02:00
Jon Noronha
1dbd26c828 lint fix 2022-04-29 12:47:11 +02:00
Jon Noronha
b7c3b113dd Update findSuggestionMatch.ts 2022-04-29 12:47:11 +02:00
Ricardo Amaral
7cae9673f0 feat: Add a generic type for suggestion items 2022-04-28 14:23:00 +02:00
Ricardo Amaral
70cb809702 feat: Add onBeforeStart and onBeforeUpdate handlers to the render function 2022-04-28 12:22:16 +02:00
Scott Sidwell
45990cdc0f fix: prevent suggestions from being active when editor is readonly 2022-04-10 12:14:42 +10:00
Philipp Kühn
55fa220899 fix: fixes an error when using the mention extension and pasting text ending with "@", fix #2413 2022-01-21 09:29:36 +01:00
Philipp Kühn
42d3ee8fc9 fix: support all characters for suggestion char, fix #2385 2022-01-13 13:57:33 +01:00
Philipp Kühn
5d2ef71d33 fix: call onExit hook when editor is destroyed, fix #1645 2021-12-04 23:24:21 +01:00
Philipp Kühn
a6f731af39
feat!: Add editor to items prop in suggestion plugin (#2082)
* add editor to items prop

* docs: update content
2021-10-25 09:42:41 +02:00
Ruben Robles
4a6c3cbaac
fix: Add type for async items on suggestions (fix TS strict types complaining) (#1912) 2021-09-20 11:02:40 +02:00
Philipp Kühn
65e1a404e5 refactoring 2021-09-06 22:33:16 +02:00
Jakob Košir
4dd0d6d4dc
feat: allow triggering suggestions without prefix space (#1826, fix #1384) 2021-09-06 22:25:41 +02:00
Philipp Kühn
839acc1d9f fix: get correct clientRect when using async suggesteion items, fix #1782 2021-08-23 22:13:51 +02:00
Philipp Kühn
9789372cea fix: improve suggestion handling for chinese input, fix #1449 2021-08-13 15:13:19 +02:00
Philipp Kühn
7cf3350a83 fix: add pluginKey option to suggestion plugin, fix #1282 2021-08-13 13:14:54 +02:00
Philipp Kühn
a0444b5ec3 code style 2021-08-09 15:21:44 +02:00
dkrym
60606f99a1
fix: use correct state when doc changed externally (#1646) 2021-08-09 15:20:46 +02:00
Flávio Carvalho
83a53c16db
fix: Fix multi character suggest (#1620) 2021-07-26 15:39:08 +02:00
Philipp Kühn
0d9e488836 fix: add support for using suggestions at top level, fix #1340 2021-05-18 19:25:20 +02:00
Philipp Kühn
07c6d51338 fix: fix type for clientRect 2021-04-16 23:33:30 +02:00
Philipp Kühn
33773c01f3 add allow option to suggestion extension 2021-02-07 20:38:33 +01:00
Philipp Kühn
aef0acf53d fix bug in suggestion extension, fix #143 2021-02-07 20:00:13 +01:00
Philipp Kühn
319eb83303 rename suggestion command argument 2021-01-21 12:28:58 +01:00
Philipp Kühn
11d365f524 refactoring 2021-01-20 16:52:56 +01:00
Philipp Kühn
faa8842698 fix tippy position 2021-01-20 11:32:58 +01:00
Philipp Kühn
8f95eb6aed add decorationTag and decorationClass option 2021-01-20 10:47:31 +01:00
Philipp Kühn
ba0d379101 add editor to suggestion command props 2021-01-20 09:23:44 +01:00
Philipp Kühn
7a9b1f5c46 refactoring 2021-01-19 20:45:18 +01:00
Philipp Kühn
563f37d74b fix copying mentions as plain text 2021-01-19 20:27:51 +01:00
Philipp Kühn
6b517a47ef refactoring 2021-01-19 12:28:33 +01:00
Philipp Kühn
7712325ba9 fix mention rendering 2021-01-19 12:03:38 +01:00
Philipp Kühn
c13d65c842 refactoring 2021-01-19 10:09:32 +01:00
Philipp Kühn
aaa0832883 refactoring 2021-01-18 23:41:38 +01:00
Philipp Kühn
dd3a2ce490 improve styling 2021-01-18 16:54:02 +01:00
Philipp Kühn
7adc8b24a0 add basic keyboard navigation 2021-01-18 16:45:49 +01:00
Philipp Kühn
f96dff1f0f add tippy 2021-01-18 12:40:13 +01:00
Philipp Kühn
9f0ae94201 refactoring 2021-01-15 15:58:39 +01:00
Philipp Kühn
decabc09c6 refactoring 2021-01-15 14:49:28 +01:00
Philipp Kühn
3d28386e11 maybe improve text match 2021-01-15 09:55:15 +01:00
Philipp Kühn
a5d28a0184 refactoring 2021-01-15 09:25:50 +01:00
Philipp Kühn
5a9b96aaf0 add basic mention extension 2020-12-17 17:13:35 +01:00