Commit Graph

6286 Commits

Author SHA1 Message Date
Abdullah Atta
4bca77e4e9
fix: do not use window.open for links in readonly mode (#4073)
* fix: do not use window.open for links in readonly mode

When `contenteditable` is `true`, the browser doesn't allow
direct link opens on clicking the `a` element. This is why we
need to call `window.open` to open our links.

However, when `contenteditable` is `false`, the default
browser mechanism for opening links works and there is no
need for using `window.open`.

* fix: linting errors
2023-07-07 15:31:41 +02:00
joenarus
3053865475
fix(extension-link): fixes link going to wrong url (#4078)
Co-authored-by: Joe Narus <joe@status.cx>
2023-07-07 15:30:13 +02:00
dependabot[bot]
a186ac40ee
build(deps-dev): bump vite from 2.9.13 to 2.9.16 in /demos (#4109)
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 2.9.13 to 2.9.16.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v2.9.16/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v2.9.16/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-07 15:19:38 +02:00
dependabot[bot]
1771b530d5
build(deps-dev): bump vite from 2.9.15 to 2.9.16 (#4110)
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 2.9.15 to 2.9.16.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v2.9.16/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v2.9.16/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-07 15:19:25 +02:00
dependabot[bot]
aa68529824
build(deps): bump actions/checkout from 3.5.0 to 3.5.3 (#4122)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.5.0 to 3.5.3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3.5.0...v3.5.3)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-07 15:19:07 +02:00
Thomas Portelange
193b991acc
Rel cannot be set (#4112)
Without the addAttributes entry, passing the rel attribute doesn't work (tested in 2.0.3)
2023-07-07 15:18:02 +02:00
Kento Moriwaki
6984ea11d7
Destroy editor in safe (#4000)
* Destroy editor in safe

* Use class component

* Use createElement
2023-07-07 15:17:32 +02:00
Slapbox
babf84b3e6
Fix mod+z/mod+y failed with capslock (#4132) 2023-07-07 15:09:24 +02:00
Hari Acharya
d710846ecb
fix(react): check props.clientRect before creating ReactRenderer (#4138)
* moved validation to top of function
* fixed
2023-07-07 15:08:18 +02:00
Dominik
7e38c0fa0a
New Cut Command & Position Mapping for insertContentAt (#4141)
* feature(core): add cut commandd and map positions for insertContent

* docs(core): added docs for cut command

* chore(demos): added demo for cut command

---------

Co-authored-by: bdbch <dominik@bdbch.com>
2023-07-07 13:17:13 +02:00
Dominik
5bd5bd4ecd
fix(react): update select state when text selection is around node (#4148) 2023-07-07 11:21:58 +02:00
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
Ricardo Amaral
b24df3aa4c
fix(link): Prevent auto-linking when typing URL inside inline code mark (#4160) 2023-07-07 11:05:34 +02:00
Brent McSharry
18946b1e35
remove unused let in mark input rules (#4162)
trivial change - the markEnd variable was assigned outside the block and then reassigned within the block without ever using the initial value. Using const assignment just above the first use of the variable improves readability.
2023-07-07 11:01:20 +02:00
Hadi El Yakhni
c716ca199c
typo (#4175) 2023-07-07 10:57:06 +02:00
Tommy
9ddef25e46
fix list styles nested inside of task item (#4172) 2023-07-07 10:50:42 +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
Patrick Baber
781cdfa54e
remove outdated screencasts (#4169) 2023-06-29 03:46:43 +02:00
Dominik
75f0418f03
chore: update codeowners file 2023-06-25 03:11:30 +02:00
Dominik
f36f1e65c7
chore: added CODEOWNERS file (#4154) 2023-06-25 03:10:32 +02:00
Timo
b6183362a8
add missing editor getters (#4150) 2023-06-25 02:58:07 +02:00
dependabot[bot]
7409fece9a
build(deps): bump cypress-io/github-action from 5.6.1 to 5.8.3 (#4139)
Bumps [cypress-io/github-action](https://github.com/cypress-io/github-action) from 5.6.1 to 5.8.3.
- [Release notes](https://github.com/cypress-io/github-action/releases)
- [Commits](https://github.com/cypress-io/github-action/compare/v5.6.1...v5.8.3)

---
updated-dependencies:
- dependency-name: cypress-io/github-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-25 02:56:18 +02:00
Cameron Hessler
b7dc5d4712
Fix 'enter' behavior on android custom node views (#4153) 2023-06-25 02:33:48 +02:00
svenadlung
238a3f0fde remove link to support packages 2023-06-24 12:13:28 -07:00
Dominik
e5e5b3ffad
chore: remove stalebot for the time being 2023-06-23 12:23:00 +02:00
Dominik Biedebach
3bb56f96ac chore: add default linter for vscode 2023-06-22 19:22:08 +02:00
bdbch
97019c6c99 chore: added dev alias to start 2023-06-21 01:18:29 +02:00
Dominik Biedebach
44996d60be v2.1.0-rc.9 2023-06-15 11:52:59 +02:00
Jan Thurau
2a86ac0774
adds cloud docs 2023-06-14 22:01:37 +02:00
Dominik Biedebach
2281a2273d refactor(lists): start refactoring lists code 2023-06-13 13:53:02 +02:00
Dominik Biedebach
d6c6dd8596 Merge branch 'develop' of github.com:ueberdosis/tiptap into bdbch/list-editing-improvements 2023-06-13 11:34:52 +02:00
Jan Thurau
2cb2d379f1
adds overview page for /docs/tutorials 2023-06-12 21:45:39 +02:00
Martin
75a17ba21f
Update README.md 2023-06-07 11:54:02 +02:00
Martin
b0198eb14b
Update README.md 2023-06-07 11:53:14 +02:00
Jan Thurau
4015e44ca2
Merge pull request #4096 from ueberdosis/docs/tutorials-1-react
Draft: docs: tutorials: adds react examples, makes it possible to add Lexica…
2023-06-02 18:40:09 +02:00
Jan Thurau
4ad21341f2
react docs 2023-06-02 18:26:24 +02:00
Jan Thurau
89bce5e650
WIP: trying to fix prod builds, adds first lexical example 2023-06-01 18:21:47 +02:00
Jan Thurau
87925f2b91
docs: tutorials: adds react examples, makes it possible to add Lexical-React as a code type 2023-05-31 22:39:18 +02:00
svenadlung
83c98aea92 v2.1.0-rc.8 2023-05-25 18:59:12 +02:00
svenadlung
e49171885b v2.1.0-rc.7 2023-05-25 17:57:40 +02:00
svenadlung
0953e2da97 fix package-lock 2023-05-25 17:29:39 +02:00
svenadlung
55d975d01c v2.1.0-rc.5 2023-05-25 14:29:15 +02:00
Sven Adlung
d19267ecef
fix(extension-link): fix paste handling
* do not dispatch transaction without any links getting pasted
* prevent onPaste handling in code blocks
2023-05-25 13:47:27 +02:00
Patrick Baber
614fc8082c
feat: add tiptap class
* update docs
* update demos
2023-05-25 13:45:06 +02:00
Jan Thurau
220d5646cd
docs: tiptap collab tutorial 2023-05-24 19:40:08 +02:00
Jan Thurau
c8eb9c3249
docs/posts/1: TiptapCollab -> Tiptap Collab 2023-05-24 17:52:32 +02:00
Jan Thurau
acf81b19b7
docs/posts/1: TiptapCollab -> Tiptap Collab 2023-05-24 17:51:52 +02:00
Jan Thurau
acaa0cd8d3
Merge pull request #3978 from xlei1123/main
Update js.md
2023-05-18 22:06:30 +02:00
Jan Thurau
d61a621186
Merge pull request #4038 from marcuslyons/patch-1
fix: typo in commands.md
2023-05-18 22:04:57 +02:00