Philipp Kühn
9c38d2713e
Revert "Publish"
...
This reverts commit fa502c9f11
.
2022-06-17 09:55:42 +02:00
Philipp Kühn
fa502c9f11
Publish
...
- @tiptap/core@2.0.0-beta.177
- @tiptap/extension-blockquote@2.0.0-beta.27
- @tiptap/extension-bubble-menu@2.0.0-beta.57
- @tiptap/extension-bullet-list@2.0.0-beta.27
- @tiptap/extension-character-count@2.0.0-beta.27
- @tiptap/extension-code-block-lowlight@2.0.0-beta.69
- @tiptap/extension-code-block@2.0.0-beta.38
- @tiptap/extension-collaboration-cursor@2.0.0-beta.35
- @tiptap/extension-collaboration@2.0.0-beta.34
- @tiptap/extension-color@2.0.0-beta.10
- @tiptap/extension-floating-menu@2.0.0-beta.52
- @tiptap/extension-focus@2.0.0-beta.41
- @tiptap/extension-font-family@2.0.0-beta.22
- @tiptap/extension-gapcursor@2.0.0-beta.35
- @tiptap/extension-hard-break@2.0.0-beta.31
- @tiptap/extension-heading@2.0.0-beta.27
- @tiptap/extension-history@2.0.0-beta.22
- @tiptap/extension-horizontal-rule@2.0.0-beta.32
- @tiptap/extension-image@2.0.0-beta.28
- @tiptap/extension-link@2.0.0-beta.39
- @tiptap/extension-list-item@2.0.0-beta.21
- @tiptap/extension-mention@2.0.0-beta.98
- @tiptap/extension-ordered-list@2.0.0-beta.28
- @tiptap/extension-paragraph@2.0.0-beta.24
- @tiptap/extension-placeholder@2.0.0-beta.49
- @tiptap/extension-table-cell@2.0.0-beta.21
- @tiptap/extension-table-header@2.0.0-beta.23
- @tiptap/extension-table-row@2.0.0-beta.20
- @tiptap/extension-table@2.0.0-beta.50
- @tiptap/extension-task-item@2.0.0-beta.33
- @tiptap/extension-task-list@2.0.0-beta.27
- @tiptap/extension-text-style@2.0.0-beta.24
- @tiptap/extension-youtube@2.0.0-beta.2
- @tiptap/html@2.0.0-beta.176
- @tiptap/react@2.0.0-beta.110
- @tiptap/starter-kit@2.0.0-beta.186
- @tiptap/suggestion@2.0.0-beta.93
- @tiptap/vue-2@2.0.0-beta.80
- @tiptap/vue-3@2.0.0-beta.92
2022-06-17 09:44:21 +02:00
Dominik
1c0554b7c0
feat(extension/youtube): ✨ new youtube embed extension ( #2814 )
...
* feat(extension/youtube): ✨ new youtube embed extension
* fix(extension/youtube): remove wrong destroy call on undefined editor
* fix(extension/youtube): 🐛 fix youtu.be share urls not being recognized correctly
* style: remove stray console.log
* style: remove empty line
* docs(docs): update youtube docs
* Capitalize tiptap
* Capitalize Tiptap
* style(extension/youtube): ✏️ change youtube typing
Co-authored-by: Markus Krause <markus.krause@ueber.io>
2022-06-17 05:29:48 +02:00
Dominik Biedebach
5989f3b780
fix(extension/collaboration): 🚑 pin y-prosemirror version to 1.0.20 to fix broken functionality with vue
2022-06-17 05:08:54 +02:00
Dominik
fa8c4ca639
refactor: use index files for imports to simplify the export flow ( #2870 )
2022-06-11 07:11:14 +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
Enrique Alcántara
39f5e4c31e
Declare lowlight as a peerDependency ( #2625 )
...
Declare lowlight as a peerDependency to delegate
the control of which version of lowlight is used
to the client application
Co-authored-by: Enrique Alcantara <ealcantara@gitlab.com>
2022-06-06 19:33:52 +02:00
Dominik Biedebach
fd593bb93e
style: fix linting issues
2022-06-06 18:19:59 +02:00
Ruben Robles
18bcc64aa7
fix(textStyle): Null-safe parseHTML getting no color/fontFamily from HTMLElement styles ( #2825 )
...
* fix(color): parseHTML getting no color get replace of undefined
* fix(fontFamily): Null-safe at parseHTML, replace of undefined
2022-06-06 17:36:08 +02:00
Shengchen Zhang
50083f3be1
Add support for custom protocols in extension-link ( #2832 )
2022-06-06 17:33:45 +02:00
travis
d85444c310
Fixed: Avoid mutating a prop directly
error message to reproduce ( #2834 )
2022-06-06 17:33:13 +02:00
Dominik
f019f70a19
fix(suggestion): 🐛 make clientrect prop optional as it can potentially be undefined ( #2813 )
...
This commit makes the clientRect prop optional - this means that this value can be null. This allows developers using the suggestion extension to know that they have to implement a check for the clientRect before using it.
#2795
2022-05-27 12:31:46 +02:00
Ralph Schindler
9cdd0eb3b3
Enhancement: only Vue.extend() non-VueConstructor arguments
2022-05-27 12:10:17 +02:00
Ricardo Amaral
5fef431d09
fix: Only trigger image input rule at the start or with a preceding space
2022-05-27 12:09:36 +02:00
Jon Noronha
13a03425b3
lint fixes
2022-05-21 01:05:00 +02:00
Jon Noronha
23483d5e1a
isRequired on attrs
2022-05-21 01:05:00 +02:00
Kasper Nilsson
6fe302430e
Make prosemirror-model a peer dep
2022-05-20 22:33:50 +02:00
Kasper Nilsson
5f44aa02f0
Fix lint issue
2022-05-20 22:33:50 +02:00
Kasper Nilsson
515300bb26
Respond to review feedback
2022-05-20 22:33:50 +02:00
Kasper Nilsson
71e941f3da
Fix lint
2022-05-20 22:33:50 +02:00
Kasper Nilsson
2875fbe1c9
Make option a callback, update docs
2022-05-20 22:33:50 +02:00
Kasper Nilsson
eda8d801b5
Whoops
2022-05-20 22:33:50 +02:00
Kasper Nilsson
8874e5e5e6
Add option to allow task items to be checkable (uncontrolled)
...
Useful for drafting interactive documents. Could see this expanding to potentially also support passing a callback?
Will happily update documentation if this approach is accepted!
2022-05-20 22:33:50 +02:00
Dominik Biedebach
ecee74a94d
refactor: export new helper from index.ts
2022-05-20 19:04:55 +02:00
Dominik Biedebach
0597e474af
style: move node text content into helper function
2022-05-20 19:04:55 +02:00
Dominik Biedebach
30c39c94c9
style: remove stray console log from input rule
2022-05-20 19:04:55 +02:00
Dominik Biedebach
64b23e120c
fix(core): 🐛 fix inputrule not recognizing text content of non-text leaf nodes
2022-05-20 19:04:55 +02:00
Anton Liubushkin
d84ce08dcf
Update ReactNodeViewRenderer.tsx
...
remove trailing spaces
2022-05-20 13:33:17 +02:00
Anton Liubushkin
21913445bc
Update ReactNodeViewRenderer.tsx
2022-05-20 13:33:17 +02:00
Anton Liubushkin
00cd74e2c6
Add className
option and pass through to ReactRenderer
2022-05-20 13:33:17 +02:00
Philipp Kühn
1789af864f
Publish
...
- @tiptap/core@2.0.0-beta.176
- @tiptap/extension-link@2.0.0-beta.38
- @tiptap/extension-mention@2.0.0-beta.97
- @tiptap/extension-table@2.0.0-beta.49
- @tiptap/html@2.0.0-beta.175
- @tiptap/starter-kit@2.0.0-beta.185
- @tiptap/suggestion@2.0.0-beta.92
- @tiptap/vue-2@2.0.0-beta.79
2022-05-18 10:53:18 +02:00
Steven DeMartini
819622c202
Fix typo in text-serializers-from-schema function
2022-05-17 17:38:00 +02:00
Steven DeMartini
155955c9a9
Export helper for text serializers
...
For plugins and other user-defined extensions, it's useful to be able to
be able to use the text-serializers-from-schema helper, like is done in
the built-in clipboardTextSerializer extension
(43611ea2e7/packages/core/src/extensions/clipboardTextSerializer.ts (L21)
).
2022-05-17 17:38:00 +02:00
Ivan Pantic
feef365b53
Expose "range" to textSerializer. Used in "getTextBetween"
2022-05-17 17:36:49 +02:00
JDinABox
0fb68af3a1
Fix extendMarkRange doesn't work when cursor is at end of mark
2022-05-17 13:30:54 +02:00
Dominik Biedebach
3a3eb5311c
fix(extension-link): 🐛 fix auto link validation not working on paste
2022-05-16 12:00:25 +02:00
Dominik Biedebach
23e67adfa7
feat(extension-link): ✨ add validate option to link extension
...
#2779
2022-05-16 12:00:25 +02:00
Felix Klein
ccc37d5f24
add support for CSP nonces in createStyleTag
2022-05-13 14:11:52 +02:00
Dominik Biedebach
413a923d57
style(vue2): fix eslint issue with dangling underscore
2022-05-13 10:22:31 +02:00
Ralph Schindler
5bc77081b7
hotfix: ensure VueNodeViewRenderer will attempt to use the editors global vue instance when extending for components
2022-05-13 09:53:07 +02:00
David Ilizarov
e17c41498a
fix: lint error
2022-05-11 10:22:00 +02:00
David Ilizarov
7401d45b7e
fix: properly calculate setDragImage position
2022-05-11 10:22:00 +02:00
Ken van der Eerden
a9e8f48b34
Allow class attribute through setLink()
...
While you can set a default value for the Link extensions class attribute using
```javascript
Link.configure({
HTMLAttributes: {
class: 'my-custom-class',
},
})
```
It is currently not possible to dynamically set the class attribute when calling setLink() e.g.
```javascript
this.editor.chain().focus().extendMarkRange('link').setLink({href: url, class: 'this class should be added'}).run();
```
This change allows for that by default, without needing to extend the Link extension.
2022-05-09 13:24:58 +02:00
Jon Noronha
0819e29e57
again
2022-04-29 12:47:11 +02:00
Jon Noronha
1dbd26c828
lint fix
2022-04-29 12:47:11 +02:00
Jon Noronha
b7c3b113dd
Update findSuggestionMatch.ts
2022-04-29 12:47:11 +02:00
Dominik Biedebach
dd3e27b0e4
fix: fix suggestion package.json
2022-04-29 10:42:54 +02:00
dphuang2
7053898a19
Update Suggestion package.json
...
Fixes usage with Yarn v3
2022-04-29 10:36:09 +02:00
Enrique Alcantara
d2e00ad782
Remove prosemirror-code from table extension build
...
Add prosemirror-view, prosemirror-model
and prosemirror-state dependencies to the
extension-table package.json file to indicate
to rollup that these dependencies should not
be included in the distribution file
2022-04-29 10:35:06 +02:00
Ricardo Amaral
7cae9673f0
feat: Add a generic type for suggestion items
2022-04-28 14:23:00 +02:00
Ricardo Amaral
70cb809702
feat: Add onBeforeStart
and onBeforeUpdate
handlers to the render function
2022-04-28 12:22:16 +02:00
Philipp Kühn
90e719c711
Publish
...
- @tiptap/core@2.0.0-beta.175
- @tiptap/extension-bubble-menu@2.0.0-beta.56
- @tiptap/extension-character-count@2.0.0-beta.26
- @tiptap/extension-floating-menu@2.0.0-beta.51
- @tiptap/extension-link@2.0.0-beta.37
- @tiptap/extension-mention@2.0.0-beta.96
- @tiptap/extension-task-item@2.0.0-beta.32
- @tiptap/html@2.0.0-beta.174
- @tiptap/react@2.0.0-beta.109
- @tiptap/starter-kit@2.0.0-beta.184
- @tiptap/suggestion@2.0.0-beta.91
- @tiptap/vue-2@2.0.0-beta.78
- @tiptap/vue-3@2.0.0-beta.91
2022-04-27 22:50:51 +02:00
Grigory Kovalenko
cd99a163e2
add support for CSS Modules
2022-04-22 22:39:37 +02:00
Dany Castillo
a6fd827d31
fix children property not being defined in React.FC type
2022-04-14 00:18:29 +02:00
Dany Castillo
7deaf97c65
upgrade React types to v18
2022-04-14 00:18:29 +02:00
Dany Castillo
2f3a0312a8
upgrade packages to support React 18
2022-04-14 00:18:29 +02:00
bdbch
4108e9f991
Merge pull request #2646 from phenax/patch-1
...
fix(extension-link): prevent parsing `javascript:` pseudo-protocol
2022-04-12 10:14:40 +02:00
bdbch
10855a4d92
Merge pull request #2696 from pradel/feature/fix-peer-dependencies-char-count
...
fix: remove extension-text-style from character-cout peer dependencies
2022-04-12 10:02:29 +02:00
bdbch
08539b91c9
Merge pull request #2681 from storipress/improve-node-view-props-typing
...
fix: improve Vue nodeViewProps typing
2022-04-12 10:02:10 +02:00
bdbch
5b4f3d634f
Merge pull request #2698 from ueberdosis/fix-task-item-regex
...
fix: allow [] as a prefix for task items
2022-04-10 21:44:58 +02:00
Dominik Biedebach
06fd7fb429
fix: allow [] as a prefix for task items
2022-04-10 21:05:57 +02:00
bdbch
a8f094a3d2
Merge pull request #2668 from fleon/patch-1
...
fix: Allow tippyOptions.getReferenceClientRect in bubble menu to be overridden
2022-04-10 18:01:32 +02:00
bdbch
45591ef317
Merge pull request #2692 from scottsidwell/fix/prevent-active-suggestions-when-read-only
...
fix: prevent suggestions from being active when editor is readonly
2022-04-10 11:42:27 +02:00
Scott Sidwell
45990cdc0f
fix: prevent suggestions from being active when editor is readonly
2022-04-10 12:14:42 +10:00
Léo Pradel
2fc6a4b780
fix: remove extension-text-style from character-cout peer dependencies
2022-04-09 19:05:28 +02:00
bdbch
fe815adcf8
Merge pull request #2677 from Doist/tree-shaking-improvements
...
fix: Mark the bubble/floating menu extensions as side effect free
2022-04-09 09:44:44 +02:00
Scott Sidwell
d270419ad8
fix: don't override behaviour of Home / End in pc keymap
...
Similarly removed in Prosemirror at ProseMirror/prosemirror-commands@20371c58
For users who wish to preserve this behaviour, they can achieve this via:
```javascript
const CustomKeyboardBehaviour = Extension.create({
addKeyboardShortcuts() {
return {
['Home']: () => this.editor.commands.selectTextblockStart(),
['End']: () => this.editor.commands.selectTextblockEnd(),
}
}
})
const editor = new Editor({
extensions: [
// Register your custom extension with the editor.
CustomKeyboardBehaviour,
]
});
```
2022-04-08 11:06:37 +10:00
DanSnow
190a6993d4
fix: improve Vue nodeViewProps typing
2022-04-05 13:55:53 +08:00
Ricardo Amaral
172513cb44
fix: Mark the bubble/floating menu extensions as side effect free
2022-04-04 12:22:56 +01:00
Himanshu Kapoor
70dc4fc29f
chore: lint fixes
2022-03-31 22:18:40 +02:00
fleonus
285f89b5a9
Allow overriding getReferenceClientRect in floating menu
2022-03-31 22:12:06 +02:00
fleonus
71c78ed53b
Allow getReferenceClientRect to be overridden
...
Prefer using getReferenceClientRect in tippyOptions if available.
This allows modifying the position of the bubble menu in a different
location for block level elements, like above a table cell or a code block.
2022-03-31 22:03:34 +02:00
BrianHung
1d71877ffd
fix-decorations-and-attribute-editor-props
2022-03-30 02:02:11 -07:00
BrianHung
ebddbadc1b
add-empty-editor-class-to-root-div
2022-03-30 01:24:02 -07:00
Akshay Nair
947f311c0e
fix(extension-link): restricts parsing javascript:
pseudo-protocol
2022-03-24 17:17:08 +05:30
Philipp Kühn
3462e56252
Publish
...
- @tiptap/extension-image@2.0.0-beta.27
2022-02-11 11:00:50 +01:00
Philipp Kühn
ecf270c9e7
fix: don’t trigger image input rule on paste, fix #2518
2022-02-11 11:00:15 +01:00
Philipp Kühn
4b128e17be
Publish
...
- @tiptap/extension-character-count@2.0.0-beta.25
2022-02-11 10:23:01 +01:00
Philipp Kühn
fbfe1d9992
fix: improve bundle size of character count extension, fix #2519
2022-02-11 10:22:35 +01:00
Philipp Kühn
9a1463556e
Publish
...
- @tiptap/extension-image@2.0.0-beta.26
2022-02-09 12:28:20 +01:00
Philipp Kühn
a97a46fc51
feat: add allowBase64 option to image extension
2022-02-09 12:21:26 +01:00
Philipp Kühn
7128d76d0a
Publish
...
- @tiptap/core@2.0.0-beta.174
- @tiptap/html@2.0.0-beta.173
- @tiptap/starter-kit@2.0.0-beta.183
2022-02-07 10:22:23 +01:00
Philipp Kühn
bdab760cdb
fix: revert changes to selectAll command, fix #2491
2022-02-07 10:19:46 +01:00
Philipp Kühn
3227b7736b
Publish
...
- @tiptap/core@2.0.0-beta.173
- @tiptap/extension-typography@2.0.0-beta.20
- @tiptap/html@2.0.0-beta.172
- @tiptap/react@2.0.0-beta.108
- @tiptap/starter-kit@2.0.0-beta.182
2022-02-07 09:10:11 +01:00
Philipp Kühn
70422dd107
fix: fix RangeError bug when selecting all text, fix #2490
2022-02-07 09:07:17 +01:00
Philipp Kühn
886cd339b9
dependencies: update
2022-02-04 10:21:35 +01:00
Philipp Kühn
1847abdd95
fix lint
2022-02-04 10:15:52 +01:00
Ricardo Amaral
7ce6687184
feat: Allow individual Typography rules to be disabled ( #2449 )
2022-02-04 10:14:00 +01:00
Philipp Kühn
88ef8eabb0
Publish
...
- @tiptap/core@2.0.0-beta.172
- @tiptap/extension-bold@2.0.0-beta.26
- @tiptap/extension-italic@2.0.0-beta.26
- @tiptap/extension-placeholder@2.0.0-beta.48
- @tiptap/extension-underline@2.0.0-beta.23
- @tiptap/html@2.0.0-beta.171
- @tiptap/starter-kit@2.0.0-beta.181
2022-02-03 15:03:13 +01:00
Philipp Kühn
5257a3b948
fix: fix hasAnchor type for placeholder extension
2022-02-03 15:02:45 +01:00
Philipp Kühn
01411f8462
fix: don’t add tabindex when readonly, fix #2458
2022-02-03 14:54:37 +01:00
Jonas
b9bd469645
feat: Add key bindings for uppercase letters for bold, italic and underline ( #2478 )
...
This way, key bindings 'Mod-B', 'Mod-I' and 'Mod-U' with active caps
lock have the same effect as their lowercase siblings.
Prosemirror examples did the same, see ProseMirror/prosemirror#895
Fixes : #2426
Signed-off-by: Jonas <jonas@freesources.org>
2022-02-03 14:41:36 +01:00
Yousef
2fe6e2135d
feat: expose hasAnchor to custom placeholder function ( #2470 )
...
* expose hasAnchor to custom placeholder function
* Update placeholder.ts
2022-02-03 14:39:15 +01:00
Philipp Kühn
f4fc935c6c
Publish
...
- @tiptap/core@2.0.0-beta.171
- @tiptap/extension-image@2.0.0-beta.25
- @tiptap/html@2.0.0-beta.170
- @tiptap/starter-kit@2.0.0-beta.180
2022-01-28 12:19:09 +01:00
Philipp Kühn
999dbbec12
fix: don’t allow base64 images at all, fix #2455
2022-01-28 12:16:10 +01:00
Philipp Kühn
d899141a1a
fix lint
2022-01-27 21:37:29 +01:00
Philipp Kühn
9ef798d537
Publish
...
- @tiptap/core@2.0.0-beta.170
- @tiptap/html@2.0.0-beta.169
- @tiptap/starter-kit@2.0.0-beta.179
2022-01-27 09:45:20 +01:00
Philipp Kühn
4be16fcd2e
fix: set max textselection correctly, fix #2401
2022-01-27 09:44:53 +01:00
Philipp Kühn
ed56337470
Publish
...
- @tiptap/core@2.0.0-beta.169
- @tiptap/html@2.0.0-beta.168
- @tiptap/starter-kit@2.0.0-beta.178
2022-01-27 09:07:36 +01:00
Philipp Kühn
b584920ea1
fix: fix End key handler, fix #2446
2022-01-27 09:07:03 +01:00