Commit Graph

66 Commits

Author SHA1 Message Date
Philipp Kühn
e07a5b625d
refactor: Use named exports instead of default exports (#2238)
* use named exports instead of default exports

* fix tests

Co-authored-by: Philipp Kühn <philippkuehn@MacBook-Pro-von-Philipp.local>
2021-12-06 12:00:09 +01:00
Philipp Kühn
20b6d79f33 fix: remove defaultOptions fallback, fix #2219 2021-12-02 20:04:45 +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
ef254cead7 fix: fix storage context when using configure 2021-10-25 00:27:24 +02:00
Philipp Kühn
7ffabf251c
feat: Add extension storage (#2069) 2021-10-22 08:52:54 +02:00
Philipp Kühn
723b955cec
feat: Integrate input rules and paste rules into the core (#1997)
* refactoring

* improve link regex

* WIP: add new markPasteRule und linkify to image mark

* move copy of inputrule to core

* trigger codeblock inputrule on enter

* refactoring

* add regex match to markpasterulematch

* refactoring

* improve link regex

* WIP: add new markPasteRule und linkify to image mark

* move copy of inputrule to core

* trigger codeblock inputrule on enter

* refactoring

* add regex match to markpasterulematch

* update linkify

* wip

* wip

* log

* wip

* remove debug code

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* rename matcher

* add data to ExtendedRegExpMatchArray

* remove logging

* add code option to marks, prevent inputrules in code mark

* remove link regex

* fix codeblock inputrule on enter

* refactoring

* refactoring

* refactoring

* refactoring

* fix position bug

* add test

* export InputRule and PasteRule

* clean up link demo

* fix types
2021-10-08 15:02:09 +02:00
Philipp Kühn
d037c5656a fix: fix merging options on configure for multiple extension instances 2021-06-03 13:13:43 +02:00
Philipp Kühn
655c5647f0 fix: fix a bug when configurating the same extension multiple times 2021-05-11 17:03:34 +02:00
Philipp Kühn
b4e2b6fc9d fix: set correct priority when extending extensions, fix #1288 2021-05-10 00:13:32 +02:00
Philipp Kühn
cbc0dd8920 fix: remove editor from addExtensions context 2021-05-07 10:24:48 +02:00
Philipp Kühn
ae17bd101c refactoring 2021-05-07 10:08:30 +02:00
Philipp Kühn
26e672e2f0 feat: add addExtensions option 2021-05-06 18:39:47 +02:00
Philipp Kühn
1c8ca95de2 refactor: remove AnyObject type 2021-04-21 09:43:31 +02:00
Philipp Kühn
12f60abb73 feat: add name to extension context 2021-04-20 23:11:35 +02:00
Philipp Kühn
e0c2460a96 feat: add editor prop to KeyboardShortcutCommand 2021-04-20 22:58:09 +02:00
Philipp Kühn
aa002a012b fix: fix extension option merging 2021-04-17 21:25:29 +02:00
Philipp Kühn
05434afc47 wip: add extension.name 2021-04-15 22:03:45 +02:00
Philipp Kühn
016bda4010 wip: fix extendNodeSchema and extendMarkSchema 2021-04-15 21:43:41 +02:00
Philipp Kühn
d194b90a61 wip: save hierachy within extension classes 2021-04-15 14:40:28 +02:00
Philipp Kühn
c40ce34eec wip: add some hierarchy tests 2021-04-14 09:48:38 +02:00
Philipp Kühn
5e1ec5d2a6 feat: add parentConfig to extension context for more extendable extensions, fix #259 2021-04-12 11:11:02 +02:00
Philipp Kühn
95f31f48fd Merge branch 'main' into feature/extension-code-block-lowlight 2021-04-07 22:39:39 +02:00
Philipp Kühn
a0e2a830d7 refactor: remove isEditable from node views, remove viewUpdate event 2021-04-07 22:07:36 +02:00
Philipp Kühn
bb1ae659a4 feat: add priority option to extensions 2021-04-07 18:29:16 +02:00
Philipp Kühn
7adf1853d7 add basic lowlight extension 2021-04-02 00:07:40 +02:00
Philipp Kühn
f2ca9322ee add keepOnSplit option for marks 2021-04-01 19:06:40 +02:00
Philipp Kühn
9cdc76a082 fix whitespace 2021-04-01 18:42:31 +02:00
Philipp Kühn
f8d029040a fix type cycle bug in vite 2021-03-31 13:44:56 +02:00
Philipp Kühn
15848473ed rename selection to selectionUpdate, add editor to event listener props 2021-03-09 09:50:03 +01:00
Philipp Kühn
92a6768b3d allow to define everything within extensions 2021-02-19 17:47:22 +01:00
Philipp Kühn
6fb28a2741 make extension configs extendable 2021-02-19 17:35:50 +01:00
Philipp Kühn
ba69a0d8f9 improve extending nodes and marks 2021-02-19 10:54:47 +01:00
Philipp Kühn
6f9557294e add basic schema extender 2021-02-19 09:54:39 +01:00
Philipp Kühn
96bb2e188d fix addKeyboardShortcuts type 2021-02-16 22:59:45 +01:00
Philipp Kühn
a705134998 rename Commands to RawCommands 2021-02-16 18:36:37 +01:00
Philipp Kühn
290ff76e37 add Commands interface 2021-02-10 09:59:35 +01:00
Philipp Kühn
1c424f4db1 add deep merge 2021-01-20 09:18:49 +01:00
Philipp Kühn
81db30e7d2 refactoring 2021-01-19 22:29:46 +01:00
Philipp Kühn
693866bacb fix optional starter kit options 2020-12-18 22:54:15 +01:00
Philipp Kühn
81af92a85c add multicolor option to highlight 2020-12-03 23:32:11 +01:00
Philipp Kühn
f6206b3df5 add all events to extensions 2020-11-30 14:12:36 +01:00
Philipp Kühn
6c39aea432 add destroy event 2020-11-30 13:50:06 +01:00
Philipp Kühn
6cb3de0f4e dont use instanceof 2020-11-19 21:08:25 +01:00
Philipp Kühn
d05c9fda3e refactoring 2020-11-16 21:54:40 +01:00
Philipp Kühn
13a314e123 refactoring 2020-11-16 21:42:35 +01:00
Philipp Kühn
e6bff7a4cd rename 2020-11-16 11:21:54 +01:00
Philipp Kühn
8a7603edaf replace NodeExtension with Node, replace MarkExtension with Mark 2020-11-16 11:19:43 +01:00
Philipp Kühn
e442b5a8fe rename files 2020-10-22 11:19:49 +02:00
Philipp Kühn
930eb63564 refactoring 2020-10-22 11:14:44 +02:00
Philipp Kühn
faa65b5450 refactoring 2020-10-22 09:14:24 +02:00