Merge branch 'main' of github.com:ueberdosis/tiptap-next

This commit is contained in:
Hans Pagel 2021-01-29 15:15:41 +01:00
commit 56c47d7340
102 changed files with 587 additions and 118 deletions

View File

@ -77,9 +77,6 @@ export default {
Highlight,
TaskList,
CustomTaskItem,
Collaboration.configure({
document: ydoc,
}),
CollaborationCursor.configure({
provider: this.provider,
user: this.currentUser,
@ -87,6 +84,9 @@ export default {
this.users = users
},
}),
Collaboration.configure({
document: ydoc,
}),
],
})

View File

@ -70,7 +70,9 @@
</template>
<script>
import { Editor, EditorContent, defaultExtensions } from '@tiptap/vue-starter-kit'
import {
Editor, EditorContent, defaultExtensions, Extension,
} from '@tiptap/vue-starter-kit'
export default {
components: {

View File

@ -33,9 +33,6 @@ export default {
Document,
Paragraph,
Text,
Collaboration.configure({
document: ydoc,
}),
CollaborationCursor.configure({
provider: this.provider,
user: {
@ -43,6 +40,9 @@ export default {
color: '#f783ac',
},
}),
Collaboration.configure({
document: ydoc,
}),
],
})
},

View File

@ -121,6 +121,6 @@ context('/demos/Nodes/TaskList', () => {
cy.get('.ProseMirror')
.find('li:nth-child(2)')
.should('contain', 'List Item 2')
.should('have.attr', 'data-checked', 'true')
.should('have.attr', 'data-checked', 'false')
})
})

View File

