Nick Perez
ffb51d3b7e
fix(core): respect the editor's parseOptions ( #5742 )
...
Co-authored-by: guarmo <armando.guarino@tiptap.dev>
2024-10-21 12:55:35 +02:00
Kartikeya Choudhary
ae711abe32
fix(mention): update priority #5680 ( #5687 )
2024-10-20 05:51:03 +02:00
Markus Greystone
6fae240f88
fix: add clear mark parse rules to bold & italic marks ( #5705 )
2024-10-20 05:23:33 +02:00
bdbch
a2eea24b5b
Improve accessibility on the editor DOM element ( #5734 )
...
* added accessibility attributes to the editor DOM element
* added changesets
2024-10-16 11:34:26 +02:00
Éric Le Maître
364231a1bd
Fix editor destruction at the end of Vue transition ( #5648 )
...
* wip: destruction éditeur
* fix: replacing DOM nodes at unmount
* fix: event for useEditor destroy
* chore: Generating changeset
* chore: generating changeset
* chore: delete duplicate changeset
* revert: note tutorial
* feat: add Vue transition example
* fix: test for Vue transition
* fix: components within editor
* chore: remove useless ref
2024-10-14 10:26:12 +02:00
bdbch
4efd2278a1
Fix getMarkRange not finding marks when at the start of a mark ( #5717 )
...
* fix getMarkRange to always find a mark, even if cursor is at start of mark
* added changesets
* added integration tests for getMarkRange
* remove console.logs
* added forward and backward boundary checks for tests
2024-10-11 06:44:05 +02:00
bdbch
d96f679585
Fix NodePos logic for child position calculation and attribute changes ( #5716 )
...
* fix( nodepos child offsets when child is a non-text atom
* fix nodepos attribute update when node is not text
* added changesets
2024-10-10 12:43:58 +02:00
Jaap van Hoek
21df331b60
fix(table): respect resizeable columns colwidths ( #4955 )
2024-10-04 14:17:08 +02:00
Nick Perez
087e5812a6
fix: add extension-text-style as a dep of @tiptap/starter-kit #5691 ( #5693 )
2024-10-02 10:40:13 +02:00
Nick Perez
e606c06502
docs: update DecorationWithType
typings for accuracy ( #5692 )
2024-10-02 10:12:41 +02:00
Nick the Sick
7a7376c5f7
chore: wrong version
2024-10-01 11:37:53 +02:00
Nick the Sick
feea1f6880
chore: bump prosemirror view-version
2024-10-01 11:35:22 +02:00
github-actions[bot]
5d9b8d0907
chore(release): release version 2.8.0 ( #5669 )
2024-09-30 16:46:03 +02:00
이호연
93bc93353b
feat(character-count): add options for configuring counting ( #5674 )
2024-09-30 16:38:29 +02:00
Nick Perez
33e1305c20
fix(core): drop
/paste
event as Extensions #5681 ( #5684 )
2024-09-30 12:21:02 +02:00
Nick Perez
6834a7f7d6
build: type defs only emit for a single package's code ( #5665 )
2024-09-26 14:51:00 +02:00
github-actions[bot]
b2598dc2c2
chore(release): release version 2.7.4 ( #5667 )
2024-09-26 14:24:01 +02:00
Nick Perez
7ef401d7e5
fix(core): dereference editor from DOM element on destroy #5654 ( #5666 )
2024-09-26 11:55:40 +02:00
Kartikeya Choudhary
26056aa0c2
feat: add editorContainerProps
to EditorProvider
( #5661 )
2024-09-26 11:47:19 +02:00
github-actions[bot]
e8e4df38d5
chore(release): release version 2.7.3 ( #5652 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-09-25 18:03:01 +02:00
Nick Perez
15b54990b0
refactor: make NodeViewProps an interface again ( #5658 )
2024-09-25 15:51:30 +02:00
yaokailun
d57ee51223
fix(core): filter rendered extensionAttributes ( #5588 )
2024-09-24 22:38:26 +02:00
Nick the Sick
112d1495d6
docs: add type to nodeViews
2024-09-24 18:51:01 +02:00
Nick Perez
6d0518d418
fix: update zeed-dom version for style support #5352 ( #5640 )
2024-09-23 11:19:49 +02:00
github-actions[bot]
89d5713a62
chore(release): release version 2.7.2 ( #5631 )
2024-09-19 10:40:48 +02:00
Sven Adlung
cbe06d12db
fix(vue-3): late-registering plugins #5259 ( #5616 )
2024-09-18 14:46:45 +02:00
github-actions[bot]
20c7c95e54
chore(release): release v2.7.1 ( #5627 )
2024-09-17 16:03:23 +02:00
Nick the Sick
3809072668
chore: update peer dep versions
2024-09-17 15:43:04 +02:00
Gerard van Alphen
888f574b5f
fix: import in DropPlugin ( #5626 )
...
Co-authored-by: Gerard van Alphen <gerard.van.alphen@calcasa.nl>
2024-09-17 15:42:31 +02:00
Nick the Sick
a170cf4057
chore(release): release v2.7.0 ( #5560 )
2024-09-17 09:27:38 +02:00
Nick the Sick
e0c4db9674
revert: "fix(core): handle macOS text expansion properly in InputRules ( #5261 )"
...
This reverts commit 88e310b144
.
2024-09-16 06:19:37 +02:00
Nick the Sick
5d19e427e9
chore(release): release 2.7.0-pre.0
2024-08-27 15:09:30 +02:00
Ilya Iskra
9907eb32c2
fix(code-block-lowlight): support for lowlight v3 aliases ( #5551 )
2024-08-26 11:14:23 +02:00
Nick the Sick
58e91c4175
Merge branch 'main' into develop
2024-08-23 16:28:52 +02:00
github-actions[bot]
ec6121da1c
chore(release): release version 2.6.6 ( #5537 )
2024-08-23 12:29:35 +02:00
Ricardo Amaral
84f491ccab
fix(suggestion): dropdown can now be closed with Esc
( #4380 ) ( #5544 )
2024-08-23 12:26:58 +02:00
Ricardo Amaral
daad533863
fix(suggestion): dropdown can now be closed with Esc
( #4380 ) ( #5544 )
2024-08-23 12:26:24 +02:00
William Park
fafb5adc98
feat: add data attribute on ReactNodeViewContent div ( #5539 )
2024-08-23 09:28:52 +02:00
Ricardo Amaral
88e310b144
fix(core): handle macOS text expansion properly in InputRules ( #5261 )
2024-08-22 12:34:27 +02:00
Leopold Pinkernell
f805333f63
fix(core): check schema's nesting rules on contentCheck ( #5500 ) ( #5535 )
2024-08-21 22:44:17 +02:00
sifat haque
a22767e9e1
fix(core): styles de-duplicate in mergeAttributes ( #4610 )
2024-08-21 22:39:58 +02:00
Leopold Pinkernell
8d8d999803
fix(core): check schema's nesting rules on contentCheck ( #5500 ) ( #5535 )
2024-08-21 22:38:43 +02:00
bdbch
9e18d243e0
feature(core): add onPaste and onDrop events to editor ( #4843 )
2024-08-21 18:46:49 +02:00
bdbch
da8fcf373e
Use parent window for cross-frame instantiation ( #5534 )
...
* Add cross-iframe JS support to mention extension
* added changeset
---------
Co-authored-by: Taylor Ermolov <taylor@nermolov.com>
2024-08-21 14:51:32 +02:00
Nick Perez
07fa49d026
fix: preserve attributes of toggled node #3644 ( #5489 )
...
I only feel comfortable copying the attributes of the current node if the selection is only within a single node (I don't know what is expected if you had a selection of multiple nodes, the intersection of the attributes maybe?)
---------
Co-authored-by: Dominik Biedebach <dominik.biedebach@tiptap.dev>
2024-08-21 14:03:57 +02:00
Nick the Sick
dcffe441c5
Merge branch 'main' into develop
2024-08-21 09:17:27 +02:00
github-actions[bot]
f8d79da29b
chore(release): release version 2.6.5 ( #5532 )
2024-08-21 09:02:15 +02:00
Nick Perez
3c3d7148c2
fix(suggestion): sometimes a suggestion would not show up ( #4380 ) ( #5531 )
2024-08-21 08:53:47 +02:00
Nick Perez
8a55cdd2c3
fix(suggestion): sometimes a suggestion would not show up ( #4380 ) ( #5531 )
2024-08-21 08:51:04 +02:00
Nick the Sick
c076a0e3bb
fix: make type partial ( #5514 )
2024-08-21 08:12:19 +02:00
Jarle Friestad
dbcdaad30a
fix(task-item): prevent onBlur being trigged when toggled ( #5520 )
2024-08-20 16:54:16 +02:00
Alan North
97ea55fe4c
fix(core): read preventClearDocument
meta + allow disable core plugins #5490 ( #5514 )
2024-08-20 16:32:44 +02:00
Nick the Sick
cac2da16c4
chore: reorder types declarations
2024-08-20 16:30:05 +02:00
Nick Perez
7f24a6677b
refactor(core): update typings for NodeViews to be accurate to implementation #5483 ( #5526 )
2024-08-20 16:25:16 +02:00
Nick the Sick
04bf24aed0
chore: minor docs & renaming
2024-08-20 10:45:36 +02:00
yaokailun
4ff2a4eaa1
feat(react): allow attrs to be a callback
2024-08-18 13:27:30 +02:00
Nick Perez
c99627d7ce
refactor(react): default to using deep equal comparisons ( #5512 )
2024-08-17 15:27:11 +02:00
Nick Perez
bd34793a43
fix: update pm versions ( #5488 )
...
Co-authored-by: bdbch <6538827+bdbch@users.noreply.github.com>
2024-08-17 00:16:42 +02:00
github-actions[bot]
ae6cb9d175
chore(release): release version 2.6.4 ( #5497 )
2024-08-15 10:45:14 +02:00
Nick Perez
593f1070a8
fix(link): respect custom protocols #5468 ( #5470 )
...
When [we fixed a XSS vuln](https://github.com/ueberdosis/tiptap/pull/5160 ), we inadvertently broke the ability to use custom protocols, this resolves that by allowing additional custom protocols to be considered valid and not stripped out
2024-08-15 08:57:59 +02:00
Nick Perez
6a0f4f30f8
fix(react): attempt to cleanup editor instances, on creation #5492 ( #5496 )
...
The core of the change ended up being quite simple, because we can create the editor within the first render, we need to already schedule it's destruction.
Scheduling a destruction, ensures that an instance that was created in that first render pass can be cleaned up.
Waiting one more tick than before ensures that we don't accidentally destroy an editor instance that could actually be valid in the next render pass.
In StrictMode, there will be two editor instances created, the first will be created & quickly destroyed in 2 ticks.
In Normal React, there will only ever be 1 instance created and destroyed only on unmount.
2024-08-15 08:55:42 +02:00
github-actions[bot]
3f5dbbbaad
chore(release): release version v2.6.3 ( #5484 )
2024-08-14 20:52:53 +02:00
Mark Hemmings
c36e4c3afc
fix: Use undefined for type attribute default ( #5491 )
2024-08-14 20:50:11 +02:00
Tom Jenkinson
da76972998
fix(core): resolve text selection issues #2690 #5208 ( #4646 )
2024-08-13 22:46:16 +02:00
github-actions[bot]
b75454e3a4
chore(release): release version 2.6.2 ( #5482 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-08-13 18:20:54 +02:00
Nick the Sick
d4d99e8ad3
fix(react): the editor passed into EditorContent can be null
2024-08-13 18:19:03 +02:00
Nick the Sick
6d1621c513
chore: rm redundant export
2024-08-13 13:22:27 +02:00
github-actions[bot]
d137c3181f
chore(release): release version 2.6.1 ( #5480 )
2024-08-13 12:49:49 +02:00
Nick Perez
a42692e479
fix(react): update typescript types to be backwards-compatible ( #5479 )
2024-08-13 12:47:04 +02:00
Nick the Sick
b30462a2c6
chore: depend on @tiptap/pm #3746
2024-08-13 10:24:43 +02:00
github-actions[bot]
b2d5c94c4d
chore(release): release version 2.6.0 ( #5458 )
2024-08-13 09:04:51 +02:00
Nick the Sick
2c6590b3d4
fix: update docs and add tests for collaboration and priority docs
2024-08-12 11:14:41 +02:00
Nick the Sick
e11aa0de22
chore: initialize the collaboration cursor after the collaboration plugin
2024-08-12 11:02:32 +02:00
Nantris
222f2aca62
feat: update splitListItem to allow setting attrs ( #4253 )
2024-08-11 22:38:01 +02:00
Stepan Yurtsiv
08b4319215
fix(link): Do not convert link href
to number or boolean ( #5391 )
2024-08-11 19:48:54 +02:00
Nick Perez
8ea34e405e
fix(react): event handlers called once per event type #5463 ( #5465 )
2024-08-10 11:54:49 +02:00
Bastian Rihm
da7b337c3b
feat(ordered-list): add type
attribute ( #5344 )
2024-08-09 08:00:14 +02:00
Nick Perez
e31673d347
fix(react): resolves React NodeView performance issues ( #5273 )
2024-08-09 07:56:19 +02:00
David Newell
86a855355f
feat(core): add getContent
to nodePasteRules ( #4212 )
2024-08-09 07:34:17 +02:00
Nick Perez
c7fd0f80af
fix(react): update the types to reflect true options #5459 ( #5460 )
2024-08-08 08:27:10 +02:00
Nick the Sick
7280e2931e
docs: onTransaction has an editor prop
2024-08-07 17:50:04 +02:00
Nick the Sick
597c78156a
docs: update types to reflect setting plugin and pluginkey for meta
2024-08-07 17:29:58 +02:00
Nick Perez
c0e631f875
fix: bump priority of text-style extension fixes #4742 ( #5457 )
2024-08-07 15:39:49 +02:00
wagich
be63e59050
fixes vue 3 custom node views when using class components ( #5410 )
2024-08-07 15:08:42 +02:00
github-actions[bot]
535dcccb40
chore(release): publish version v2.5.9 ( #5451 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-08-06 17:03:26 +02:00
Nick Perez
d6e56c41e3
fix(extension-code-block-lowlight): use lowlight v3 and update demos ( #5374 )
2024-08-06 13:53:58 +02:00
Nick Perez
4b215f794e
fix(code-block): respect defaultLanguage
on code-block-lowlight add option to code-block
( #5406 )
2024-08-06 12:25:01 +02:00
Nick Perez
174aefe0f1
fix(collaboration): update y-prosemirror, respect onFirstRender
( #5411 )
2024-08-06 11:23:20 +02:00
Nick Perez
ae0254db97
feat(core): add ignoreWhitespace option to isNodeEmpty ( #5446 )
2024-08-06 10:05:50 +02:00
Nick Perez
efb27faf54
fix(core): use correct position for getMarksBetween ( #5412 )
2024-08-05 20:46:23 +02:00
Nick Perez
c1ff1b0d4d
fix(placeholder): add back-compat to deprecated placeholder functionality ( #5409 )
2024-08-05 18:09:10 +02:00
Nick Perez
7c8889a2a6
fix(react): optimize useEditor
and useEditorState
to reduce number of instances created while being performant #5432 ( #5445 )
2024-08-05 17:46:19 +02:00
Nick Perez
84ebd511d2
fix(core): resolve isNodeEmpty
criteria #5415 ( #5419 )
2024-08-01 09:02:34 +02:00
Ricardo Amaral
068559d0ac
chore: Use proper types for configure
methods (Extension/Mark/Node) ( #5421 )
2024-08-01 00:28:51 +02:00
Yuichiro Yamashita
6543f059ff
fix: allow task items to be parsed when only having <li data-checked
instead of only when <li data-checked="true"
(re-fix of #5366 ) ( #5426 )
...
* fix
* changeset
2024-08-01 00:25:29 +02:00
Rob LaFeve
0ec0af67b1
fix: use Array.from when converting Set ( #5428 )
2024-08-01 00:00:26 +02:00
github-actions[bot]
7d6c9399c6
chore(release): publish a new version 2.5.8 ( #5408 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-07-30 09:13:28 +02:00
Nick Perez
99d7820cbb
fix(react): always cleanup old editor instances ( #5414 )
2024-07-30 09:06:31 +02:00
Martin Bokša
ce141c2e69
chore(extension-table): remove unnecessary @ts-ignore, update view type ( #5387 )
2024-07-29 17:13:49 +02:00
Raman Paulau
f7f644f7b2
fix(vue-3): set editor's appContext.provide to forward inject chain ( #5397 )
...
Vue internally uses prototype chain to preserve injects across the entire component chain. Thus should avoid Object.assign or spread operator as it won't copy the prototype. All correct provides will be already present on `instance.provides`.
2024-07-29 17:02:15 +02:00