Commit Graph

151 Commits

Author SHA1 Message Date
Mateo Morris
d8f3404d3f
docs: fix arguments (#5044)
Change string booleans (i.e. 'true') into boolean booleans (i.e. true).
2024-04-09 11:04:48 +02:00
Benjamin Kroeger
0f41e389b3
extension/link: adds 'whenNotEditable' as option for openOnClick (#3312)
* checks whenNotEditable condition in clickHandler

* passes whenNotEditable option from to helper

* adds docs for whenNotEditable

* adds  to ClickHandlerOptions type
2024-04-08 13:21:10 +02:00
Tommy-Sun
ee645c1eca
Optionally delete full mention chip (#3341)
* Optionally delete full mention chip

* Added documentation for deleteOnBackspace

* rename all references of deleteOnBackspace to deleteTriggerWithBackspace
2024-04-06 00:26:48 +02:00
MOHAMMAD RASIM
cc41c4c2d2 fix for data attributes not rendering after pr #4082 (#4980) 2024-04-05 23:55:44 +02:00
svenadlung
45e70c881e docs: update strike shortcuts 2024-03-26 16:23:16 +01:00
bdbch
e00700110a
Update suggestion.md 2024-02-29 13:39:55 +01:00
bdbch
ac67aa49af Update Tiptap version in NodePos documentation 2024-01-29 13:50:39 +01:00
bdbch
3133794c3c docs: add toc to nodepos docs 2024-01-29 13:41:13 +01: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
Tim Heerwagen
cfdd81a9a7
fix youtube node typo in docs (#4740) 2024-01-03 20:07:32 +01:00
bdbch
894c732d29
chore(pm): update all prosemirror package dependencies (#4714)
* chore(pm): update all prosemirror package dependencies

* rchore(core): remove filterTransaction from state

* fix(demo): fix typings in vue demo

* feat(core): add missing prosemirror commands for joining textblocks

* adoc: added documentation for missing commands

---------

Co-authored-by: bdbch <dominik@bdbch.com>
2024-01-02 13:38:28 +01:00
Dominik Biedebach
2bb371126e merge main 2023-11-23 09:28:26 +01:00
Mohammad Rasim
6ff8323c72 update docs 2023-11-22 20:47:35 +01:00
Eric Bailey
76b8a29236 Update docs 2023-11-17 12:25:44 +01:00
bdbch
1d4374581f docs: add information about transaction mapping in chains 2023-10-12 18:20:55 +02:00
Dominik Biedebach
a5f7fe0a89 Sync develop with main
Sync develop branch with main – develop (RC) releases won't generate CHANGELOG.md entries anymore.
2023-09-14 17:33:32 +02:00
svenadlung
7832b96afb docs: complete hard break shortcuts 2023-09-04 09:48:47 +02:00
svenadlung
586e3c4ec7 docs: complete hard break shortcuts 2023-09-04 09:48:30 +02:00
svenadlung
4b7f8d7d42 docs: complete hard break shortcuts 2023-09-04 09:45:48 +02:00
svenadlung
f0965731a1 docs: complete hard break shortcuts 2023-09-04 09:44:21 +02:00
Eric Hasegawa
254ca1744d
docs(collaboration): fix typo in collaboration.md 2023-08-31 13:55:27 +02:00
Lode Claassen
d31e49b03a
docs: Improve introducing examples in the documentation (#4334)
* skip 'like that' when we don't need it anyway

* change to 'like this' because it is before the example instead of after
2023-08-18 10:53:07 -07:00
bdbch
ff929b179d
feat(placeholder): allow editor-is-empty class on any node (#4335) 2023-08-18 10:52:33 -07:00
bdbch
4fe87d35e5
add overrides to typography extension (#4287) 2023-08-10 20:30:56 -07:00
bdbch
7e7057ea43
chore(lists): move list keymap to extra extension (#4290)
* move list keymap to extra extension

* update docs and readme

* move list helpers out of core
2023-08-10 16:44:46 -07:00
Ben Lewis
7cf17d0b0c
Add support for custom selection builders (#4128)
* Add support for custom cursor builders

* Add documentation for selectionRender

---------

Co-authored-by: Ben Lewis <ben@engageli.com>
2023-08-03 10:30:28 +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
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
Hadi El Yakhni
c716ca199c
typo (#4175) 2023-07-07 10:57:06 +02:00
Timo
b6183362a8
add missing editor getters (#4150) 2023-06-25 02:58:07 +02:00
Patrick Baber
614fc8082c
feat: add tiptap class
* update docs
* update demos
2023-05-25 13:45:06 +02:00
Jan Thurau
dfae03bae8
Merge pull request #4041 from marcuslyons/patch-3
fix: missing word in toggle-node.md
2023-05-18 22:04:01 +02:00
Jan Thurau
8de3c7ccf9
Merge pull request #4040 from marcuslyons/patch-2
fix: typo in focus.md
2023-05-18 22:03:23 +02:00
Martin Kriegeskorte
9cc6c67685 docs: add tiptap collab ctas 2023-05-12 12:14:35 +02:00
Marcus Lyons
1436f3e24e
fix: missing word in toggle-node.md 2023-05-11 11:56:36 -06:00
Marcus Lyons
64731e1a1a
fix: typo in focus.md 2023-05-11 10:00:31 -06:00
Marcus Lyons
a2a9822f24
fix: typo in commands.md 2023-05-10 16:50:14 -06:00
svenadlung
1e4e8a80f2 docs: fix nodes list 2023-03-29 18:18:12 +02:00
Sven Adlung
1f2911b111
docs: remove pro extension callout from collab docs (#3883) 2023-03-27 15:42:43 +02:00
Sven Adlung
aed9cb0643
docs: update nodes and extensions lists (#3886) 2023-03-27 15:21:52 +02:00
svenadlung
84ac1dc9c7 update docs 2023-03-15 17:05:59 +01:00
svenadlung
9d2e94a857 docs: update extension list 2023-03-15 13:39:13 +01:00
René Eschke
b2ec51374d
Adds attributes to toggleList (#3776)
* Adds attributes to toggleList

When dealing with different variants of bullet lists, I wanted to adopt the same technique I used for different paragraph variants. Since `wrapInList` is capable of receiving attributes, just like `setNode` is, I don't see any reason why `toggleList` should not be capable of the same. 

Here's my bullet list extension in action that is in need of attributes support.

```js
export const CustomBulletList = BulletList.extend({
  content: 'listItem*',

  addAttributes() {
    return {
      variant: {
        default: DEFAULT_LIST,

        renderHTML: attributes => {
          return {
            class: `list-${attributes.variant}`,
          };
        },
      },
    };
  },

  addCommands() {
    return {
      toggleBulletList: attributes => (c) => {
        return c.commands.toggleListCustom(this.name, this.options.itemTypeName, attributes);
      },
    };
  },
});
```

* Update toggle-list.md

* Update toggle-list.md
2023-03-03 09:59:45 +01:00
Dominik
e597809c11
docs: add extension cli note to contributing docs (#3793)
* docs: add extension cli note to contributing docs

* docs: add notes to CLI

* docs: fix rollup and vite naming
2023-02-27 21:22:34 +01:00
taras-turchenko-moc
1ac3070abc
add optionalSlashSlash to protocol options (#3675)
* add optionalSlashSlash to protocol options

* Update documentation

* rename optionalSlashSlash to optionalSlashes

* regenerate package-lock.json with node v16
2023-02-27 14:03:47 +01:00
Hari Haran
36bb1e1041
feat: #3540 Ability to preserve marks on lists (#3541)
* feat: #3540 Ability to preserve marks on lists

* feat: preserveAttrs in list items

* `keepMarks` is working, but need help with `keepAttrs`

* fix: conflict

* avoid casting
2023-02-22 10:13:28 +01:00
Ed Pelc
5b5822a251
document removing or overriding link attributes (#3576)
The documentation mentions being able to override the `rel` on links but doesn't explain how. It also doesn't tell you how to remove the rel if needed(set to null).

Add an example of removing a default attribute and overriding one to a different value.
2023-02-18 18:39:13 +01:00
Sven Adlung
a66eb6b62a
Make y-prosemirror a peer dependency (extension-collaboration) (#3697)
* refactor(extension-collaboration): make y-prosemirror a peer dep

* docs: update installation of extension-collaboration

---------

Co-authored-by: Dominik <6538827+bdbch@users.noreply.github.com>
2023-02-07 10:20:37 +01:00
James
523aa5ce44
Added CSS Required for Setup (#3711)
* Added CSS Setup Context

It was previously not clear that additional CSS was required to display placeholders.

* Fixed Typo.
2023-02-07 10:07:50 +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