@ -155,16 +155,16 @@ const provider = new WebsocketProvider('ws://127.0.0.1:1234', 'example-document'
const editor = new Editor({
extensions: [
// …
Collaboration.configure({
document: ydoc,
}),
// Register the collaboration cursor extension
CollaborationCursor.configure({
provider: provider,
name: 'Cyndi Lauper',
color: '#f783ac',
}),
Collaboration.configure({
document: ydoc,
}),
// …
],
})
```

View File

@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [2.0.0-alpha.13](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/core@2.0.0-alpha.12...@tiptap/core@2.0.0-alpha.13) (2021-01-29)
**Note:** Version bump only for package @tiptap/core
# [2.0.0-alpha.12](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/core@2.0.0-alpha.11...@tiptap/core@2.0.0-alpha.12) (2021-01-28)
**Note:** Version bump only for package @tiptap/core

View File

@ -1,7 +1,7 @@
{
"name": "@tiptap/core",
"description": "headless rich text editor",
"version": "2.0.0-alpha.12",
"version": "2.0.0-alpha.13",
"homepage": "https://tiptap.dev",
"keywords": [
"tiptap",

View File

@ -195,7 +195,7 @@ export class Editor extends EventEmitter {
public registerPlugin(plugin: Plugin, handlePlugins?: (newPlugin: Plugin, plugins: Plugin[]) => Plugin[]): void {
const plugins = typeof handlePlugins === 'function'
? handlePlugins(plugin, this.state.plugins)
: [plugin, ...this.state.plugins]
: [...this.state.plugins, plugin]
const state = this.state.reconfigure({ plugins })
@ -221,7 +221,7 @@ export class Editor extends EventEmitter {
*/
private createExtensionManager(): void {
const coreExtensions = Object.entries(extensions).map(([, extension]) => extension)
const allExtensions = [...this.options.extensions, ...coreExtensions].filter(extension => {
const allExtensions = [...coreExtensions, ...this.options.extensions].filter(extension => {
return ['extension', 'node', 'mark'].includes(extension?.type)
})

View File

@ -67,7 +67,8 @@ export default class ExtensionManager {
}
get plugins(): Plugin[] {
return this.extensions
return [...this.extensions]
.reverse()
.map(extension => {
const context = {
options: extension.options,
@ -95,15 +96,18 @@ export default class ExtensionManager {
.flat()
}
get attributes() {
return getAttributesFromExtensions(this.extensions)
}
get nodeViews() {
const { editor } = this
const { nodeExtensions } = splitExtensions(this.extensions)
const allAttributes = getAttributesFromExtensions(this.extensions)
return Object.fromEntries(nodeExtensions
.filter(extension => !!extension.config.addNodeView)
.map(extension => {
const extensionAttributes = allAttributes.filter(attribute => attribute.type === extension.config.name)
const extensionAttributes = this.attributes.filter(attribute => attribute.type === extension.config.name)
const context = {
options: extension.options,
editor,

View File

@ -18,7 +18,7 @@ export const clearNodes = (): Command => ({ state, tr, dispatch }) => {
const targetLiftDepth = liftTarget(nodeRange)
if (node.type.isTextblock && dispatch) {
tr.setNodeMarkup(nodeRange.start, state.schema.nodes.paragraph)
tr.setNodeMarkup(nodeRange.start, state.doc.type.contentMatch.defaultType)
}
if ((targetLiftDepth || targetLiftDepth === 0) && dispatch) {

View File

@ -2,6 +2,7 @@ import { canSplit } from 'prosemirror-transform'
import { ContentMatch, Fragment } from 'prosemirror-model'
import { EditorState, NodeSelection, TextSelection } from 'prosemirror-state'
import { Command } from '../types'
import getSplittedAttributes from '../helpers/getSplittedAttributes'
function defaultBlockAt(match: ContentMatch) {
for (let i = 0; i < match.edgeCount; i + 1) {
@ -15,8 +16,7 @@ function defaultBlockAt(match: ContentMatch) {
}
export interface SplitBlockOptions {
withAttributes: boolean,
withMarks: boolean,
keepMarks: boolean,
}
function keepMarks(state: EditorState) {
@ -31,14 +31,24 @@ function keepMarks(state: EditorState) {
/**
* Forks a new node from an existing node.
*/
export const splitBlock = (options: Partial<SplitBlockOptions> = {}): Command => ({ tr, state, dispatch }) => {
export const splitBlock = (options: Partial<SplitBlockOptions> = {}): Command => ({
tr,
state,
dispatch,
editor,
}) => {
const defaultOptions: SplitBlockOptions = {
withAttributes: false,
withMarks: true,
keepMarks: true,
}
const config = { ...defaultOptions, ...options }
const { selection, doc } = tr
const { $from, $to } = selection
const extensionAttributes = editor.extensionManager.attributes
const newAttributes = getSplittedAttributes(
extensionAttributes,
$from.node().type.name,
$from.node().attrs,
)
if (selection instanceof NodeSelection && selection.node.isBlock) {
if (!$from.parentOffset || !canSplit(doc, $from.pos)) {
@ -46,7 +56,7 @@ export const splitBlock = (options: Partial<SplitBlockOptions> = {}): Command =>
}
if (dispatch) {
if (config.withMarks) {
if (config.keepMarks) {
keepMarks(state)
}
@ -74,9 +84,7 @@ export const splitBlock = (options: Partial<SplitBlockOptions> = {}): Command =>
let types = atEnd && deflt
? [{
type: deflt,
attrs: config.withAttributes
? $from.node().attrs
: {},
attrs: newAttributes,
}]
: undefined
@ -91,9 +99,7 @@ export const splitBlock = (options: Partial<SplitBlockOptions> = {}): Command =>
types = deflt
? [{
type: deflt,
attrs: config.withAttributes
? $from.node().attrs
: {},
attrs: newAttributes,
}]
: undefined
}
@ -111,7 +117,7 @@ export const splitBlock = (options: Partial<SplitBlockOptions> = {}): Command =>
}
}
if (config.withMarks) {
if (config.keepMarks) {
keepMarks(state)
}

View File

@ -1,13 +1,112 @@
import { splitListItem as originalSplitListItem } from 'prosemirror-schema-list'
import { NodeType } from 'prosemirror-model'
import {
NodeType,
Node as ProseMirrorNode,
Fragment,
Slice,
} from 'prosemirror-model'
import { canSplit } from 'prosemirror-transform'
import { TextSelection } from 'prosemirror-state'
import { Command } from '../types'
import getNodeType from '../helpers/getNodeType'
import getSplittedAttributes from '../helpers/getSplittedAttributes'
/**
* Splits one list item into two list items.
*/
export const splitListItem = (typeOrName: string | NodeType): Command => ({ state, dispatch }) => {
export const splitListItem = (typeOrName: string | NodeType): Command => ({
tr, state, dispatch, editor,
}) => {
const type = getNodeType(typeOrName, state.schema)
const { $from, $to } = state.selection
return originalSplitListItem(type)(state, dispatch)
// @ts-ignore
// eslint-disable-next-line
const node: ProseMirrorNode = state.selection.node
if ((node && node.isBlock) || $from.depth < 2 || !$from.sameParent($to)) {
return false
}
const grandParent = $from.node(-1)
if (grandParent.type !== type) {
return false
}
const extensionAttributes = editor.extensionManager.attributes
if ($from.parent.content.size === 0 && $from.node(-1).childCount === $from.indexAfter(-1)) {
// In an empty block. If this is a nested list, the wrapping
// list item should be split. Otherwise, bail out and let next
// command handle lifting.
if (
$from.depth === 2
|| $from.node(-3).type !== type
|| $from.index(-2) !== $from.node(-2).childCount - 1
) {
return false
}
if (dispatch) {
let wrap = Fragment.empty
const keepItem = $from.index(-1) > 0
// Build a fragment containing empty versions of the structure
// from the outer list item to the parent node of the cursor
for (let d = $from.depth - (keepItem ? 1 : 2); d >= $from.depth - 3; d -= 1) {
wrap = Fragment.from($from.node(d).copy(wrap))
}
// Add a second list item with an empty default start node
const newNextTypeAttributes = getSplittedAttributes(
extensionAttributes,
$from.node().type.name,
$from.node().attrs,
)
const nextType = type.contentMatch.defaultType?.createAndFill(newNextTypeAttributes) || undefined
wrap = wrap.append(Fragment.from(type.createAndFill(null, nextType) || undefined))
tr
.replace(
$from.before(keepItem ? undefined : -1),
$from.after(-3),
new Slice(wrap, keepItem ? 3 : 2, 2),
)
.setSelection(TextSelection.near(tr.doc.resolve($from.pos + (keepItem ? 3 : 2))))
.scrollIntoView()
}
return true
}
const nextType = $to.pos === $from.end()
? grandParent.contentMatchAt(0).defaultType
: null
const newTypeAttributes = getSplittedAttributes(
extensionAttributes,
grandParent.type.name,
grandParent.attrs,
)
const newNextTypeAttributes = getSplittedAttributes(
extensionAttributes,
$from.node().type.name,
$from.node().attrs,
)
tr.delete($from.pos, $to.pos)
const types = nextType
? [{ type, attrs: newTypeAttributes }, { type: nextType, attrs: newNextTypeAttributes }]
: [{ type, attrs: newTypeAttributes }]
if (!canSplit(tr.doc, $from.pos, 2)) {
return false
}
if (dispatch) {
tr.split($from.pos, 2, types).scrollIntoView()
}
return true
}

View File

@ -20,6 +20,7 @@ export default function getAttributesFromExtensions(extensions: Extensions): Ext
rendered: true,
renderHTML: null,
parseHTML: null,
keepOnSplit: true,
}
extensions.forEach(extension => {

View File

@ -0,0 +1,21 @@
import { AnyObject, ExtensionAttribute } from '../types'
export default function getSplittedAttributes(
extensionAttributes: ExtensionAttribute[],
typeName: string,
attributes: AnyObject,
): AnyObject {
return Object.fromEntries(Object
.entries(attributes)
.filter(([name]) => {
const extensionAttribute = extensionAttributes.find(item => {
return item.type === typeName && item.name === name
})
if (!extensionAttribute) {
return false
}
return extensionAttribute.attribute.keepOnSplit
}))
}

View File

@ -60,6 +60,7 @@ export type Attribute = {
rendered?: boolean,
renderHTML?: ((attributes: { [key: string]: any }) => { [key: string]: any } | null) | null,
parseHTML?: ((element: HTMLElement) => { [key: string]: any } | null) | null,
keepOnSplit: boolean,
}
export type Attributes = {

View File

@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [2.0.0-alpha.7](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-blockquote@2.0.0-alpha.6...@tiptap/extension-blockquote@2.0.0-alpha.7) (2021-01-29)
**Note:** Version bump only for package @tiptap/extension-blockquote
# [2.0.0-alpha.6](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-blockquote@2.0.0-alpha.5...@tiptap/extension-blockquote@2.0.0-alpha.6) (2021-01-28)
**Note:** Version bump only for package @tiptap/extension-blockquote

View File

@ -1,7 +1,7 @@
{
"name": "@tiptap/extension-blockquote",
"description": "blockquote extension for tiptap",
"version": "2.0.0-alpha.6",
"version": "2.0.0-alpha.7",
"homepage": "https://tiptap.dev",
"keywords": [
"tiptap",

View File

@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [2.0.0-alpha.7](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-bold@2.0.0-alpha.6...@tiptap/extension-bold@2.0.0-alpha.7) (2021-01-29)
**Note:** Version bump only for package @tiptap/extension-bold
# [2.0.0-alpha.6](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-bold@2.0.0-alpha.5...@tiptap/extension-bold@2.0.0-alpha.6) (2021-01-28)
**Note:** Version bump only for package @tiptap/extension-bold

View File

@ -1,7 +1,7 @@
{
"name": "@tiptap/extension-bold",
"description": "bold extension for tiptap",
"version": "2.0.0-alpha.6",
"version": "2.0.0-alpha.7",
"homepage": "https://tiptap.dev",
"keywords": [
"tiptap",

View File

@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [2.0.0-alpha.7](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-bullet-list@2.0.0-alpha.6...@tiptap/extension-bullet-list@2.0.0-alpha.7) (2021-01-29)
**Note:** Version bump only for package @tiptap/extension-bullet-list
# [2.0.0-alpha.6](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-bullet-list@2.0.0-alpha.5...@tiptap/extension-bullet-list@2.0.0-alpha.6) (2021-01-28)
**Note:** Version bump only for package @tiptap/extension-bullet-list

View File

@ -1,7 +1,7 @@
{
"name": "@tiptap/extension-bullet-list",
"description": "bullet list extension for tiptap",
"version": "2.0.0-alpha.6",
"version": "2.0.0-alpha.7",
"homepage": "https://tiptap.dev",
"keywords": [
"tiptap",

View File

@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [2.0.0-alpha.7](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-character-count@2.0.0-alpha.6...@tiptap/extension-character-count@2.0.0-alpha.7) (2021-01-29)
**Note:** Version bump only for package @tiptap/extension-character-count
# 2.0.0-alpha.6 (2021-01-28)
**Note:** Version bump only for package @tiptap/extension-character-count

View File

@ -1,7 +1,7 @@
{
"name": "@tiptap/extension-character-count",
"description": "font family extension for tiptap",
"version": "2.0.0-alpha.6",
"version": "2.0.0-alpha.7",
"homepage": "https://tiptap.dev",
"keywords": [
"tiptap",

View File

@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [2.0.0-alpha.7](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-code-block@2.0.0-alpha.6...@tiptap/extension-code-block@2.0.0-alpha.7) (2021-01-29)
**Note:** Version bump only for package @tiptap/extension-code-block
# [2.0.0-alpha.6](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-code-block@2.0.0-alpha.5...@tiptap/extension-code-block@2.0.0-alpha.6) (2021-01-28)
**Note:** Version bump only for package @tiptap/extension-code-block

View File

@ -1,7 +1,7 @@
{
"name": "@tiptap/extension-code-block",
"description": "code block extension for tiptap",
"version": "2.0.0-alpha.6",
"version": "2.0.0-alpha.7",
"homepage": "https://tiptap.dev",
"keywords": [
"tiptap",

View File

@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [2.0.0-alpha.7](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-code@2.0.0-alpha.6...@tiptap/extension-code@2.0.0-alpha.7) (2021-01-29)
**Note:** Version bump only for package @tiptap/extension-code
# [2.0.0-alpha.6](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-code@2.0.0-alpha.5...@tiptap/extension-code@2.0.0-alpha.6) (2021-01-28)
**Note:** Version bump only for package @tiptap/extension-code

View File

@ -1,7 +1,7 @@
{
"name": "@tiptap/extension-code",
"description": "code extension for tiptap",
"version": "2.0.0-alpha.6",
"version": "2.0.0-alpha.7",
"homepage": "https://tiptap.dev",
"keywords": [
"tiptap",

View File

@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [2.0.0-alpha.7](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-collaboration-cursor@2.0.0-alpha.6...@tiptap/extension-collaboration-cursor@2.0.0-alpha.7) (2021-01-29)
**Note:** Version bump only for package @tiptap/extension-collaboration-cursor
# [2.0.0-alpha.6](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-collaboration-cursor@2.0.0-alpha.5...@tiptap/extension-collaboration-cursor@2.0.0-alpha.6) (2021-01-28)
**Note:** Version bump only for package @tiptap/extension-collaboration-cursor

View File

@ -1,7 +1,7 @@
{
"name": "@tiptap/extension-collaboration-cursor",
"description": "collaboration cursor extension for tiptap",
"version": "2.0.0-alpha.6",
"version": "2.0.0-alpha.7",
"homepage": "https://tiptap.dev",
"keywords": [
"tiptap",

View File

@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [2.0.0-alpha.7](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-collaboration@2.0.0-alpha.6...@tiptap/extension-collaboration@2.0.0-alpha.7) (2021-01-29)
**Note:** Version bump only for package @tiptap/extension-collaboration
# [2.0.0-alpha.6](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-collaboration@2.0.0-alpha.5...@tiptap/extension-collaboration@2.0.0-alpha.6) (2021-01-28)
**Note:** Version bump only for package @tiptap/extension-collaboration

View File

@ -1,7 +1,7 @@
{
"name": "@tiptap/extension-collaboration",
"description": "collaboration extension for tiptap",
"version": "2.0.0-alpha.6",
"version": "2.0.0-alpha.7",
"homepage": "https://tiptap.dev",
"keywords": [
"tiptap",

View File

@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [2.0.0-alpha.7](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-document@2.0.0-alpha.6...@tiptap/extension-document@2.0.0-alpha.7) (2021-01-29)
**Note:** Version bump only for package @tiptap/extension-document
# [2.0.0-alpha.6](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-document@2.0.0-alpha.5...@tiptap/extension-document@2.0.0-alpha.6) (2021-01-28)
**Note:** Version bump only for package @tiptap/extension-document

View File

@ -1,7 +1,7 @@
{
"name": "@tiptap/extension-document",
"description": "document extension for tiptap",
"version": "2.0.0-alpha.6",
"version": "2.0.0-alpha.7",
"homepage": "https://tiptap.dev",
"keywords": [
"tiptap",

View File

@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [2.0.0-alpha.7](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-dropcursor@2.0.0-alpha.6...@tiptap/extension-dropcursor@2.0.0-alpha.7) (2021-01-29)
**Note:** Version bump only for package @tiptap/extension-dropcursor
# [2.0.0-alpha.6](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-dropcursor@2.0.0-alpha.5...@tiptap/extension-dropcursor@2.0.0-alpha.6) (2021-01-28)
**Note:** Version bump only for package @tiptap/extension-dropcursor

View File

@ -1,7 +1,7 @@
{
"name": "@tiptap/extension-dropcursor",
"description": "dropcursor extension for tiptap",
"version": "2.0.0-alpha.6",
"version": "2.0.0-alpha.7",
"homepage": "https://tiptap.dev",
"keywords": [
"tiptap",

View File

@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [2.0.0-alpha.7](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-focus@2.0.0-alpha.6...@tiptap/extension-focus@2.0.0-alpha.7) (2021-01-29)
**Note:** Version bump only for package @tiptap/extension-focus
# [2.0.0-alpha.6](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-focus@2.0.0-alpha.5...@tiptap/extension-focus@2.0.0-alpha.6) (2021-01-28)
**Note:** Version bump only for package @tiptap/extension-focus

View File

@ -1,7 +1,7 @@
{
"name": "@tiptap/extension-focus",
"description": "focus extension for tiptap",
"version": "2.0.0-alpha.6",
"version": "2.0.0-alpha.7",
"homepage": "https://tiptap.dev",
"keywords": [
"tiptap",

View File

@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [2.0.0-alpha.7](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-font-family@2.0.0-alpha.6...@tiptap/extension-font-family@2.0.0-alpha.7) (2021-01-29)
**Note:** Version bump only for package @tiptap/extension-font-family
# [2.0.0-alpha.6](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-font-family@2.0.0-alpha.5...@tiptap/extension-font-family@2.0.0-alpha.6) (2021-01-28)
**Note:** Version bump only for package @tiptap/extension-font-family

View File

@ -1,7 +1,7 @@
{
"name": "@tiptap/extension-font-family",
"description": "font family extension for tiptap",
"version": "2.0.0-alpha.6",
"version": "2.0.0-alpha.7",
"homepage": "https://tiptap.dev",
"keywords": [
"tiptap",

View File

@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [2.0.0-alpha.7](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-gapcursor@2.0.0-alpha.6...@tiptap/extension-gapcursor@2.0.0-alpha.7) (2021-01-29)
**Note:** Version bump only for package @tiptap/extension-gapcursor
# [2.0.0-alpha.6](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-gapcursor@2.0.0-alpha.5...@tiptap/extension-gapcursor@2.0.0-alpha.6) (2021-01-28)
**Note:** Version bump only for package @tiptap/extension-gapcursor

View File

@ -1,7 +1,7 @@
{
"name": "@tiptap/extension-gapcursor",
"description": "gapcursor extension for tiptap",
"version": "2.0.0-alpha.6",
"version": "2.0.0-alpha.7",
"homepage": "https://tiptap.dev",
"keywords": [
"tiptap",

View File

@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [2.0.0-alpha.7](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-hard-break@2.0.0-alpha.6...@tiptap/extension-hard-break@2.0.0-alpha.7) (2021-01-29)
**Note:** Version bump only for package @tiptap/extension-hard-break
# [2.0.0-alpha.6](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-hard-break@2.0.0-alpha.5...@tiptap/extension-hard-break@2.0.0-alpha.6) (2021-01-28)
**Note:** Version bump only for package @tiptap/extension-hard-break

View File

@ -1,7 +1,7 @@
{
"name": "@tiptap/extension-hard-break",
"description": "hard break extension for tiptap",
"version": "2.0.0-alpha.6",
"version": "2.0.0-alpha.7",
"homepage": "https://tiptap.dev",
"keywords": [
"tiptap",

View File

@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [2.0.0-alpha.7](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-heading@2.0.0-alpha.6...@tiptap/extension-heading@2.0.0-alpha.7) (2021-01-29)
**Note:** Version bump only for package @tiptap/extension-heading
# [2.0.0-alpha.6](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-heading@2.0.0-alpha.5...@tiptap/extension-heading@2.0.0-alpha.6) (2021-01-28)
**Note:** Version bump only for package @tiptap/extension-heading

View File

@ -1,7 +1,7 @@
{
"name": "@tiptap/extension-heading",
"description": "heading extension for tiptap",
"version": "2.0.0-alpha.6",
"version": "2.0.0-alpha.7",
"homepage": "https://tiptap.dev",
"keywords": [
"tiptap",

View File

@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [2.0.0-alpha.7](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-highlight@2.0.0-alpha.6...@tiptap/extension-highlight@2.0.0-alpha.7) (2021-01-29)
**Note:** Version bump only for package @tiptap/extension-highlight
# [2.0.0-alpha.6](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-highlight@2.0.0-alpha.5...@tiptap/extension-highlight@2.0.0-alpha.6) (2021-01-28)
**Note:** Version bump only for package @tiptap/extension-highlight

View File

@ -1,7 +1,7 @@
{
"name": "@tiptap/extension-highlight",
"description": "highlight extension for tiptap",
"version": "2.0.0-alpha.6",
"version": "2.0.0-alpha.7",
"homepage": "https://tiptap.dev",
"keywords": [
"tiptap",

View File

@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [2.0.0-alpha.7](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-history@2.0.0-alpha.6...@tiptap/extension-history@2.0.0-alpha.7) (2021-01-29)
**Note:** Version bump only for package @tiptap/extension-history
# [2.0.0-alpha.6](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-history@2.0.0-alpha.5...@tiptap/extension-history@2.0.0-alpha.6) (2021-01-28)
**Note:** Version bump only for package @tiptap/extension-history

View File

@ -1,7 +1,7 @@
{
"name": "@tiptap/extension-history",
"description": "history extension for tiptap",
"version": "2.0.0-alpha.6",
"version": "2.0.0-alpha.7",
"homepage": "https://tiptap.dev",
"keywords": [
"tiptap",

View File

@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [2.0.0-alpha.7](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-horizontal-rule@2.0.0-alpha.6...@tiptap/extension-horizontal-rule@2.0.0-alpha.7) (2021-01-29)
**Note:** Version bump only for package @tiptap/extension-horizontal-rule
# [2.0.0-alpha.6](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-horizontal-rule@2.0.0-alpha.5...@tiptap/extension-horizontal-rule@2.0.0-alpha.6) (2021-01-28)
**Note:** Version bump only for package @tiptap/extension-horizontal-rule

View File

@ -1,7 +1,7 @@
{
"name": "@tiptap/extension-horizontal-rule",
"description": "horizontal rule extension for tiptap",
"version": "2.0.0-alpha.6",
"version": "2.0.0-alpha.7",
"homepage": "https://tiptap.dev",
"keywords": [
"tiptap",

View File

@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [2.0.0-alpha.7](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-image@2.0.0-alpha.6...@tiptap/extension-image@2.0.0-alpha.7) (2021-01-29)
**Note:** Version bump only for package @tiptap/extension-image
# [2.0.0-alpha.6](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-image@2.0.0-alpha.5...@tiptap/extension-image@2.0.0-alpha.6) (2021-01-28)
**Note:** Version bump only for package @tiptap/extension-image

View File

@ -1,7 +1,7 @@
{
"name": "@tiptap/extension-image",
"description": "image extension for tiptap",
"version": "2.0.0-alpha.6",
"version": "2.0.0-alpha.7",
"homepage": "https://tiptap.dev",
"keywords": [
"tiptap",

View File

@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [2.0.0-alpha.7](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-italic@2.0.0-alpha.6...@tiptap/extension-italic@2.0.0-alpha.7) (2021-01-29)
**Note:** Version bump only for package @tiptap/extension-italic
# [2.0.0-alpha.6](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-italic@2.0.0-alpha.5...@tiptap/extension-italic@2.0.0-alpha.6) (2021-01-28)
**Note:** Version bump only for package @tiptap/extension-italic

View File

@ -1,7 +1,7 @@
{
"name": "@tiptap/extension-italic",
"description": "italic extension for tiptap",
"version": "2.0.0-alpha.6",
"version": "2.0.0-alpha.7",
"homepage": "https://tiptap.dev",
"keywords": [
"tiptap",

View File

@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [2.0.0-alpha.7](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-link@2.0.0-alpha.6...@tiptap/extension-link@2.0.0-alpha.7) (2021-01-29)
**Note:** Version bump only for package @tiptap/extension-link
# [2.0.0-alpha.6](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-link@2.0.0-alpha.5...@tiptap/extension-link@2.0.0-alpha.6) (2021-01-28)
**Note:** Version bump only for package @tiptap/extension-link

View File

@ -1,7 +1,7 @@
{
"name": "@tiptap/extension-link",
"description": "link extension for tiptap",
"version": "2.0.0-alpha.6",
"version": "2.0.0-alpha.7",
"homepage": "https://tiptap.dev",
"keywords": [
"tiptap",

View File

@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [2.0.0-alpha.7](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-list-item@2.0.0-alpha.6...@tiptap/extension-list-item@2.0.0-alpha.7) (2021-01-29)
**Note:** Version bump only for package @tiptap/extension-list-item
# [2.0.0-alpha.6](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-list-item@2.0.0-alpha.5...@tiptap/extension-list-item@2.0.0-alpha.6) (2021-01-28)
**Note:** Version bump only for package @tiptap/extension-list-item

View File

@ -1,7 +1,7 @@
{
"name": "@tiptap/extension-list-item",
"description": "list item extension for tiptap",
"version": "2.0.0-alpha.6",
"version": "2.0.0-alpha.7",
"homepage": "https://tiptap.dev",
"keywords": [
"tiptap",

View File

@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [2.0.0-alpha.3](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-mention@2.0.0-alpha.2...@tiptap/extension-mention@2.0.0-alpha.3) (2021-01-29)
**Note:** Version bump only for package @tiptap/extension-mention
# [2.0.0-alpha.2](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-mention@2.0.0-alpha.1...@tiptap/extension-mention@2.0.0-alpha.2) (2021-01-28)
**Note:** Version bump only for package @tiptap/extension-mention

View File

@ -1,7 +1,7 @@
{
"name": "@tiptap/extension-mention",
"description": "mention extension for tiptap",
"version": "2.0.0-alpha.2",
"version": "2.0.0-alpha.3",
"homepage": "https://tiptap.dev",
"keywords": [
"tiptap",
@ -25,6 +25,6 @@
"@tiptap/core": "^2.0.0-alpha.6"
},
"dependencies": {
"@tiptap/suggestion": "^2.0.0-alpha.2"
"@tiptap/suggestion": "^2.0.0-alpha.3"
}
}

View File

@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [2.0.0-alpha.7](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-ordered-list@2.0.0-alpha.6...@tiptap/extension-ordered-list@2.0.0-alpha.7) (2021-01-29)
**Note:** Version bump only for package @tiptap/extension-ordered-list
# [2.0.0-alpha.6](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-ordered-list@2.0.0-alpha.5...@tiptap/extension-ordered-list@2.0.0-alpha.6) (2021-01-28)
**Note:** Version bump only for package @tiptap/extension-ordered-list

View File

@ -1,7 +1,7 @@
{
"name": "@tiptap/extension-ordered-list",
"description": "ordered list extension for tiptap",
"version": "2.0.0-alpha.6",
"version": "2.0.0-alpha.7",
"homepage": "https://tiptap.dev",
"keywords": [
"tiptap",

View File

@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [2.0.0-alpha.7](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-paragraph@2.0.0-alpha.6...@tiptap/extension-paragraph@2.0.0-alpha.7) (2021-01-29)
**Note:** Version bump only for package @tiptap/extension-paragraph
# [2.0.0-alpha.6](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-paragraph@2.0.0-alpha.5...@tiptap/extension-paragraph@2.0.0-alpha.6) (2021-01-28)
**Note:** Version bump only for package @tiptap/extension-paragraph

View File

@ -1,7 +1,7 @@
{
"name": "@tiptap/extension-paragraph",
"description": "paragraph extension for tiptap",
"version": "2.0.0-alpha.6",
"version": "2.0.0-alpha.7",
"homepage": "https://tiptap.dev",
"keywords": [
"tiptap",

View File

@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [2.0.0-alpha.7](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-strike@2.0.0-alpha.6...@tiptap/extension-strike@2.0.0-alpha.7) (2021-01-29)
**Note:** Version bump only for package @tiptap/extension-strike
# [2.0.0-alpha.6](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-strike@2.0.0-alpha.5...@tiptap/extension-strike@2.0.0-alpha.6) (2021-01-28)
**Note:** Version bump only for package @tiptap/extension-strike

View File

@ -1,7 +1,7 @@
{
"name": "@tiptap/extension-strike",
"description": "strike extension for tiptap",
"version": "2.0.0-alpha.6",
"version": "2.0.0-alpha.7",
"homepage": "https://tiptap.dev",
"keywords": [
"tiptap",

View File

@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [2.0.0-alpha.7](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-table-cell@2.0.0-alpha.6...@tiptap/extension-table-cell@2.0.0-alpha.7) (2021-01-29)
**Note:** Version bump only for package @tiptap/extension-table-cell
# 2.0.0-alpha.6 (2021-01-28)
**Note:** Version bump only for package @tiptap/extension-table-cell

View File

@ -1,7 +1,7 @@
{
"name": "@tiptap/extension-table-cell",
"description": "table cell extension for tiptap",
"version": "2.0.0-alpha.6",
"version": "2.0.0-alpha.7",
"homepage": "https://tiptap.dev",
"keywords": [
"tiptap",

View File

@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [2.0.0-alpha.7](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-table-header@2.0.0-alpha.6...@tiptap/extension-table-header@2.0.0-alpha.7) (2021-01-29)
**Note:** Version bump only for package @tiptap/extension-table-header
# 2.0.0-alpha.6 (2021-01-28)
**Note:** Version bump only for package @tiptap/extension-table-header

View File

@ -1,7 +1,7 @@
{
"name": "@tiptap/extension-table-header",
"description": "table cell extension for tiptap",
"version": "2.0.0-alpha.6",
"version": "2.0.0-alpha.7",
"homepage": "https://tiptap.dev",
"keywords": [
"tiptap",

View File

@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [2.0.0-alpha.7](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-table-row@2.0.0-alpha.6...@tiptap/extension-table-row@2.0.0-alpha.7) (2021-01-29)
**Note:** Version bump only for package @tiptap/extension-table-row
# 2.0.0-alpha.6 (2021-01-28)
**Note:** Version bump only for package @tiptap/extension-table-row

View File

@ -1,7 +1,7 @@
{
"name": "@tiptap/extension-table-row",
"description": "table row extension for tiptap",
"version": "2.0.0-alpha.6",
"version": "2.0.0-alpha.7",
"homepage": "https://tiptap.dev",
"keywords": [
"tiptap",

View File

@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [2.0.0-alpha.7](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-table@2.0.0-alpha.6...@tiptap/extension-table@2.0.0-alpha.7) (2021-01-29)
**Note:** Version bump only for package @tiptap/extension-table
# 2.0.0-alpha.6 (2021-01-28)
**Note:** Version bump only for package @tiptap/extension-table

View File

@ -1,7 +1,7 @@
{
"name": "@tiptap/extension-table",
"description": "table extension for tiptap",
"version": "2.0.0-alpha.6",
"version": "2.0.0-alpha.7",
"homepage": "https://tiptap.dev",
"keywords": [
"tiptap",

View File

@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [2.0.0-alpha.8](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-task-item@2.0.0-alpha.7...@tiptap/extension-task-item@2.0.0-alpha.8) (2021-01-29)
**Note:** Version bump only for package @tiptap/extension-task-item
# [2.0.0-alpha.7](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-task-item@2.0.0-alpha.6...@tiptap/extension-task-item@2.0.0-alpha.7) (2021-01-28)
**Note:** Version bump only for package @tiptap/extension-task-item

View File

@ -1,7 +1,7 @@
{
"name": "@tiptap/extension-task-item",
"description": "task item extension for tiptap",
"version": "2.0.0-alpha.7",
"version": "2.0.0-alpha.8",
"homepage": "https://tiptap.dev",
"keywords": [
"tiptap",

View File

@ -34,6 +34,7 @@ export const TaskItem = Node.create({
renderHTML: attributes => ({
'data-checked': attributes.checked,
}),
keepOnSplit: false,
},
}
},

View File

@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [2.0.0-alpha.7](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-task-list@2.0.0-alpha.6...@tiptap/extension-task-list@2.0.0-alpha.7) (2021-01-29)
**Note:** Version bump only for package @tiptap/extension-task-list
# [2.0.0-alpha.6](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-task-list@2.0.0-alpha.5...@tiptap/extension-task-list@2.0.0-alpha.6) (2021-01-28)
**Note:** Version bump only for package @tiptap/extension-task-list

View File

@ -1,7 +1,7 @@
{
"name": "@tiptap/extension-task-list",
"description": "task list extension for tiptap",
"version": "2.0.0-alpha.6",
"version": "2.0.0-alpha.7",
"homepage": "https://tiptap.dev",
"keywords": [
"tiptap",

View File

@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [2.0.0-alpha.8](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-text-align@2.0.0-alpha.7...@tiptap/extension-text-align@2.0.0-alpha.8) (2021-01-29)
**Note:** Version bump only for package @tiptap/extension-text-align
# [2.0.0-alpha.7](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-text-align@2.0.0-alpha.6...@tiptap/extension-text-align@2.0.0-alpha.7) (2021-01-28)
**Note:** Version bump only for package @tiptap/extension-text-align

View File

@ -1,7 +1,7 @@
{
"name": "@tiptap/extension-text-align",
"description": "text align extension for tiptap",
"version": "2.0.0-alpha.7",
"version": "2.0.0-alpha.8",
"homepage": "https://tiptap.dev",
"keywords": [
"tiptap",

View File

@ -57,16 +57,6 @@ export const TextAlign = Extension.create({
addKeyboardShortcuts() {
return {
// TODO: re-use only 'textAlign' attribute
// TODO: use custom splitBlock only for `this.options.types`
Enter: () => this.editor.commands.first(({ commands }) => [
() => commands.newlineInCode(),
() => commands.createParagraphNear(),
() => commands.liftEmptyBlock(),
() => commands.splitBlock({
withAttributes: true,
}),
]),
'Mod-Shift-l': () => this.editor.commands.setTextAlign('left'),
'Mod-Shift-e': () => this.editor.commands.setTextAlign('center'),
'Mod-Shift-r': () => this.editor.commands.setTextAlign('right'),

View File

@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [2.0.0-alpha.7](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-text-style@2.0.0-alpha.6...@tiptap/extension-text-style@2.0.0-alpha.7) (2021-01-29)
**Note:** Version bump only for package @tiptap/extension-text-style
# [2.0.0-alpha.6](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-text-style@2.0.0-alpha.5...@tiptap/extension-text-style@2.0.0-alpha.6) (2021-01-28)
**Note:** Version bump only for package @tiptap/extension-text-style

View File

@ -1,7 +1,7 @@
{
"name": "@tiptap/extension-text-style",
"description": "text style extension for tiptap",
"version": "2.0.0-alpha.6",
"version": "2.0.0-alpha.7",
"homepage": "https://tiptap.dev",
"keywords": [
"tiptap",

View File

@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [2.0.0-alpha.7](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-text@2.0.0-alpha.6...@tiptap/extension-text@2.0.0-alpha.7) (2021-01-29)
**Note:** Version bump only for package @tiptap/extension-text
# [2.0.0-alpha.6](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-text@2.0.0-alpha.5...@tiptap/extension-text@2.0.0-alpha.6) (2021-01-28)
**Note:** Version bump only for package @tiptap/extension-text

View File

@ -1,7 +1,7 @@
{
"name": "@tiptap/extension-text",
"description": "text extension for tiptap",
"version": "2.0.0-alpha.6",
"version": "2.0.0-alpha.7",
"homepage": "https://tiptap.dev",
"keywords": [
"tiptap",

View File

@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [2.0.0-alpha.7](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-typography@2.0.0-alpha.6...@tiptap/extension-typography@2.0.0-alpha.7) (2021-01-29)
**Note:** Version bump only for package @tiptap/extension-typography
# [2.0.0-alpha.6](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-typography@2.0.0-alpha.5...@tiptap/extension-typography@2.0.0-alpha.6) (2021-01-28)
**Note:** Version bump only for package @tiptap/extension-typography

View File

@ -1,7 +1,7 @@
{
"name": "@tiptap/extension-typography",
"description": "typography extension for tiptap",
"version": "2.0.0-alpha.6",
"version": "2.0.0-alpha.7",
"homepage": "https://tiptap.dev",
"keywords": [
"tiptap",

View File

@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [2.0.0-alpha.7](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-underline@2.0.0-alpha.6...@tiptap/extension-underline@2.0.0-alpha.7) (2021-01-29)
**Note:** Version bump only for package @tiptap/extension-underline
# [2.0.0-alpha.6](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-underline@2.0.0-alpha.5...@tiptap/extension-underline@2.0.0-alpha.6) (2021-01-28)
**Note:** Version bump only for package @tiptap/extension-underline

View File

@ -1,7 +1,7 @@
{
"name": "@tiptap/extension-underline",
"description": "underline extension for tiptap",
"version": "2.0.0-alpha.6",
"version": "2.0.0-alpha.7",
"homepage": "https://tiptap.dev",
"keywords": [
"tiptap",

View File

@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [2.0.0-alpha.9](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/html@2.0.0-alpha.8...@tiptap/html@2.0.0-alpha.9) (2021-01-29)
**Note:** Version bump only for package @tiptap/html
# [2.0.0-alpha.8](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/html@2.0.0-alpha.7...@tiptap/html@2.0.0-alpha.8) (2021-01-28)
**Note:** Version bump only for package @tiptap/html

View File

@ -1,7 +1,7 @@
{
"name": "@tiptap/html",
"description": "utility package to render tiptap JSON as HTML",
"version": "2.0.0-alpha.8",
"version": "2.0.0-alpha.9",
"homepage": "https://tiptap.dev",
"keywords": [
"tiptap",
@ -22,7 +22,7 @@
"dist"
],
"dependencies": {
"@tiptap/core": "^2.0.0-alpha.12",
"@tiptap/core": "^2.0.0-alpha.13",
"hostic-dom": "^0.8.6",
"prosemirror-model": "^1.12.0"
}

View File

@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [2.0.0-alpha.9](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/starter-kit@2.0.0-alpha.8...@tiptap/starter-kit@2.0.0-alpha.9) (2021-01-29)
**Note:** Version bump only for package @tiptap/starter-kit
# [2.0.0-alpha.8](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/starter-kit@2.0.0-alpha.7...@tiptap/starter-kit@2.0.0-alpha.8) (2021-01-28)
**Note:** Version bump only for package @tiptap/starter-kit

View File

@ -1,7 +1,7 @@
{
"name": "@tiptap/starter-kit",
"description": "starter kit for tiptap",
"version": "2.0.0-alpha.8",
"version": "2.0.0-alpha.9",
"homepage": "https://tiptap.dev",
"keywords": [
"tiptap",
@ -22,23 +22,23 @@
"dist"
],
"dependencies": {
"@tiptap/extension-blockquote": "^2.0.0-alpha.6",
"@tiptap/extension-bold": "^2.0.0-alpha.6",
"@tiptap/extension-bullet-list": "^2.0.0-alpha.6",
"@tiptap/extension-code": "^2.0.0-alpha.6",
"@tiptap/extension-code-block": "^2.0.0-alpha.6",
"@tiptap/extension-document": "^2.0.0-alpha.6",
"@tiptap/extension-dropcursor": "^2.0.0-alpha.6",
"@tiptap/extension-gapcursor": "^2.0.0-alpha.6",
"@tiptap/extension-hard-break": "^2.0.0-alpha.6",
"@tiptap/extension-heading": "^2.0.0-alpha.6",
"@tiptap/extension-history": "^2.0.0-alpha.6",
"@tiptap/extension-horizontal-rule": "^2.0.0-alpha.6",
"@tiptap/extension-italic": "^2.0.0-alpha.6",
"@tiptap/extension-list-item": "^2.0.0-alpha.6",
"@tiptap/extension-ordered-list": "^2.0.0-alpha.6",
"@tiptap/extension-paragraph": "^2.0.0-alpha.6",
"@tiptap/extension-strike": "^2.0.0-alpha.6",
"@tiptap/extension-text": "^2.0.0-alpha.6"
"@tiptap/extension-blockquote": "^2.0.0-alpha.7",
"@tiptap/extension-bold": "^2.0.0-alpha.7",
"@tiptap/extension-bullet-list": "^2.0.0-alpha.7",
"@tiptap/extension-code": "^2.0.0-alpha.7",
"@tiptap/extension-code-block": "^2.0.0-alpha.7",
"@tiptap/extension-document": "^2.0.0-alpha.7",
"@tiptap/extension-dropcursor": "^2.0.0-alpha.7",
"@tiptap/extension-gapcursor": "^2.0.0-alpha.7",
"@tiptap/extension-hard-break": "^2.0.0-alpha.7",
"@tiptap/extension-heading": "^2.0.0-alpha.7",
"@tiptap/extension-history": "^2.0.0-alpha.7",
"@tiptap/extension-horizontal-rule": "^2.0.0-alpha.7",
"@tiptap/extension-italic": "^2.0.0-alpha.7",
"@tiptap/extension-list-item": "^2.0.0-alpha.7",
"@tiptap/extension-ordered-list": "^2.0.0-alpha.7",
"@tiptap/extension-paragraph": "^2.0.0-alpha.7",
"@tiptap/extension-strike": "^2.0.0-alpha.7",
"@tiptap/extension-text": "^2.0.0-alpha.7"
}
}

View File

@ -35,23 +35,23 @@ export function defaultExtensions(options?: Partial<{
listItem: ListItemOptions,
}>) {
return [
Dropcursor.configure(options?.dropursor),
Gapcursor,
Document,
History.configure(options?.history),
Paragraph.configure(options?.paragraph),
Text,
Bold.configure(options?.bold),
Italic.configure(options?.italic),
Code.configure(options?.code),
CodeBlock.configure(options?.codeBlock),
Heading.configure(options?.heading),
HardBreak.configure(options?.hardBreak),
Strike.configure(options?.strike),
HardBreak.configure(options?.hardBreak),
Heading.configure(options?.heading),
Blockquote.configure(options?.blockquote),
HorizontalRule.configure(options?.horizontalRule),
BulletList.configure(options?.bulletList),
OrderedList.configure(options?.orderedList),
ListItem.configure(options?.listItem),
HorizontalRule.configure(options?.horizontalRule),
CodeBlock.configure(options?.codeBlock),
History.configure(options?.history),
Dropcursor.configure(options?.dropursor),
Gapcursor,
]
}

View File

@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [2.0.0-alpha.3](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/suggestion@2.0.0-alpha.2...@tiptap/suggestion@2.0.0-alpha.3) (2021-01-29)
**Note:** Version bump only for package @tiptap/suggestion
# [2.0.0-alpha.2](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/suggestion@2.0.0-alpha.1...@tiptap/suggestion@2.0.0-alpha.2) (2021-01-28)
**Note:** Version bump only for package @tiptap/suggestion

View File

@ -1,7 +1,7 @@
{
"name": "@tiptap/suggestion",
"description": "suggestion plugin for tiptap",
"version": "2.0.0-alpha.2",
"version": "2.0.0-alpha.3",
"homepage": "https://tiptap.dev",
"keywords": [
"tiptap",
@ -22,7 +22,7 @@
"dist"
],
"dependencies": {
"@tiptap/core": "^2.0.0-alpha.12",
"@tiptap/core": "^2.0.0-alpha.13",
"prosemirror-model": "^1.12.0",
"prosemirror-state": "^1.3.4",
"prosemirror-view": "^1.16.3"

View File

@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [2.0.0-alpha.11](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/vue-starter-kit@2.0.0-alpha.10...@tiptap/vue-starter-kit@2.0.0-alpha.11) (2021-01-29)
**Note:** Version bump only for package @tiptap/vue-starter-kit
# [2.0.0-alpha.10](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/vue-starter-kit@2.0.0-alpha.9...@tiptap/vue-starter-kit@2.0.0-alpha.10) (2021-01-28)
**Note:** Version bump only for package @tiptap/vue-starter-kit

View File

@ -1,7 +1,7 @@
{
"name": "@tiptap/vue-starter-kit",
"description": "Vue starter kit for tiptap",
"version": "2.0.0-alpha.10",
"version": "2.0.0-alpha.11",
"homepage": "https://tiptap.dev",
"keywords": [
"tiptap",
@ -22,7 +22,7 @@
"dist"
],
"dependencies": {
"@tiptap/starter-kit": "^2.0.0-alpha.8",
"@tiptap/vue": "^2.0.0-alpha.7"
"@tiptap/starter-kit": "^2.0.0-alpha.9",
"@tiptap/vue": "^2.0.0-alpha.8"
}
}

Some files were not shown because too many files have changed in this diff Show More