Horu
9386de5087
docs: update link in input and paste rules docstrings ( #5771 )
2024-10-27 09:45:12 +01:00
David Newell
86a855355f
feat(core): add getContent
to nodePasteRules ( #4212 )
2024-08-09 07:34:17 +02:00
bdbch
b941eea6da
feat: added jsdocs ( #4356 )
...
* added JSDocs for almost all extensions
* start adding commands jsdocs
* add jsdocs for rest of extensions
* add jsdocs for Extensions
* add js docs for all extensions
* add more jsdocs
* add js docs for node spec definitions
2024-05-11 14:30:44 +02:00
bdbch
361a821245
feature(core): pass through paste event to pasteHandler getAttributes
( #4354 )
...
* add pass through of paste event for paste handlers
* remove unused pasteHandler.ts
* remove link extension from youtube demo
* added missing prop for handler
2023-09-20 17:23:43 +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
Jie
a81019a6b7
Extend nodePasteRule
find
type to most generic PasteRuleFinder
( #3759 )
2023-02-18 16:48:45 +01: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
Etienne de la Broïse
bda6e8d308
fix(core): insert PasteRule Node at matched position ( #2942 ) ( #2943 )
2022-09-10 14:07:46 +02:00
Dominik Biedebach
15123ee092
feat(core): add nodePasteRule to core
2022-06-25 12:07:33 +02:00
Dominik
fa8c4ca639
refactor: use index files for imports to simplify the export flow ( #2870 )
2022-06-11 07:11:14 +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
6a813686f5
dont return tr in input rules and pasterules
2022-01-10 14:55:53 +01:00
Philipp Kühn
669efd00e9
fix: add way to cancel inputrules and pasterules ( #2368 )
...
Co-authored-by: Philipp Kühn <philippkuehn@MacBook-Pro-von-Philipp.local>
2022-01-10 14:43:56 +01: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
3d68981b47
feat: Add support for autolink ( #2226 )
...
* wip
* WIP
* add autolink implementation
* refactoring
* set keepOnSplit to false
* refactoring
* improve changed ranges detection
* move some helpers into core
Co-authored-by: Philipp Kühn <philippkuehn@MacBook-Pro-von-Philipp.local>
2021-12-03 08:53:58 +01:00
Philipp Kühn
3958bf1c22
fix: allow to re-apply current mark for input rules and paste rules, fix #2003
2021-10-10 22:23:32 +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
c2ccf68e8b
fix: fix a bug in markPasteRule
2021-07-28 17:18:08 +02:00
Philipp Kühn
4636b1a1a5
fix type for getAttributes
2021-07-26 15:36:12 +02:00
Joe Vallender
9ffd58cf25
feat: Allow a rule to be skipped from the getAttributes callback in markPasteRule ( #1625 )
...
For example: you are matching URLs with a Regex but want to make additional checks on the match array before deciding if you want to apply the mark or not. Returning null or false won't attempt to apply the mark. Currently the return value of getAttributes is applied unconditionally.
2021-07-26 15:13:05 +02:00
Philipp Kühn
7da647d99f
fix: fix a bug that messed up pasted link attributes, fix #1284
2021-05-07 09:54:40 +02:00
Philipp Kühn
6e87882820
fix bug in markPasteRule, fix #215
2021-03-18 10:54:16 +01:00
Philipp Kühn
7d121eb39a
improve build script
2020-11-10 09:21:47 +01:00
Philipp Kühn
12b783c4d2
formatting
2020-10-28 21:30:50 +01:00
Philipp Kühn
21c82c2cfa
improve eslint config
2020-09-25 13:52:17 +02:00
Philipp Kühn
40b0467650
fix link paste rule
2020-09-24 23:42:04 +02:00
Philipp Kühn
ac33eb483e
fix more linting errors
2020-09-24 00:29:05 +02:00
Philipp Kühn
434d77a664
add verbal expressions
2020-04-02 12:41:52 +02:00
Philipp Kühn
72cd81640e
refactoring
2020-04-02 08:58:28 +02:00
Philipp Kühn
28d5ae094b
add basic inputrules and pasterules
2020-04-02 08:53:59 +02:00