Commit Graph

41 Commits

Author SHA1 Message Date
Dominik Biedebach
163de4e187 fix(extension/mention): collapse selection to end after suggestion insertion to fix chrome selection issue with mouse 2022-06-27 07:50:57 +02:00
Dominik
8c6751f0c6
add precommit hook for linting and automatic eslint fixes + update eslint packages (#2862)
* chore: add precommit hook for eslint fixes, fix linting issues
* chore: add eslint import sort plugin
2022-06-08 14:10:25 +02: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
6c34dec33a fix: remove some magic strings 2021-12-02 14:58:15 +01:00
Philipp Kühn
9afadeb7fe
feat!: Replace defaultOptions with addOptions (#2088)
* add new addOptions option

* replace defaultOptions with addOptions for all extensions

* replace defaultOptions with addOptions for all demos

* replace defaultOptions with addOptions in docs

* refactoring

* refactoring

* drop object support for addOptions

* fix optional options

* fix tests
2021-10-26 18:31:13 +02:00
Philipp Kühn
5e652c94a7 fix: fix check for showing mention suggestion 2021-10-22 10:09:28 +02:00
Philipp Kühn
8a3b47a529 feat: parseHTML for attributes should return the value instead of an object now, fix #1863 2021-09-08 23:53:44 +02:00
Philipp Kühn
b7d22bf0dc check for simple space only 2021-08-20 21:02:54 +02:00
Philipp Kühn
3f7e6b219b fix: prevent multiple space characters after mention node, fix #1703 2021-08-20 09:33:16 +02:00
Philipp Kühn
7cf3350a83 fix: add pluginKey option to suggestion plugin, fix #1282 2021-08-13 13:14:54 +02:00
philippkuehn
1b723ea57c ci: fix code style linting errors 2021-06-15 06:11:08 +00:00
shadow-light
5178172864
fix: Fix parsing of mention nodes (#1471) 2021-06-15 08:10:17 +02:00
Philipp Kühn
3b78af44a0 feat: add renderLabel option to mention extension, see #1322 2021-06-14 16:40:17 +02:00
Philipp Kühn
c64761a9e5 BREAKING CHANGE: data-mention is not used to parse a mention id or label anymore 2021-06-14 16:22:09 +02:00
Philipp Kühn
299580a77d code style 2021-06-14 16:17:13 +02:00
philippkuehn
88329c8567 ci: fix code style linting errors 2021-06-14 14:14:00 +00:00
Tom Hartley
c3afe880ae
feat: add label attribute to mention extension (#1322) 2021-06-14 16:13:06 +02:00
Philipp Kühn
e9c9176032 refactoring 2021-05-05 20:50:08 +02:00
Philipp Kühn
63b4e15b0c refactoring 2021-05-05 14:14:09 +02:00
Philipp Kühn
63902d4bdb remove replaceRange from mention node 2021-05-05 13:49:32 +02:00
Philipp Kühn
1c8ca95de2 refactor: remove AnyObject type 2021-04-21 09:43:31 +02:00
Philipp Kühn
b8d9b7d4c7 feat: add insertContent() command, deprecate insertText(), insertHTML() and insertNode() 2021-04-07 11:53:37 +02:00
Philipp Kühn
215c26748b improve options interface 2021-02-10 18:25:08 +01:00
Philipp Kühn
48234cf751 refactoring 2021-02-10 14:53:46 +01:00
Philipp Kühn
c5d6b19d1b Merge branch 'feature/allow-option-for-suggestions' into feature/remove-inferred-commands 2021-02-10 14:52:20 +01:00
Philipp Kühn
290ff76e37 add Commands interface 2021-02-10 09:59:35 +01:00
Philipp Kühn
33773c01f3 add allow option to suggestion extension 2021-02-07 20:38:33 +01:00
Philipp Kühn
319eb83303 rename suggestion command argument 2021-01-21 12:28:58 +01:00
Philipp Kühn
55d767d94c add replaceRange command 2021-01-20 20:37:53 +01:00
Philipp Kühn
1880b43e37 add backspace handler to mentions 2021-01-20 20:17:17 +01:00
Hans Pagel
271f77f6f4 docs: update content 2021-01-20 16:56:25 +01:00
Philipp Kühn
ba0d379101 add editor to suggestion command props 2021-01-20 09:23:44 +01:00
Philipp Kühn
4256de7cde refactoring 2021-01-19 20:42:15 +01:00
Philipp Kühn
563f37d74b fix copying mentions as plain text 2021-01-19 20:27:51 +01:00
Philipp Kühn
7e88257a45 refactoring 2021-01-19 12:50:09 +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
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
5a9b96aaf0 add basic mention extension 2020-12-17 17:13:35 +01:00