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
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