Cameron Hessler
7b4c792034
fix(core) Allow text style to be clearable on new lines ( #4151 )
...
* Fix text style not clearing on new line
Fixes #3702
* Fix preserving marks when wrapping/setting nodes
* Uncomment tests
* Revert "Uncomment tests"
This reverts commit 8979bbda81
.
* Revert "Fix preserving marks when wrapping/setting nodes"
This reverts commit fe3613b587
.
2023-07-07 11:21:28 +02:00
Cameron Hessler
26610cdff3
fix(core) Nested chain not preserving dispatch state ( #4152 )
...
* Fix nested chain not preserving dispatch state
* Change test to read as sentence
2023-07-07 11:20:29 +02:00
Ben Asher
e97630c639
Require file extensions for imports and exports ( #4001 )
...
* Require .js endings
* add extension alias for cypress to resolve ts files with js endings
2023-06-30 21:03:49 +02:00
Dominik
f387ad3dd4
feat(pm): new prosemirror package for dependency resolving
...
* chore:(core): migrate to tsup
* chore: migrate blockquote and bold to tsup
* chore: migrated bubble-menu and bullet-list to tsup
* chore: migrated more packages to tsup
* chore: migrate code and character extensions to tsup
* chore: update package.json to simplify build for all packages
* chore: move all packages to tsup as a build process
* chore: change ci build task
* feat(pm): add prosemirror meta package
* rfix: resolve issues with build paths & export mappings
* docs: update documentation to include notes for @tiptap/pm
* chore(pm): update tsconfig
* chore(packages): update packages
* fix(pm): add package export infos & fix dependencies
* chore(general): start moving to pm package as deps
* chore: move to tiptap pm package internally
* fix(demos): fix demos working with new pm package
* fix(tables): fix tables package
* fix(tables): fix tables package
* chore(demos): pinned typescript version
* chore: remove unnecessary tsconfig
* chore: fix netlify build
* fix(demos): fix package resolving for pm packages
* fix(tests): fix package resolving for pm packages
* fix(tests): fix package resolving for pm packages
* chore(tests): fix tests not running correctly after pm package
* chore(pm): add files to files array
* chore: update build workflow
* chore(tests): increase timeout time back to 12s
* chore(docs): update docs
* chore(docs): update installation guides & pm information to docs
* chore(docs): add link to prosemirror docs
* fix(vue-3): add missing build step
* chore(docs): comment out cdn link
* chore(docs): remove semicolons from docs
* chore(docs): remove unnecessary installation note
* chore(docs): remove unnecessary installation note
2023-02-02 17:37:33 +01:00
Asherah Connor
40f4ea31ef
fix(core): createCan command props shouldn't try dispatch ( #3025 ) ( #3026 )
2022-08-22 14:19:44 +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
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