Commit Graph

6161 Commits

Author SHA1 Message Date
Martin Kriegeskorte
8c3ea97ca0 docs: add ai to docs 2023-07-30 20:08:55 -07:00
svenadlung
05a2edfc16 fix(demos): update deps 2023-07-26 11:16:22 +02:00
tsukinose
cf221995cc
docs: fix HTML tag
Fix p tag to h1 tag
2023-07-25 13:58:03 +02:00
svenadlung
6383fd5408 fix(demos): add missing extensions 2023-07-25 13:34:55 +02:00
svenadlung
bdc51d12b5 Merge branch 'main' into develop
# Conflicts:
#	CHANGELOG.md
#	demos/CHANGELOG.md
#	demos/package-lock.json
#	demos/package.json
#	demos/src/Examples/CollaborativeEditing/React/index.jsx
#	lerna.json
#	package-lock.json
#	packages/core/CHANGELOG.md
#	packages/core/package.json
#	packages/extension-blockquote/CHANGELOG.md
#	packages/extension-blockquote/package.json
#	packages/extension-bold/CHANGELOG.md
#	packages/extension-bold/package.json
#	packages/extension-bubble-menu/CHANGELOG.md
#	packages/extension-bubble-menu/package.json
#	packages/extension-bullet-list/CHANGELOG.md
#	packages/extension-bullet-list/package.json
#	packages/extension-character-count/CHANGELOG.md
#	packages/extension-character-count/package.json
#	packages/extension-code-block-lowlight/CHANGELOG.md
#	packages/extension-code-block-lowlight/package.json
#	packages/extension-code-block/CHANGELOG.md
#	packages/extension-code-block/package.json
#	packages/extension-code/CHANGELOG.md
#	packages/extension-code/package.json
#	packages/extension-collaboration-cursor/CHANGELOG.md
#	packages/extension-collaboration-cursor/package.json
#	packages/extension-collaboration/CHANGELOG.md
#	packages/extension-collaboration/package.json
#	packages/extension-color/CHANGELOG.md
#	packages/extension-color/package.json
#	packages/extension-document/CHANGELOG.md
#	packages/extension-document/package.json
#	packages/extension-dropcursor/CHANGELOG.md
#	packages/extension-dropcursor/package.json
#	packages/extension-floating-menu/CHANGELOG.md
#	packages/extension-floating-menu/package.json
#	packages/extension-focus/CHANGELOG.md
#	packages/extension-focus/package.json
#	packages/extension-font-family/CHANGELOG.md
#	packages/extension-font-family/package.json
#	packages/extension-gapcursor/CHANGELOG.md
#	packages/extension-gapcursor/package.json
#	packages/extension-hard-break/CHANGELOG.md
#	packages/extension-hard-break/package.json
#	packages/extension-heading/CHANGELOG.md
#	packages/extension-heading/package.json
#	packages/extension-highlight/CHANGELOG.md
#	packages/extension-highlight/package.json
#	packages/extension-history/CHANGELOG.md
#	packages/extension-history/package.json
#	packages/extension-horizontal-rule/CHANGELOG.md
#	packages/extension-horizontal-rule/package.json
#	packages/extension-image/CHANGELOG.md
#	packages/extension-image/package.json
#	packages/extension-italic/CHANGELOG.md
#	packages/extension-italic/package.json
#	packages/extension-link/CHANGELOG.md
#	packages/extension-link/package.json
#	packages/extension-list-item/CHANGELOG.md
#	packages/extension-list-item/package.json
#	packages/extension-mention/CHANGELOG.md
#	packages/extension-mention/package.json
#	packages/extension-ordered-list/CHANGELOG.md
#	packages/extension-ordered-list/package.json
#	packages/extension-paragraph/CHANGELOG.md
#	packages/extension-paragraph/package.json
#	packages/extension-placeholder/CHANGELOG.md
#	packages/extension-placeholder/package.json
#	packages/extension-strike/CHANGELOG.md
#	packages/extension-strike/package.json
#	packages/extension-subscript/CHANGELOG.md
#	packages/extension-subscript/package.json
#	packages/extension-superscript/CHANGELOG.md
#	packages/extension-superscript/package.json
#	packages/extension-table-cell/CHANGELOG.md
#	packages/extension-table-cell/package.json
#	packages/extension-table-header/CHANGELOG.md
#	packages/extension-table-header/package.json
#	packages/extension-table-row/CHANGELOG.md
#	packages/extension-table-row/package.json
#	packages/extension-table/CHANGELOG.md
#	packages/extension-table/package.json
#	packages/extension-task-item/CHANGELOG.md
#	packages/extension-task-item/package.json
#	packages/extension-task-list/CHANGELOG.md
#	packages/extension-task-list/package.json
#	packages/extension-text-align/CHANGELOG.md
#	packages/extension-text-align/package.json
#	packages/extension-text-style/CHANGELOG.md
#	packages/extension-text-style/package.json
#	packages/extension-text/CHANGELOG.md
#	packages/extension-text/package.json
#	packages/extension-typography/CHANGELOG.md
#	packages/extension-typography/package.json
#	packages/extension-underline/CHANGELOG.md
#	packages/extension-underline/package.json
#	packages/extension-youtube/CHANGELOG.md
#	packages/extension-youtube/package.json
#	packages/html/CHANGELOG.md
#	packages/html/package.json
#	packages/pm/CHANGELOG.md
#	packages/pm/package.json
#	packages/react/CHANGELOG.md
#	packages/react/package.json
#	packages/starter-kit/CHANGELOG.md
#	packages/starter-kit/package.json
#	packages/suggestion/CHANGELOG.md
#	packages/suggestion/package.json
#	packages/vue-2/CHANGELOG.md
#	packages/vue-2/package.json
#	packages/vue-3/CHANGELOG.md
#	packages/vue-3/package.json
2023-07-17 13:03:44 +02:00
svenadlung
c4e655fb07 v2.0.4 2023-07-17 09:40:21 +02:00
Sven Adlung
7f2c6194fd
feat(core): add the ability to register CSS via extension 2023-07-17 09:32:58 +02:00
bdbch
73ea998514 v.2.1.0-rc-12 2023-07-14 06:08:29 +02:00
Sebastian Schrama
849704c2d6 fixed wording 2023-07-11 11:12:17 -07:00
svenadlung
39589eda22 reenable collab demo 2023-07-11 09:33:53 -07:00
bdbch
d689e2d9c1
React context implementation for Tiptap (#4192)
* feat(react): add react context implementation

* chore(docs): updated react docs & demos for new context

* chore(docs): added slot docs

* chore(docs): fix typo

* chore(react): use correct editor package

* fix typo in react installation docs

* update react typings to latest version

* fix types

---------

Co-authored-by: bdbch <dominik@bdbch.com>
2023-07-11 18:20:43 +02:00
bdbch
cc2a0f1bc9 update demo 2023-07-11 10:28:10 +02:00
bdbch
e661bbbbc9 update demo 2023-07-11 10:27:57 +02:00
bdbch
b38c1143a0 temporary disable collaboration demo 2023-07-11 10:18:15 +02:00
bdbch
f3466b62b8 temporary disable collaboration demo 2023-07-11 10:11:32 +02:00
Patrick Baber
1fe94efa2d
add link to version 1 of the docs (#4197) 2023-07-10 23:58:33 +02:00
Flo Edelmann
c30594498e
Make Vue 2 nodeViewProps compatible with @vue/composition-api (#4123)
* Add `vue-ts-types` as dependency for `@tiptap/vue-2`

* Use `vue-ts-types` for Vue 2 `nodeViewProps`

to make them compatible with `@vue/composition-api`
2023-07-10 16:26:34 +02:00
dependabot[bot]
15df913df6
build(deps): bump actions/setup-node from 3.6.0 to 3.7.0 (#4196)
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 3.6.0 to 3.7.0.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v3.6.0...v3.7.0)

---
updated-dependencies:
- dependency-name: actions/setup-node
  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-07-10 14:41:56 +02:00
Dominik Biedebach
706508e975 v2.1.0-rc.11 2023-07-07 16:22:50 +02:00
Dominik
6b65af8fc3
fix(core): fix cut and insertContentAt functions (#4187) 2023-07-07 16:21:58 +02:00
Dominik Biedebach
c1d18543b0 fix(tests): fix link rel tests 2023-07-07 16:01:34 +02:00
Dominik Biedebach
f92916d2ea v2.1.0-rc.10 2023-07-07 15:58:26 +02:00
Dominik Biedebach
f13fffda58 update package-lock 2023-07-07 15:57:52 +02:00
Rico
853650885b
feat(docs): added cdn installation guide (#4045)
* Update cdn.md

Added 3 examples of CDN usage.

* Update installation.md

Uncommented CDN line

* Update cdn.md

removed Skypack -- not reliable in testing with Codepen.

* Update cdn.md

removed esm.run. I couldn't solve the issue.
2023-07-07 15:35:07 +02:00
Segev Finer
87b83e312c
Fix component names in Vue 3 devtools (#3970) 2023-07-07 15:32:25 +02:00
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