Nick Perez
ab8389a32c
fix(vue-3): reapply performance updates ( #5373 )
...
---------
Co-authored-by: relchapt <reynald.lechapt@getmayday.co>
Co-authored-by: Rirax <rlechapt@student.42.fr>
Co-authored-by: Segev Finer <segev@swimm.io>
2024-07-22 13:18:03 +02:00
Nick the Sick
3b67e8adc6
chore: update typings to not conflict with globals
2024-07-19 14:30:55 +02:00
Nick the Sick
dbab8e42ea
revert: "fix(vue-3): fix editor.state updating too late during a transaction due to reactiveState fixes #4870 ( #5252 )"
...
This reverts commit 509676ed4a
.
2024-07-15 12:21:12 +02:00
Segev Finer
509676ed4a
fix(vue-3): fix editor.state updating too late during a transaction due to reactiveState fixes #4870 ( #5252 )
2024-07-02 21:58:46 +02:00
Nick Perez
74bfdc5bef
feat: error handling of invalid content for a schema ( #5178 )
...
This change introduces two new top-level options to the editor: `enableContentCheck` & `onContentError` for dealing with content supplied that does not match the prose-mirror schema generated by the set of tiptap extensions.
`enableContentCheck` allows the app developer to opt into the behavior to check for invalid schemas (this change is otherwise backwards compatible).
When true, this will try to parse the document, and any content that does not match the schema will emit a `contentError` which can be listened to via the `onContentError` callback.
2024-06-04 09:32:54 +02:00
Illia Sakovich
b7107832c0
Add blockSeparator
option to clipboardTextSerializer
core extension ( #5019 )
...
* Update clipboardTextSerializer.ts
* Update clipboardTextSerializer.ts
* feat(core): add core extension options to editor options
---------
Co-authored-by: Dominik Biedebach <dominik.biedebach@ueber.io>
2024-04-08 13:12:40 +02:00
bdbch
57eba08f46
feature: nodepos ( #4701 )
...
* start writing docs for nodepos
* added nodepos docs
* added to links
---------
Co-authored-by: bdbch <dominik@bdbch.com>
2024-01-08 20:21:23 +01: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
Patrick Baber
614fc8082c
feat: add tiptap class
...
* update docs
* update demos
2023-05-25 13:45:06 +02:00
Dominik
3c07ca0b9c
fix(core): fix destroyed view causing errors on dispatchTransaction ( #3799 )
2023-02-28 10:50:43 +01:00
Harrison Lo
c2f8347025
Override schema text serializers if provided in getText options ( #3672 )
2023-02-18 18:26:49 +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
Zaymon Antonio
acf833abec
🧹 Allow editor.setEditable
to omit updates ( #3301 )
...
* 🧹 Allow `editor.setEditable` to omit updates
* 📚 Document change to `editor.setEditable`
2023-01-20 09:55:28 +01:00
Rhys-T
4851fc5e9b
fix(core): make setEditable trigger all 'update' listeners ( #3140 )
2022-09-01 13:55:19 +02:00
Dominik
de1253a8b0
fix(core): make setEditable trigger onUpdate function ( #2935 )
2022-08-22 14:24:21 +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
Steven DeMartini
819622c202
Fix typo in text-serializers-from-schema function
2022-05-17 17:38:00 +02:00
Felix Klein
ccc37d5f24
add support for CSP nonces in createStyleTag
2022-05-13 14:11:52 +02:00
Philipp Kühn
5daa870b09
feat: add some improvements to CharacterCount
extension ( #2256 ), fix #1049 , fix #1550 , fix #1839 , fix #2245
...
* fix a bug when exceeding the character limit
* find a better way to limit the doc size
* check paste events
* add storage method
* refactoring
* use textBetween instead of textContent
* return early if no limit is set
* add words method to storage
* show word count in charactercount demo
Co-authored-by: Philipp Kühn <philippkuehn@MacBook-Pro-von-Philipp.local>
2021-12-08 21:26:30 +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
philippkuehn
b4ab7f079b
ci: fix code style linting errors
2021-12-03 09:36:51 +00:00
BrianHung
de39853026
fix: initialize autofocus selection in createView
( #2212 )
...
* initialize autofocus selection in `createView`
* fix missing variable and null error
* remove unused imports
2021-12-03 10:35:17 +01:00
Philipp Kühn
40a9404c94
add newline-after-var rule to eslint config
2021-12-03 00:03:39 +01:00
Jason Galea
6583edeb1f
fix: update getJSON return type to JSONContent ( #2153 )
2021-11-10 00:24:18 +01:00
Philipp Kühn
a0a88acd13
fix: don't remove the tiptap styles on destroy, fix #2120 , fix #2143
2021-11-09 17:16:38 +01:00
Philipp Kühn
7ffabf251c
feat: Add extension storage ( #2069 )
2021-10-22 08:52:54 +02: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
8db5a943d2
refactoring
2021-09-30 09:34:45 +02:00
HuiiBuh
54e85fd284
feat: #1898 Made the EventEmitter generic to improve the types of the tiptap events ( #1959 )
2021-09-30 09:25:40 +02:00
Philipp Kühn
2c9cf03398
fix: getHTMLFromFragment now expects a fragment instead of node
2021-09-28 21:34:57 +02:00
Philipp Kühn
0255dbdfcd
refactoring
2021-09-21 20:21:36 +02:00
Flávio Carvalho
4178281a74
feat: add enableCoreExtensions flag ( #1923 )
2021-09-21 20:21:36 +02:00
Philipp Kühn
fe6a3e7491
feat: add getText() and generateText() methods ( fix #1428 ) ( #1875 )
...
* move getTextBetween method
* add getText method
* refactoring
* refactoring
* refactoring
* move renderText to schema, add generateText method
* add GenerateText demo
* docs: update
* remove demo from html page
2021-09-09 23:51:05 +02:00
Philipp Kühn
920d9a0113
fix lint error
2021-08-13 15:50:18 +02:00
Philipp Kühn
9cf99fedc0
refactor: remove deprecated packages
2021-08-13 15:47:53 +02:00
Philipp Kühn
7f6ed0b1c0
feat: add transaction to all events if possible, see #1461
2021-08-13 14:01:50 +02:00
Philipp Kühn
f6f8cf9f93
fix: fix isEditable check on initialization
2021-08-09 17:40:45 +02:00
Philipp Kühn
80296aa8d0
refactoring
2021-08-09 17:24:18 +02:00
Robert van Hoesel
e6f67caef3
fix: fix updating editorProps via setOptions ( #1540 ), fix #1518
2021-08-09 17:19:50 +02:00
Philipp Kühn
939fc3d93a
fix: prevent bug when editor is destroyed very fast
2021-05-28 12:14:12 +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
b3fb0228e0
fix: ignore editable in dispatchTransaction, fix #1239
2021-05-04 10:46:32 +02:00
Philipp Kühn
0b67f18e3a
fix: fix onBeforeCreate event handler, fix #1236
2021-04-27 21:52:22 +02:00
Philipp Kühn
1c8ca95de2
refactor: remove AnyObject type
2021-04-21 09:43:31 +02:00
Philipp Kühn
9f64015157
feat: remove resize event handler
2021-04-16 12:51:47 +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
beb96c5cbf
fix: remove debug log
2021-04-07 16:03:01 +02:00