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
Jonas Thelemann
1c3568dcd9
fix(link): allow to unset target attribute ( #3425 )
...
Resolves #3276 .
2022-11-25 16:48:28 +01:00
Eduard Castellano
1c493f3593
Cleanup linkifyjs when the editor is destroyed ( #3316 )
2022-10-17 12:58:04 +02:00
Dominik
69923e2b0e
fix(extension/link): 🐛 fix last word value not being passed through when undefined ( #3258 )
2022-09-30 04:40:33 +02:00
Guy Marriott
539afce4fd
fix(link): ensure text blocks exist before referencing them ( #3251 )
...
Fixes #3250
2022-09-29 15:03:04 +02:00
Cameron Hessler
8f5fbef742
feat(extension-link) Change autolink to only apply on space ( #3232 )
...
Co-authored-by: Cameron Hessler <cameron.hessler@buildertrend.com>
2022-09-26 11:08:10 +02:00
John Franey
ae13cf61ad
fix(types): fix link and table type errors ( #3208 )
2022-09-20 23:54:36 +02:00
Dominik
1ebc8f8e14
chore: migrate to new versions of prosemirror packages ( #2854 )
...
* refactor: upgrade prosemirror packages to new typescript versions
* refactor: migrate to new typings from prosemirror
* style: fix linting issues
* style: fix linting issues
* style: fix linting issues
* fix(ci): fix build process by reimplement filterTransaction
* fix(extension-test): fix broken build because of wrong output file names
* fix: fix prosemirror-tables not being bundled correctly for ES6
* fix: move to prosemirror-tables-contently until es6 build is working
* fix: fix tests for youtube
* fix: fix youtube test
* fix(demos): fix demos build
2022-06-20 11:45:37 +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
Dominik Biedebach
fd593bb93e
style: fix linting issues
2022-06-06 18:19:59 +02:00
Shengchen Zhang
50083f3be1
Add support for custom protocols in extension-link ( #2832 )
2022-06-06 17:33:45 +02:00
Dominik Biedebach
3a3eb5311c
fix(extension-link): 🐛 fix auto link validation not working on paste
2022-05-16 12:00:25 +02:00
Dominik Biedebach
23e67adfa7
feat(extension-link): ✨ add validate option to link extension
...
#2779
2022-05-16 12:00:25 +02:00
Ken van der Eerden
a9e8f48b34
Allow class attribute through setLink()
...
While you can set a default value for the Link extensions class attribute using
```javascript
Link.configure({
HTMLAttributes: {
class: 'my-custom-class',
},
})
```
It is currently not possible to dynamically set the class attribute when calling setLink() e.g.
```javascript
this.editor.chain().focus().extendMarkRange('link').setLink({href: url, class: 'this class should be added'}).run();
```
This change allows for that by default, without needing to extend the Link extension.
2022-05-09 13:24:58 +02:00
Akshay Nair
947f311c0e
fix(extension-link): restricts parsing javascript:
pseudo-protocol
2022-03-24 17:17:08 +05:30
Philipp Kühn
ea10ffbc6a
fix: allow to remove autolinks with unsetLink
2022-01-07 21:33:38 +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
924b6508f9
fix: calculate correct autolink position when using leaf nodes in the same text block, fix #2231
2021-12-03 20:54:05 +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
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
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
14e458ea7d
feat: add extendEmptyMarkRange option to mark commands ( #1859 )
2021-09-08 09:32:22 +02:00
Philipp Kühn
78e2a6e775
add generic to commands type
2021-06-04 21:56:29 +02:00
Philipp Kühn
072905cb95
feat: add editor.getAttributes, deprecate editor.getNodeAttributes and editor.getMarkAttributes
2021-05-07 11:10:18 +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
9e9401e68b
feat: add linkOnPaste option for adding a link to the current selection if the pasted content only contains an url, fix #1210
2021-05-05 09:33:52 +02:00
Philipp Kühn
1c8ca95de2
refactor: remove AnyObject type
2021-04-21 09:43:31 +02:00
Philipp Kühn
33c30c0d6d
fix: fix a bug in link click handler, where we can’t click on text selections. fix #263
2021-04-11 18:59:07 +02:00
Philipp Kühn
bb1ae659a4
feat: add priority option to extensions
2021-04-07 18:29:16 +02:00
Philipp Kühn
56b4df044f
rename AllCommands to Commands
2021-02-16 18:39:37 +01:00
Philipp Kühn
ca8d1a4245
add command scope
2021-02-16 11:27:58 +01:00
Philipp Kühn
215c26748b
improve options interface
2021-02-10 18:25:08 +01:00
Philipp Kühn
55ff908423
refactoring
2021-02-10 18:05:02 +01:00
Philipp Kühn
290ff76e37
add Commands interface
2021-02-10 09:59:35 +01:00
Florian Wiech
4142637921
refactor: recreate extension exports
2020-12-07 21:32:50 +01:00
Florian Wiech
11de3a287f
refactor: restructure extensions
2020-12-07 21:09:02 +01:00
Philipp Kühn
ddc71f792a
manually merge HTMLAttributes
2020-11-25 09:50:54 +01:00
Hans Pagel
7a058b9c2f
fix linting
2020-11-24 17:29:43 +01:00
Hans Pagel
5685cf83a4
improve link testing
2020-11-24 17:26:47 +01:00
Philipp Kühn
2c5885c026
rename removeMark to unsetMark
2020-11-18 17:38:16 +01:00
Philipp Kühn
e3a3d99c51
rename addMark to setMark
2020-11-18 17:36:00 +01:00
Philipp Kühn
1b45acd5d5
rename some commands
2020-11-18 16:59:58 +01:00
Philipp Kühn
56c8bb1bd0
add link commands
2020-11-18 11:10:06 +01:00
Philipp Kühn
9d99e9c9d0
remove updateMarkAttributes
2020-11-18 11:05:19 +01:00
Philipp Kühn
a4ad1572e8
rename some methods
2020-11-17 21:10:08 +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
24c3a9abd3
use global namespace
2020-11-16 15:40:05 +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
034ee139a3
add new syntax to all packages
2020-11-15 23:25:25 +01:00