Commit Graph

38 Commits

Author SHA1 Message Date
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
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
4303637a78
feat: Allow to use commands within InputRule and PasteRule (#2035)
* add optional state prop to commandmanager

* add commands, chain and can getter to commandmanager

* use custom CommandManager for input rules and paste rules

* export commandmanager
2021-10-14 11:56:40 +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
78e2a6e775 add generic to commands type 2021-06-04 21:56:29 +02:00
Mark Zepeda
7426be019e
Fix returning true/false in can().chain().run()
I think this was previously meant to return a function in the proxy object getter, but now it's a standalone function and should return the result of the callbacks.
2021-05-02 20:04:10 -05:00
Philipp Kühn
26785dbec0 fix: fix type error for commands 2021-04-26 23:33:45 +02:00
Philipp Kühn
65b8eff634 remove unused method 2021-02-16 18:56:18 +01:00
Philipp Kühn
a705134998 rename Commands to RawCommands 2021-02-16 18:36:37 +01:00
Philipp Kühn
8fda044502 refactoring 2021-02-16 18:00:40 +01:00
Philipp Kühn
ca8d1a4245 add command scope 2021-02-16 11:27:58 +01:00
Philipp Kühn
f70974678b remove proxy from createChain 2021-02-10 15:10:03 +01:00
Philipp Kühn
2340840621 remove registerCommands 2021-02-10 14:52:08 +01:00
Philipp Kühn
4407d9a3d1 improve types 2021-01-28 09:50:17 +01:00
Philipp Kühn
cd46e5ebd2 fix tests 2020-12-02 12:05:35 +01:00
Philipp Kühn
143b309bdf add collab commands 2020-12-02 09:28:55 +01:00
Philipp Kühn
532eaa4e86 fix chain again 2020-12-01 23:32:39 +01:00
Philipp Kühn
d8322d2e2e fix chained commands 2020-12-01 14:44:53 +01:00
Philipp Kühn
1495573d6b fix bug 2020-12-01 13:08:11 +01:00
Philipp Kühn
96920e5c14 fix togglemark 2020-12-01 12:45:30 +01:00
Philipp Kühn
f486ddf80a split helpers and utilities 2020-11-30 09:42:53 +01:00
Philipp Kühn
13a314e123 refactoring 2020-11-16 21:42:35 +01:00
Philipp Kühn
0e2815b317 fix some bugs 2020-11-16 17:25:55 +01:00
Philipp Kühn
0c9ce26c02 Revert "use global namespace"
This reverts commit 24c3a9abd3.

# Conflicts:
#	packages/core/src/Editor.ts
2020-11-16 16:58:30 +01:00
Philipp Kühn
282cdfebd6 move some types 2020-11-16 15:56:44 +01:00
Philipp Kühn
24c3a9abd3 use global namespace 2020-11-16 15:40:05 +01:00
Philipp Kühn
13489998b9 prefix all commands with ‚commands‘ 2020-11-13 11:42:04 +01:00
Philipp Kühn
c3fa5ebf1b add new command getter 2020-11-13 09:58:30 +01:00
Philipp Kühn
09ddf954a7 add withAttributes and withMarks option to splitBlock command 2020-11-04 17:01:51 +01:00
Philipp Kühn
7338266813 refactoring 2020-11-02 17:22:04 +01:00
Philipp Kühn
7bfab4685f add can method to editor class 2020-11-02 17:18:12 +01:00
Philipp Kühn
8f4abb720a add can method 2020-11-02 14:29:58 +01:00
Philipp Kühn
5d8d353bd0 fix all eslint errors 2020-09-24 09:49:46 +02:00
Philipp Kühn
ac33eb483e fix more linting errors 2020-09-24 00:29:05 +02:00
Philipp Kühn
b0378e593d move code to commandmanager 2020-09-23 08:59:21 +02:00
Philipp Kühn
389756d258 add support for nested chained commands 2020-09-22 23:06:37 +02:00
Philipp Kühn
0e1f8c4645 refactoring 2020-09-22 21:35:02 +02:00
Philipp Kühn
faf1e1d4ab add basic commandmanager 2020-09-22 21:25:32 +02:00