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