Merge branch 'main' of github.com:ueberdosis/tiptap-next into main
This commit is contained in:
158
docs/src/demos/Experiments/GlobalDragHandle/DragHandle.js
Normal file
158
docs/src/demos/Experiments/GlobalDragHandle/DragHandle.js
Normal file
@@ -0,0 +1,158 @@
|
|||||||
|
import { Extension } from '@tiptap/core'
|
||||||
|
import { NodeSelection, Plugin } from 'prosemirror-state'
|
||||||
|
import { serializeForClipboard } from 'prosemirror-view/src/clipboard'
|
||||||
|
|
||||||
|
function removeNode(node) {
|
||||||
|
node.parentNode.removeChild(node)
|
||||||
|
}
|
||||||
|
|
||||||
|
function absoluteRect(node) {
|
||||||
|
const data = node.getBoundingClientRect()
|
||||||
|
|
||||||
|
return {
|
||||||
|
top: data.top,
|
||||||
|
left: data.left,
|
||||||
|
width: data.width,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export default Extension.create({
|
||||||
|
addProseMirrorPlugins() {
|
||||||
|
function blockPosAtCoords(coords, view) {
|
||||||
|
const pos = view.posAtCoords(coords)
|
||||||
|
let node = view.domAtPos(pos.pos)
|
||||||
|
|
||||||
|
node = node.node
|
||||||
|
|
||||||
|
while (node && node.parentNode) {
|
||||||
|
if (node.parentNode?.classList?.contains('ProseMirror')) { // todo
|
||||||
|
break
|
||||||
|
}
|
||||||
|
|
||||||
|
node = node.parentNode
|
||||||
|
}
|
||||||
|
|
||||||
|
if (node && node.nodeType === 1) {
|
||||||
|
const desc = view.docView.nearestDesc(node, true)
|
||||||
|
|
||||||
|
if (!(!desc || desc === view.docView)) {
|
||||||
|
return desc.posBefore
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return null
|
||||||
|
}
|
||||||
|
|
||||||
|
function dragStart(e, view) {
|
||||||
|
view.composing = true
|
||||||
|
|
||||||
|
if (!e.dataTransfer) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
const coords = { left: e.clientX + 50, top: e.clientY }
|
||||||
|
const pos = blockPosAtCoords(coords, view)
|
||||||
|
|
||||||
|
if (pos != null) {
|
||||||
|
view.dispatch(view.state.tr.setSelection(NodeSelection.create(view.state.doc, pos)))
|
||||||
|
|
||||||
|
const slice = view.state.selection.content()
|
||||||
|
const { dom, text } = serializeForClipboard(view, slice)
|
||||||
|
|
||||||
|
e.dataTransfer.clearData()
|
||||||
|
e.dataTransfer.setData('text/html', dom.innerHTML)
|
||||||
|
e.dataTransfer.setData('text/plain', text)
|
||||||
|
|
||||||
|
const el = document.querySelector('.ProseMirror-selectednode')
|
||||||
|
e.dataTransfer?.setDragImage(el, 0, 0)
|
||||||
|
|
||||||
|
view.dragging = { slice, move: true }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
let dropElement
|
||||||
|
const WIDTH = 28
|
||||||
|
|
||||||
|
return [
|
||||||
|
new Plugin({
|
||||||
|
view(editorView) {
|
||||||
|
const element = document.createElement('div')
|
||||||
|
|
||||||
|
element.draggable = 'true'
|
||||||
|
element.classList.add('global-drag-handle')
|
||||||
|
element.addEventListener('dragstart', e => dragStart(e, editorView))
|
||||||
|
dropElement = element
|
||||||
|
document.body.appendChild(dropElement)
|
||||||
|
|
||||||
|
return {
|
||||||
|
// update(view, prevState) {
|
||||||
|
// },
|
||||||
|
destroy() {
|
||||||
|
removeNode(dropElement)
|
||||||
|
dropElement = null
|
||||||
|
},
|
||||||
|
}
|
||||||
|
},
|
||||||
|
props: {
|
||||||
|
handleDrop(view, event, slice, moved) {
|
||||||
|
if (moved) {
|
||||||
|
// setTimeout(() => {
|
||||||
|
// console.log('remove selection')
|
||||||
|
// view.dispatch(view.state.tr.deleteSelection())
|
||||||
|
// }, 50)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
// handlePaste() {
|
||||||
|
// alert(2)
|
||||||
|
// },
|
||||||
|
handleDOMEvents: {
|
||||||
|
// drop(view, event) {
|
||||||
|
// setTimeout(() => {
|
||||||
|
// const node = document.querySelector('.ProseMirror-hideselection')
|
||||||
|
// if (node) {
|
||||||
|
// node.classList.remove('ProseMirror-hideselection')
|
||||||
|
// }
|
||||||
|
// }, 50)
|
||||||
|
// },
|
||||||
|
mousemove(view, event) {
|
||||||
|
const coords = {
|
||||||
|
left: event.clientX + WIDTH + 50,
|
||||||
|
top: event.clientY,
|
||||||
|
}
|
||||||
|
const pos = view.posAtCoords(coords)
|
||||||
|
|
||||||
|
if (pos) {
|
||||||
|
let node = view.domAtPos(pos?.pos)
|
||||||
|
|
||||||
|
if (node) {
|
||||||
|
node = node.node
|
||||||
|
while (node && node.parentNode) {
|
||||||
|
if (node.parentNode?.classList?.contains('ProseMirror')) { // todo
|
||||||
|
break
|
||||||
|
}
|
||||||
|
node = node.parentNode
|
||||||
|
}
|
||||||
|
|
||||||
|
if (node instanceof Element) {
|
||||||
|
const cstyle = window.getComputedStyle(node)
|
||||||
|
const lineHeight = parseInt(cstyle.lineHeight, 10)
|
||||||
|
// const top = parseInt(cstyle.marginTop, 10) + parseInt(cstyle.paddingTop, 10)
|
||||||
|
const top = 0
|
||||||
|
const rect = absoluteRect(node)
|
||||||
|
const win = node.ownerDocument.defaultView
|
||||||
|
|
||||||
|
rect.top += win.pageYOffset + ((lineHeight - 24) / 2) + top
|
||||||
|
rect.left += win.pageXOffset
|
||||||
|
rect.width = `${WIDTH}px`
|
||||||
|
|
||||||
|
dropElement.style.left = `${-WIDTH + rect.left}px`
|
||||||
|
dropElement.style.top = `${rect.top}px`
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}),
|
||||||
|
]
|
||||||
|
},
|
||||||
|
})
|
||||||
133
docs/src/demos/Experiments/GlobalDragHandle/index.vue
Normal file
133
docs/src/demos/Experiments/GlobalDragHandle/index.vue
Normal file
@@ -0,0 +1,133 @@
|
|||||||
|
<template>
|
||||||
|
<div v-if="editor">
|
||||||
|
<editor-content :editor="editor" />
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { Editor, EditorContent, defaultExtensions } from '@tiptap/vue-starter-kit'
|
||||||
|
import DragHandle from './DragHandle.js'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
components: {
|
||||||
|
EditorContent,
|
||||||
|
},
|
||||||
|
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
editor: null,
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
mounted() {
|
||||||
|
this.editor = new Editor({
|
||||||
|
extensions: [
|
||||||
|
...defaultExtensions(),
|
||||||
|
DragHandle,
|
||||||
|
],
|
||||||
|
content: `
|
||||||
|
<p>paragraph 1</p>
|
||||||
|
<p>paragraph 2</p>
|
||||||
|
<p>paragraph 3</p>
|
||||||
|
<ul>
|
||||||
|
<li>list item 1</li>
|
||||||
|
<li>list item 2</li>
|
||||||
|
</ul>
|
||||||
|
<pre>code</pre>
|
||||||
|
`,
|
||||||
|
onUpdate: () => {
|
||||||
|
console.log(this.editor.getHTML())
|
||||||
|
},
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
|
beforeDestroy() {
|
||||||
|
this.editor.destroy()
|
||||||
|
},
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss">
|
||||||
|
.global-drag-handle {
|
||||||
|
position: absolute;
|
||||||
|
|
||||||
|
&::after {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
width: 1rem;
|
||||||
|
height: 1.25rem;
|
||||||
|
content: '⠿';
|
||||||
|
font-weight: 700;
|
||||||
|
cursor: grab;
|
||||||
|
background:#0D0D0D10;
|
||||||
|
color: #0D0D0D50;
|
||||||
|
border-radius: 0.25rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
::v-deep {
|
||||||
|
.ProseMirror {
|
||||||
|
padding: 0 1rem;
|
||||||
|
|
||||||
|
> * + * {
|
||||||
|
margin-top: 0.75em;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul,
|
||||||
|
ol {
|
||||||
|
padding: 0 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1,
|
||||||
|
h2,
|
||||||
|
h3,
|
||||||
|
h4,
|
||||||
|
h5,
|
||||||
|
h6 {
|
||||||
|
line-height: 1.1;
|
||||||
|
}
|
||||||
|
|
||||||
|
code {
|
||||||
|
background-color: rgba(#616161, 0.1);
|
||||||
|
color: #616161;
|
||||||
|
}
|
||||||
|
|
||||||
|
pre {
|
||||||
|
background: #0D0D0D;
|
||||||
|
color: #FFF;
|
||||||
|
font-family: 'JetBrainsMono', monospace;
|
||||||
|
padding: 0.75rem 1rem;
|
||||||
|
border-radius: 0.5rem;
|
||||||
|
|
||||||
|
code {
|
||||||
|
color: inherit;
|
||||||
|
background: none;
|
||||||
|
font-size: 0.8rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
img {
|
||||||
|
max-width: 100%;
|
||||||
|
height: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
blockquote {
|
||||||
|
padding-left: 1rem;
|
||||||
|
border-left: 2px solid rgba(#0D0D0D, 0.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
hr {
|
||||||
|
border: none;
|
||||||
|
border-top: 2px solid rgba(#0D0D0D, 0.1);
|
||||||
|
margin: 2rem 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.ProseMirror-selectednode {
|
||||||
|
outline: 2px solid #70CFF8;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -9,14 +9,6 @@ export default Node.create({
|
|||||||
|
|
||||||
content: 'inline*',
|
content: 'inline*',
|
||||||
|
|
||||||
addAttributes() {
|
|
||||||
return {
|
|
||||||
count: {
|
|
||||||
default: 0,
|
|
||||||
},
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
parseHTML() {
|
parseHTML() {
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ Congratulations! You’ve found our playground with a list of experiments. Be aw
|
|||||||
## New
|
## New
|
||||||
* [Linter](/experiments/linter)
|
* [Linter](/experiments/linter)
|
||||||
* [Multiple editors](/experiments/multiple-editors)
|
* [Multiple editors](/experiments/multiple-editors)
|
||||||
|
* [Global drag handle](/experiments/global-drag-handle)
|
||||||
* [@tiptap/extension-slash-command?](/experiments/commands)
|
* [@tiptap/extension-slash-command?](/experiments/commands)
|
||||||
* [@tiptap/extension-iframe?](/experiments/embeds)
|
* [@tiptap/extension-iframe?](/experiments/embeds)
|
||||||
* [@tiptap/extension-toggle-list?](/experiments/details)
|
* [@tiptap/extension-toggle-list?](/experiments/details)
|
||||||
|
|||||||
5
docs/src/docPages/experiments/global-drag-handle.md
Normal file
5
docs/src/docPages/experiments/global-drag-handle.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
# GlobalDragHandle
|
||||||
|
|
||||||
|
⚠️ Experiment
|
||||||
|
|
||||||
|
<demo name="Experiments/GlobalDragHandle" />
|
||||||
@@ -3,6 +3,30 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
# [2.0.0-beta.9](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/core@2.0.0-beta.8...@tiptap/core@2.0.0-beta.9) (2021-03-28)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @tiptap/core
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# [2.0.0-beta.8](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/core@2.0.0-beta.7...@tiptap/core@2.0.0-beta.8) (2021-03-28)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @tiptap/core
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# [2.0.0-beta.7](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/core@2.0.0-beta.6...@tiptap/core@2.0.0-beta.7) (2021-03-28)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @tiptap/core
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# [2.0.0-beta.6](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/core@2.0.0-beta.5...@tiptap/core@2.0.0-beta.6) (2021-03-24)
|
# [2.0.0-beta.6](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/core@2.0.0-beta.5...@tiptap/core@2.0.0-beta.6) (2021-03-24)
|
||||||
|
|
||||||
**Note:** Version bump only for package @tiptap/core
|
**Note:** Version bump only for package @tiptap/core
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@tiptap/core",
|
"name": "@tiptap/core",
|
||||||
"description": "headless rich text editor",
|
"description": "headless rich text editor",
|
||||||
"version": "2.0.0-beta.6",
|
"version": "2.0.0-beta.9",
|
||||||
"homepage": "https://tiptap.dev",
|
"homepage": "https://tiptap.dev",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"tiptap",
|
"tiptap",
|
||||||
|
|||||||
@@ -14,26 +14,28 @@ declare module '@tiptap/core' {
|
|||||||
|
|
||||||
export const clearNodes: RawCommands['clearNodes'] = () => ({ state, tr, dispatch }) => {
|
export const clearNodes: RawCommands['clearNodes'] = () => ({ state, tr, dispatch }) => {
|
||||||
const { selection } = tr
|
const { selection } = tr
|
||||||
const { from, to } = selection
|
const { ranges } = selection
|
||||||
|
|
||||||
state.doc.nodesBetween(from, to, (node, pos) => {
|
ranges.forEach(range => {
|
||||||
if (!node.type.isText) {
|
state.doc.nodesBetween(range.$from.pos, range.$to.pos, (node, pos) => {
|
||||||
const fromPos = tr.doc.resolve(tr.mapping.map(pos + 1))
|
if (!node.type.isText) {
|
||||||
const toPos = tr.doc.resolve(tr.mapping.map(pos + node.nodeSize - 1))
|
const fromPos = tr.doc.resolve(tr.mapping.map(pos + 1))
|
||||||
const nodeRange = fromPos.blockRange(toPos)
|
const toPos = tr.doc.resolve(tr.mapping.map(pos + node.nodeSize - 1))
|
||||||
|
const nodeRange = fromPos.blockRange(toPos)
|
||||||
|
|
||||||
if (nodeRange) {
|
if (nodeRange) {
|
||||||
const targetLiftDepth = liftTarget(nodeRange)
|
const targetLiftDepth = liftTarget(nodeRange)
|
||||||
|
|
||||||
if (node.type.isTextblock && dispatch) {
|
if (node.type.isTextblock && dispatch) {
|
||||||
tr.setNodeMarkup(nodeRange.start, state.doc.type.contentMatch.defaultType)
|
tr.setNodeMarkup(nodeRange.start, state.doc.type.contentMatch.defaultType)
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((targetLiftDepth || targetLiftDepth === 0) && dispatch) {
|
if ((targetLiftDepth || targetLiftDepth === 0) && dispatch) {
|
||||||
tr.lift(nodeRange, targetLiftDepth)
|
tr.lift(nodeRange, targetLiftDepth)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
return true
|
return true
|
||||||
|
|||||||
@@ -17,12 +17,14 @@ declare module '@tiptap/core' {
|
|||||||
export const resetNodeAttributes: RawCommands['resetNodeAttributes'] = (typeOrName, attributes) => ({ tr, state, dispatch }) => {
|
export const resetNodeAttributes: RawCommands['resetNodeAttributes'] = (typeOrName, attributes) => ({ tr, state, dispatch }) => {
|
||||||
const type = getNodeType(typeOrName, state.schema)
|
const type = getNodeType(typeOrName, state.schema)
|
||||||
const { selection } = tr
|
const { selection } = tr
|
||||||
const { from, to } = selection
|
const { ranges } = selection
|
||||||
|
|
||||||
state.doc.nodesBetween(from, to, (node, pos) => {
|
ranges.forEach(range => {
|
||||||
if (node.type === type && dispatch) {
|
state.doc.nodesBetween(range.$from.pos, range.$to.pos, (node, pos) => {
|
||||||
tr.setNodeMarkup(pos, undefined, deleteProps(node.attrs, attributes))
|
if (node.type === type && dispatch) {
|
||||||
}
|
tr.setNodeMarkup(pos, undefined, deleteProps(node.attrs, attributes))
|
||||||
|
}
|
||||||
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
return true
|
return true
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ declare module '@tiptap/core' {
|
|||||||
|
|
||||||
export const setMark: RawCommands['setMark'] = (typeOrName, attributes = {}) => ({ tr, state, dispatch }) => {
|
export const setMark: RawCommands['setMark'] = (typeOrName, attributes = {}) => ({ tr, state, dispatch }) => {
|
||||||
const { selection } = tr
|
const { selection } = tr
|
||||||
const { from, to, empty } = selection
|
const { empty, ranges } = selection
|
||||||
const type = getMarkType(typeOrName, state.schema)
|
const type = getMarkType(typeOrName, state.schema)
|
||||||
const oldAttributes = getMarkAttributes(state, type)
|
const oldAttributes = getMarkAttributes(state, type)
|
||||||
const newAttributes = {
|
const newAttributes = {
|
||||||
@@ -28,7 +28,9 @@ export const setMark: RawCommands['setMark'] = (typeOrName, attributes = {}) =>
|
|||||||
if (empty) {
|
if (empty) {
|
||||||
tr.addStoredMark(type.create(newAttributes))
|
tr.addStoredMark(type.create(newAttributes))
|
||||||
} else {
|
} else {
|
||||||
tr.addMark(from, to, type.create(newAttributes))
|
ranges.forEach(range => {
|
||||||
|
tr.addMark(range.$from.pos, range.$to.pos, type.create(newAttributes))
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ declare module '@tiptap/core' {
|
|||||||
|
|
||||||
export const unsetAllMarks: RawCommands['unsetAllMarks'] = () => ({ tr, state, dispatch }) => {
|
export const unsetAllMarks: RawCommands['unsetAllMarks'] = () => ({ tr, state, dispatch }) => {
|
||||||
const { selection } = tr
|
const { selection } = tr
|
||||||
const { from, to, empty } = selection
|
const { empty, ranges } = selection
|
||||||
|
|
||||||
if (empty) {
|
if (empty) {
|
||||||
return true
|
return true
|
||||||
@@ -23,7 +23,9 @@ export const unsetAllMarks: RawCommands['unsetAllMarks'] = () => ({ tr, state, d
|
|||||||
Object
|
Object
|
||||||
.entries(state.schema.marks)
|
.entries(state.schema.marks)
|
||||||
.forEach(([, mark]) => {
|
.forEach(([, mark]) => {
|
||||||
tr.removeMark(from, to, mark as any)
|
ranges.forEach(range => {
|
||||||
|
tr.removeMark(range.$from.pos, range.$to.pos, mark as any)
|
||||||
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -17,20 +17,25 @@ declare module '@tiptap/core' {
|
|||||||
export const unsetMark: RawCommands['unsetMark'] = typeOrName => ({ tr, state, dispatch }) => {
|
export const unsetMark: RawCommands['unsetMark'] = typeOrName => ({ tr, state, dispatch }) => {
|
||||||
const { selection } = tr
|
const { selection } = tr
|
||||||
const type = getMarkType(typeOrName, state.schema)
|
const type = getMarkType(typeOrName, state.schema)
|
||||||
let { from, to } = selection
|
const { $from, empty, ranges } = selection
|
||||||
const { $from, empty } = selection
|
|
||||||
|
|
||||||
if (empty) {
|
|
||||||
const range = getMarkRange($from, type)
|
|
||||||
|
|
||||||
if (range) {
|
|
||||||
from = range.from
|
|
||||||
to = range.to
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (dispatch) {
|
if (dispatch) {
|
||||||
tr.removeMark(from, to, type)
|
if (empty) {
|
||||||
|
let { from, to } = selection
|
||||||
|
const range = getMarkRange($from, type)
|
||||||
|
|
||||||
|
if (range) {
|
||||||
|
from = range.from
|
||||||
|
to = range.to
|
||||||
|
}
|
||||||
|
|
||||||
|
tr.removeMark(from, to, type)
|
||||||
|
} else {
|
||||||
|
ranges.forEach(range => {
|
||||||
|
tr.removeMark(range.$from.pos, range.$to.pos, type)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
tr.removeStoredMark(type)
|
tr.removeStoredMark(type)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -16,15 +16,17 @@ declare module '@tiptap/core' {
|
|||||||
export const updateNodeAttributes: RawCommands['updateNodeAttributes'] = (typeOrName, attributes = {}) => ({ tr, state, dispatch }) => {
|
export const updateNodeAttributes: RawCommands['updateNodeAttributes'] = (typeOrName, attributes = {}) => ({ tr, state, dispatch }) => {
|
||||||
const type = getNodeType(typeOrName, state.schema)
|
const type = getNodeType(typeOrName, state.schema)
|
||||||
const { selection } = tr
|
const { selection } = tr
|
||||||
const { from, to } = selection
|
const { ranges } = selection
|
||||||
|
|
||||||
state.doc.nodesBetween(from, to, (node, pos) => {
|
ranges.forEach(range => {
|
||||||
if (node.type === type && dispatch) {
|
state.doc.nodesBetween(range.$from.pos, range.$to.pos, (node, pos) => {
|
||||||
tr.setNodeMarkup(pos, undefined, {
|
if (node.type === type && dispatch) {
|
||||||
...node.attrs,
|
tr.setNodeMarkup(pos, undefined, {
|
||||||
...attributes,
|
...node.attrs,
|
||||||
})
|
...attributes,
|
||||||
}
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
return true
|
return true
|
||||||
|
|||||||
@@ -3,6 +3,14 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
# [2.0.0-beta.5](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-focus@2.0.0-beta.4...@tiptap/extension-focus@2.0.0-beta.5) (2021-03-28)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @tiptap/extension-focus
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# [2.0.0-beta.4](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-focus@2.0.0-beta.3...@tiptap/extension-focus@2.0.0-beta.4) (2021-03-25)
|
# [2.0.0-beta.4](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-focus@2.0.0-beta.3...@tiptap/extension-focus@2.0.0-beta.4) (2021-03-25)
|
||||||
|
|
||||||
**Note:** Version bump only for package @tiptap/extension-focus
|
**Note:** Version bump only for package @tiptap/extension-focus
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@tiptap/extension-focus",
|
"name": "@tiptap/extension-focus",
|
||||||
"description": "focus extension for tiptap",
|
"description": "focus extension for tiptap",
|
||||||
"version": "2.0.0-beta.4",
|
"version": "2.0.0-beta.5",
|
||||||
"homepage": "https://tiptap.dev",
|
"homepage": "https://tiptap.dev",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"tiptap",
|
"tiptap",
|
||||||
|
|||||||
@@ -3,6 +3,30 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
# [2.0.0-beta.9](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-mention@2.0.0-beta.8...@tiptap/extension-mention@2.0.0-beta.9) (2021-03-28)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @tiptap/extension-mention
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# [2.0.0-beta.8](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-mention@2.0.0-beta.7...@tiptap/extension-mention@2.0.0-beta.8) (2021-03-28)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @tiptap/extension-mention
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# [2.0.0-beta.7](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-mention@2.0.0-beta.6...@tiptap/extension-mention@2.0.0-beta.7) (2021-03-28)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @tiptap/extension-mention
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# [2.0.0-beta.6](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-mention@2.0.0-beta.5...@tiptap/extension-mention@2.0.0-beta.6) (2021-03-24)
|
# [2.0.0-beta.6](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-mention@2.0.0-beta.5...@tiptap/extension-mention@2.0.0-beta.6) (2021-03-24)
|
||||||
|
|
||||||
**Note:** Version bump only for package @tiptap/extension-mention
|
**Note:** Version bump only for package @tiptap/extension-mention
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@tiptap/extension-mention",
|
"name": "@tiptap/extension-mention",
|
||||||
"description": "mention extension for tiptap",
|
"description": "mention extension for tiptap",
|
||||||
"version": "2.0.0-beta.6",
|
"version": "2.0.0-beta.9",
|
||||||
"homepage": "https://tiptap.dev",
|
"homepage": "https://tiptap.dev",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"tiptap",
|
"tiptap",
|
||||||
@@ -25,6 +25,6 @@
|
|||||||
"@tiptap/core": "^2.0.0-beta.1"
|
"@tiptap/core": "^2.0.0-beta.1"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@tiptap/suggestion": "^2.0.0-beta.6"
|
"@tiptap/suggestion": "^2.0.0-beta.9"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,6 +3,14 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
# [2.0.0-beta.2](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-placeholder@2.0.0-beta.1...@tiptap/extension-placeholder@2.0.0-beta.2) (2021-03-28)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @tiptap/extension-placeholder
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# 2.0.0-beta.1 (2021-03-24)
|
# 2.0.0-beta.1 (2021-03-24)
|
||||||
|
|
||||||
**Note:** Version bump only for package @tiptap/extension-placeholder
|
**Note:** Version bump only for package @tiptap/extension-placeholder
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@tiptap/extension-placeholder",
|
"name": "@tiptap/extension-placeholder",
|
||||||
"description": "placeholder extension for tiptap",
|
"description": "placeholder extension for tiptap",
|
||||||
"version": "2.0.0-beta.1",
|
"version": "2.0.0-beta.2",
|
||||||
"homepage": "https://tiptap.dev",
|
"homepage": "https://tiptap.dev",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"tiptap",
|
"tiptap",
|
||||||
@@ -25,6 +25,7 @@
|
|||||||
"@tiptap/core": "^2.0.0-beta.1"
|
"@tiptap/core": "^2.0.0-beta.1"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"prosemirror-model": "^1.13.3",
|
||||||
"prosemirror-state": "^1.3.4",
|
"prosemirror-state": "^1.3.4",
|
||||||
"prosemirror-view": "^1.18.1"
|
"prosemirror-view": "^1.18.1"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,11 +1,15 @@
|
|||||||
import { Extension, isNodeEmpty } from '@tiptap/core'
|
import { Editor, Extension, isNodeEmpty } from '@tiptap/core'
|
||||||
|
import { Node as ProsemirrorNode } from 'prosemirror-model'
|
||||||
import { Decoration, DecorationSet } from 'prosemirror-view'
|
import { Decoration, DecorationSet } from 'prosemirror-view'
|
||||||
import { Plugin } from 'prosemirror-state'
|
import { Plugin } from 'prosemirror-state'
|
||||||
|
|
||||||
export interface PlaceholderOptions {
|
export interface PlaceholderOptions {
|
||||||
emptyEditorClass: string,
|
emptyEditorClass: string,
|
||||||
emptyNodeClass: string,
|
emptyNodeClass: string,
|
||||||
placeholder: string | Function,
|
placeholder: ((PlaceholderProps: {
|
||||||
|
editor: Editor,
|
||||||
|
node: ProsemirrorNode,
|
||||||
|
}) => string) | string,
|
||||||
showOnlyWhenEditable: boolean,
|
showOnlyWhenEditable: boolean,
|
||||||
showOnlyCurrent: boolean,
|
showOnlyCurrent: boolean,
|
||||||
}
|
}
|
||||||
@@ -48,7 +52,10 @@ export const Placeholder = Extension.create<PlaceholderOptions>({
|
|||||||
const decoration = Decoration.node(pos, pos + node.nodeSize, {
|
const decoration = Decoration.node(pos, pos + node.nodeSize, {
|
||||||
class: classes.join(' '),
|
class: classes.join(' '),
|
||||||
'data-placeholder': typeof this.options.placeholder === 'function'
|
'data-placeholder': typeof this.options.placeholder === 'function'
|
||||||
? this.options.placeholder(node)
|
? this.options.placeholder({
|
||||||
|
editor: this.editor,
|
||||||
|
node,
|
||||||
|
})
|
||||||
: this.options.placeholder,
|
: this.options.placeholder,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@@ -3,6 +3,14 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
# [2.0.0-beta.2](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-table-header@2.0.0-beta.1...@tiptap/extension-table-header@2.0.0-beta.2) (2021-03-28)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @tiptap/extension-table-header
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# [2.0.0-beta.1](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-table-header@2.0.0-alpha.11...@tiptap/extension-table-header@2.0.0-beta.1) (2021-03-05)
|
# [2.0.0-beta.1](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-table-header@2.0.0-alpha.11...@tiptap/extension-table-header@2.0.0-beta.1) (2021-03-05)
|
||||||
|
|
||||||
**Note:** Version bump only for package @tiptap/extension-table-header
|
**Note:** Version bump only for package @tiptap/extension-table-header
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@tiptap/extension-table-header",
|
"name": "@tiptap/extension-table-header",
|
||||||
"description": "table cell extension for tiptap",
|
"description": "table cell extension for tiptap",
|
||||||
"version": "2.0.0-beta.1",
|
"version": "2.0.0-beta.2",
|
||||||
"homepage": "https://tiptap.dev",
|
"homepage": "https://tiptap.dev",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"tiptap",
|
"tiptap",
|
||||||
|
|||||||
@@ -24,6 +24,16 @@ export const TableHeader = Node.create<TableHeaderOptions>({
|
|||||||
},
|
},
|
||||||
colwidth: {
|
colwidth: {
|
||||||
default: null,
|
default: null,
|
||||||
|
parseHTML: element => {
|
||||||
|
const colwidth = element.getAttribute('colwidth')
|
||||||
|
const value = colwidth
|
||||||
|
? [parseInt(colwidth, 10)]
|
||||||
|
: null
|
||||||
|
|
||||||
|
return {
|
||||||
|
colwidth: value,
|
||||||
|
}
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -3,6 +3,14 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
# [2.0.0-beta.4](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-table@2.0.0-beta.3...@tiptap/extension-table@2.0.0-beta.4) (2021-03-28)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @tiptap/extension-table
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# [2.0.0-beta.3](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-table@2.0.0-beta.2...@tiptap/extension-table@2.0.0-beta.3) (2021-03-24)
|
# [2.0.0-beta.3](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-table@2.0.0-beta.2...@tiptap/extension-table@2.0.0-beta.3) (2021-03-24)
|
||||||
|
|
||||||
**Note:** Version bump only for package @tiptap/extension-table
|
**Note:** Version bump only for package @tiptap/extension-table
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@tiptap/extension-table",
|
"name": "@tiptap/extension-table",
|
||||||
"description": "table extension for tiptap",
|
"description": "table extension for tiptap",
|
||||||
"version": "2.0.0-beta.3",
|
"version": "2.0.0-beta.4",
|
||||||
"homepage": "https://tiptap.dev",
|
"homepage": "https://tiptap.dev",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"tiptap",
|
"tiptap",
|
||||||
|
|||||||
@@ -3,6 +3,14 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
# [2.0.0-beta.2](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-task-list@2.0.0-beta.1...@tiptap/extension-task-list@2.0.0-beta.2) (2021-03-28)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @tiptap/extension-task-list
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# [2.0.0-beta.1](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-task-list@2.0.0-alpha.11...@tiptap/extension-task-list@2.0.0-beta.1) (2021-03-05)
|
# [2.0.0-beta.1](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-task-list@2.0.0-alpha.11...@tiptap/extension-task-list@2.0.0-beta.1) (2021-03-05)
|
||||||
|
|
||||||
**Note:** Version bump only for package @tiptap/extension-task-list
|
**Note:** Version bump only for package @tiptap/extension-task-list
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@tiptap/extension-task-list",
|
"name": "@tiptap/extension-task-list",
|
||||||
"description": "task list extension for tiptap",
|
"description": "task list extension for tiptap",
|
||||||
"version": "2.0.0-beta.1",
|
"version": "2.0.0-beta.2",
|
||||||
"homepage": "https://tiptap.dev",
|
"homepage": "https://tiptap.dev",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"tiptap",
|
"tiptap",
|
||||||
|
|||||||
@@ -3,6 +3,30 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
# [2.0.0-beta.9](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/html@2.0.0-beta.8...@tiptap/html@2.0.0-beta.9) (2021-03-28)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @tiptap/html
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# [2.0.0-beta.8](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/html@2.0.0-beta.7...@tiptap/html@2.0.0-beta.8) (2021-03-28)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @tiptap/html
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# [2.0.0-beta.7](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/html@2.0.0-beta.6...@tiptap/html@2.0.0-beta.7) (2021-03-28)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @tiptap/html
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# [2.0.0-beta.6](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/html@2.0.0-beta.5...@tiptap/html@2.0.0-beta.6) (2021-03-24)
|
# [2.0.0-beta.6](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/html@2.0.0-beta.5...@tiptap/html@2.0.0-beta.6) (2021-03-24)
|
||||||
|
|
||||||
**Note:** Version bump only for package @tiptap/html
|
**Note:** Version bump only for package @tiptap/html
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@tiptap/html",
|
"name": "@tiptap/html",
|
||||||
"description": "utility package to render tiptap JSON as HTML",
|
"description": "utility package to render tiptap JSON as HTML",
|
||||||
"version": "2.0.0-beta.6",
|
"version": "2.0.0-beta.9",
|
||||||
"homepage": "https://tiptap.dev",
|
"homepage": "https://tiptap.dev",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"tiptap",
|
"tiptap",
|
||||||
@@ -22,7 +22,7 @@
|
|||||||
"dist"
|
"dist"
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@tiptap/core": "^2.0.0-beta.6",
|
"@tiptap/core": "^2.0.0-beta.9",
|
||||||
"hostic-dom": "^0.8.6",
|
"hostic-dom": "^0.8.6",
|
||||||
"prosemirror-model": "^1.13.3"
|
"prosemirror-model": "^1.13.3"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,6 +3,14 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
# [2.0.0-beta.6](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/react@2.0.0-beta.5...@tiptap/react@2.0.0-beta.6) (2021-03-28)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @tiptap/react
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# [2.0.0-beta.5](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/react@2.0.0-beta.4...@tiptap/react@2.0.0-beta.5) (2021-03-24)
|
# [2.0.0-beta.5](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/react@2.0.0-beta.4...@tiptap/react@2.0.0-beta.5) (2021-03-24)
|
||||||
|
|
||||||
**Note:** Version bump only for package @tiptap/react
|
**Note:** Version bump only for package @tiptap/react
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@tiptap/react",
|
"name": "@tiptap/react",
|
||||||
"description": "React components for tiptap",
|
"description": "React components for tiptap",
|
||||||
"version": "2.0.0-beta.5",
|
"version": "2.0.0-beta.6",
|
||||||
"homepage": "https://tiptap.dev",
|
"homepage": "https://tiptap.dev",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"tiptap",
|
"tiptap",
|
||||||
|
|||||||
@@ -3,6 +3,30 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
# [2.0.0-beta.9](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/suggestion@2.0.0-beta.8...@tiptap/suggestion@2.0.0-beta.9) (2021-03-28)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @tiptap/suggestion
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# [2.0.0-beta.8](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/suggestion@2.0.0-beta.7...@tiptap/suggestion@2.0.0-beta.8) (2021-03-28)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @tiptap/suggestion
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# [2.0.0-beta.7](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/suggestion@2.0.0-beta.6...@tiptap/suggestion@2.0.0-beta.7) (2021-03-28)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @tiptap/suggestion
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# [2.0.0-beta.6](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/suggestion@2.0.0-beta.5...@tiptap/suggestion@2.0.0-beta.6) (2021-03-24)
|
# [2.0.0-beta.6](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/suggestion@2.0.0-beta.5...@tiptap/suggestion@2.0.0-beta.6) (2021-03-24)
|
||||||
|
|
||||||
**Note:** Version bump only for package @tiptap/suggestion
|
**Note:** Version bump only for package @tiptap/suggestion
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@tiptap/suggestion",
|
"name": "@tiptap/suggestion",
|
||||||
"description": "suggestion plugin for tiptap",
|
"description": "suggestion plugin for tiptap",
|
||||||
"version": "2.0.0-beta.6",
|
"version": "2.0.0-beta.9",
|
||||||
"homepage": "https://tiptap.dev",
|
"homepage": "https://tiptap.dev",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"tiptap",
|
"tiptap",
|
||||||
@@ -22,7 +22,7 @@
|
|||||||
"dist"
|
"dist"
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@tiptap/core": "^2.0.0-beta.6",
|
"@tiptap/core": "^2.0.0-beta.9",
|
||||||
"prosemirror-model": "^1.13.3",
|
"prosemirror-model": "^1.13.3",
|
||||||
"prosemirror-state": "^1.3.4",
|
"prosemirror-state": "^1.3.4",
|
||||||
"prosemirror-view": "^1.18.1"
|
"prosemirror-view": "^1.18.1"
|
||||||
|
|||||||
@@ -3,6 +3,14 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
# [2.0.0-beta.6](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/vue-2@2.0.0-beta.5...@tiptap/vue-2@2.0.0-beta.6) (2021-03-28)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @tiptap/vue-2
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# [2.0.0-beta.5](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/vue-2@2.0.0-beta.4...@tiptap/vue-2@2.0.0-beta.5) (2021-03-24)
|
# [2.0.0-beta.5](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/vue-2@2.0.0-beta.4...@tiptap/vue-2@2.0.0-beta.5) (2021-03-24)
|
||||||
|
|
||||||
**Note:** Version bump only for package @tiptap/vue-2
|
**Note:** Version bump only for package @tiptap/vue-2
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@tiptap/vue-2",
|
"name": "@tiptap/vue-2",
|
||||||
"description": "Vue components for tiptap",
|
"description": "Vue components for tiptap",
|
||||||
"version": "2.0.0-beta.5",
|
"version": "2.0.0-beta.6",
|
||||||
"homepage": "https://tiptap.dev",
|
"homepage": "https://tiptap.dev",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"tiptap",
|
"tiptap",
|
||||||
|
|||||||
@@ -3,6 +3,14 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
# [2.0.0-beta.7](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/vue-3@2.0.0-beta.6...@tiptap/vue-3@2.0.0-beta.7) (2021-03-28)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @tiptap/vue-3
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# [2.0.0-beta.6](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/vue-3@2.0.0-beta.5...@tiptap/vue-3@2.0.0-beta.6) (2021-03-24)
|
# [2.0.0-beta.6](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/vue-3@2.0.0-beta.5...@tiptap/vue-3@2.0.0-beta.6) (2021-03-24)
|
||||||
|
|
||||||
**Note:** Version bump only for package @tiptap/vue-3
|
**Note:** Version bump only for package @tiptap/vue-3
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@tiptap/vue-3",
|
"name": "@tiptap/vue-3",
|
||||||
"description": "Vue components for tiptap",
|
"description": "Vue components for tiptap",
|
||||||
"version": "2.0.0-beta.6",
|
"version": "2.0.0-beta.7",
|
||||||
"homepage": "https://tiptap.dev",
|
"homepage": "https://tiptap.dev",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"tiptap",
|
"tiptap",
|
||||||
|
|||||||
@@ -3,6 +3,14 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
# [2.0.0-beta.7](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/vue-starter-kit@2.0.0-beta.6...@tiptap/vue-starter-kit@2.0.0-beta.7) (2021-03-28)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @tiptap/vue-starter-kit
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# [2.0.0-beta.6](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/vue-starter-kit@2.0.0-beta.5...@tiptap/vue-starter-kit@2.0.0-beta.6) (2021-03-24)
|
# [2.0.0-beta.6](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/vue-starter-kit@2.0.0-beta.5...@tiptap/vue-starter-kit@2.0.0-beta.6) (2021-03-24)
|
||||||
|
|
||||||
**Note:** Version bump only for package @tiptap/vue-starter-kit
|
**Note:** Version bump only for package @tiptap/vue-starter-kit
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@tiptap/vue-starter-kit",
|
"name": "@tiptap/vue-starter-kit",
|
||||||
"description": "Vue starter kit for tiptap",
|
"description": "Vue starter kit for tiptap",
|
||||||
"version": "2.0.0-beta.6",
|
"version": "2.0.0-beta.7",
|
||||||
"homepage": "https://tiptap.dev",
|
"homepage": "https://tiptap.dev",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"tiptap",
|
"tiptap",
|
||||||
@@ -23,6 +23,6 @@
|
|||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@tiptap/starter-kit": "^2.0.0-beta.4",
|
"@tiptap/starter-kit": "^2.0.0-beta.4",
|
||||||
"@tiptap/vue": "^2.0.0-beta.3"
|
"@tiptap/vue": "^2.0.0-beta.4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,6 +3,14 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
# [2.0.0-beta.4](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/vue@2.0.0-beta.3...@tiptap/vue@2.0.0-beta.4) (2021-03-28)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @tiptap/vue
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# [2.0.0-beta.3](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/vue@2.0.0-beta.2...@tiptap/vue@2.0.0-beta.3) (2021-03-24)
|
# [2.0.0-beta.3](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/vue@2.0.0-beta.2...@tiptap/vue@2.0.0-beta.3) (2021-03-24)
|
||||||
|
|
||||||
**Note:** Version bump only for package @tiptap/vue
|
**Note:** Version bump only for package @tiptap/vue
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@tiptap/vue",
|
"name": "@tiptap/vue",
|
||||||
"description": "Vue components for tiptap",
|
"description": "Vue components for tiptap",
|
||||||
"version": "2.0.0-beta.3",
|
"version": "2.0.0-beta.4",
|
||||||
"homepage": "https://tiptap.dev",
|
"homepage": "https://tiptap.dev",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"tiptap",
|
"tiptap",
|
||||||
|
|||||||
Reference in New Issue
Block a user