From 67d25bf36b05bdc81d782b06f1002416b4532cbb Mon Sep 17 00:00:00 2001 From: Hans Pagel Date: Thu, 13 Aug 2020 11:23:17 +0200 Subject: [PATCH] switch to main branch --- README.md | 2 +- examples/main.js | 44 +++++++++---------- .../src/commands/splitToDefaultListItem.js | 4 +- 3 files changed, 25 insertions(+), 25 deletions(-) diff --git a/README.md b/README.md index 1469a2fe..b0dc2fd2 100644 --- a/README.md +++ b/README.md @@ -387,7 +387,7 @@ export default class BlockquoteNode extends Node { ### Create a Node as a Vue Component -The real power of the nodes comes in combination with Vue components. Let us build an iframe node, where you can change its URL (this can also be found in our [examples](https://github.com/ueberdosis/tiptap/tree/master/examples/Components/Routes/Embeds)). +The real power of the nodes comes in combination with Vue components. Let us build an iframe node, where you can change its URL (this can also be found in our [examples](https://github.com/ueberdosis/tiptap/tree/main/examples/Components/Routes/Embeds)). ```js import { Node } from 'tiptap' diff --git a/examples/main.js b/examples/main.js index 6ae26e5e..6ee6f539 100644 --- a/examples/main.js +++ b/examples/main.js @@ -15,154 +15,154 @@ const routes = [ path: '/', component: () => import('Components/Routes/Basic'), meta: { - githubUrl: 'https://github.com/ueberdosis/tiptap/tree/master/examples/Components/Routes/Basic', + githubUrl: 'https://github.com/ueberdosis/tiptap/tree/main/examples/Components/Routes/Basic', }, }, { path: '/menu-bubble', component: () => import('Components/Routes/MenuBubble'), meta: { - githubUrl: 'https://github.com/ueberdosis/tiptap/tree/master/examples/Components/Routes/MenuBubble', + githubUrl: 'https://github.com/ueberdosis/tiptap/tree/main/examples/Components/Routes/MenuBubble', }, }, { path: '/floating-menu', component: () => import('Components/Routes/FloatingMenu'), meta: { - githubUrl: 'https://github.com/ueberdosis/tiptap/tree/master/examples/Components/Routes/FloatingMenu', + githubUrl: 'https://github.com/ueberdosis/tiptap/tree/main/examples/Components/Routes/FloatingMenu', }, }, { path: '/links', component: () => import('Components/Routes/Links'), meta: { - githubUrl: 'https://github.com/ueberdosis/tiptap/tree/master/examples/Components/Routes/Links', + githubUrl: 'https://github.com/ueberdosis/tiptap/tree/main/examples/Components/Routes/Links', }, }, { path: '/images', component: () => import('Components/Routes/Images'), meta: { - githubUrl: 'https://github.com/ueberdosis/tiptap/tree/master/examples/Components/Routes/Images', + githubUrl: 'https://github.com/ueberdosis/tiptap/tree/main/examples/Components/Routes/Images', }, }, { path: '/hiding-menu-bar', component: () => import('Components/Routes/HidingMenuBar'), meta: { - githubUrl: 'https://github.com/ueberdosis/tiptap/tree/master/examples/Components/Routes/HidingMenuBar', + githubUrl: 'https://github.com/ueberdosis/tiptap/tree/main/examples/Components/Routes/HidingMenuBar', }, }, { path: '/tables', component: () => import('Components/Routes/Tables'), meta: { - githubUrl: 'https://github.com/ueberdosis/tiptap/tree/master/examples/Components/Routes/Tables', + githubUrl: 'https://github.com/ueberdosis/tiptap/tree/main/examples/Components/Routes/Tables', }, }, { path: '/todo-list', component: () => import('Components/Routes/TodoList'), meta: { - githubUrl: 'https://github.com/ueberdosis/tiptap/tree/master/examples/Components/Routes/TodoList', + githubUrl: 'https://github.com/ueberdosis/tiptap/tree/main/examples/Components/Routes/TodoList', }, }, { path: '/search-and-replace', component: () => import('Components/Routes/SearchAndReplace'), meta: { - githubUrl: 'https://github.com/ueberdosis/tiptap/tree/master/examples/Components/Routes/SearchAndReplace', + githubUrl: 'https://github.com/ueberdosis/tiptap/tree/main/examples/Components/Routes/SearchAndReplace', }, }, { path: '/suggestions', component: () => import('Components/Routes/Suggestions'), meta: { - githubUrl: 'https://github.com/ueberdosis/tiptap/tree/master/examples/Components/Routes/Suggestions', + githubUrl: 'https://github.com/ueberdosis/tiptap/tree/main/examples/Components/Routes/Suggestions', }, }, { path: '/markdown-shortcuts', component: () => import('Components/Routes/MarkdownShortcuts'), meta: { - githubUrl: 'https://github.com/ueberdosis/tiptap/tree/master/examples/Components/Routes/MarkdownShortcuts', + githubUrl: 'https://github.com/ueberdosis/tiptap/tree/main/examples/Components/Routes/MarkdownShortcuts', }, }, { path: '/code-highlighting', component: () => import('Components/Routes/CodeHighlighting'), meta: { - githubUrl: 'https://github.com/ueberdosis/tiptap/tree/master/examples/Components/Routes/CodeHighlighting', + githubUrl: 'https://github.com/ueberdosis/tiptap/tree/main/examples/Components/Routes/CodeHighlighting', }, }, { path: '/history', component: () => import('Components/Routes/History'), meta: { - githubUrl: 'https://github.com/ueberdosis/tiptap/tree/master/examples/Components/Routes/History', + githubUrl: 'https://github.com/ueberdosis/tiptap/tree/main/examples/Components/Routes/History', }, }, { path: '/read-only', component: () => import('Components/Routes/ReadOnly'), meta: { - githubUrl: 'https://github.com/ueberdosis/tiptap/tree/master/examples/Components/Routes/ReadOnly', + githubUrl: 'https://github.com/ueberdosis/tiptap/tree/main/examples/Components/Routes/ReadOnly', }, }, { path: '/embeds', component: () => import('Components/Routes/Embeds'), meta: { - githubUrl: 'https://github.com/ueberdosis/tiptap/tree/master/examples/Components/Routes/Embeds', + githubUrl: 'https://github.com/ueberdosis/tiptap/tree/main/examples/Components/Routes/Embeds', }, }, { path: '/placeholder', component: () => import('Components/Routes/Placeholder'), meta: { - githubUrl: 'https://github.com/ueberdosis/tiptap/tree/master/examples/Components/Routes/Placeholder', + githubUrl: 'https://github.com/ueberdosis/tiptap/tree/main/examples/Components/Routes/Placeholder', }, }, { path: '/focus', component: () => import('Components/Routes/Focus'), meta: { - githubUrl: 'https://github.com/ueberdosis/tiptap/tree/master/examples/Components/Routes/Focus', + githubUrl: 'https://github.com/ueberdosis/tiptap/tree/main/examples/Components/Routes/Focus', }, }, { path: '/collaboration', component: () => import('Components/Routes/Collaboration'), meta: { - githubUrl: 'https://github.com/ueberdosis/tiptap/tree/master/examples/Components/Routes/Collaboration', + githubUrl: 'https://github.com/ueberdosis/tiptap/tree/main/examples/Components/Routes/Collaboration', }, }, { path: '/title', component: () => import('Components/Routes/Title'), meta: { - githubUrl: 'https://github.com/ueberdosis/tiptap/tree/master/examples/Components/Routes/Title', + githubUrl: 'https://github.com/ueberdosis/tiptap/tree/main/examples/Components/Routes/Title', }, }, { path: '/trailing-paragraph', component: () => import('Components/Routes/TrailingParagraph'), meta: { - githubUrl: 'https://github.com/ueberdosis/tiptap/tree/master/examples/Components/Routes/TrailingParagraph', + githubUrl: 'https://github.com/ueberdosis/tiptap/tree/main/examples/Components/Routes/TrailingParagraph', }, }, { path: '/drag-handle', component: () => import('Components/Routes/DragHandle'), meta: { - githubUrl: 'https://github.com/ueberdosis/tiptap/tree/master/examples/Components/Routes/DragHandle', + githubUrl: 'https://github.com/ueberdosis/tiptap/tree/main/examples/Components/Routes/DragHandle', }, }, { path: '/export', component: () => import('Components/Routes/Export'), meta: { - githubUrl: 'https://github.com/ueberdosis/tiptap/tree/master/examples/Components/Routes/Export', + githubUrl: 'https://github.com/ueberdosis/tiptap/tree/main/examples/Components/Routes/Export', }, }, ] diff --git a/packages/tiptap-commands/src/commands/splitToDefaultListItem.js b/packages/tiptap-commands/src/commands/splitToDefaultListItem.js index 7fe95f8e..8c76a689 100644 --- a/packages/tiptap-commands/src/commands/splitToDefaultListItem.js +++ b/packages/tiptap-commands/src/commands/splitToDefaultListItem.js @@ -1,7 +1,7 @@ import { Fragment, Slice } from 'prosemirror-model' // this is a copy of canSplit -// see https://github.com/ProseMirror/prosemirror-transform/blob/master/src/structure.js +// see https://github.com/ProseMirror/prosemirror-transform/blob/main/src/structure.js // Since this piece of code was "borrowed" from prosemirror, ESLint rules are ignored. /* eslint-disable max-len, no-plusplus, no-undef, eqeqeq */ @@ -32,7 +32,7 @@ index = $pos.index(d) } // this is a copy of splitListItem -// see https://github.com/ProseMirror/prosemirror-schema-list/blob/master/src/schema-list.js +// see https://github.com/ProseMirror/prosemirror-schema-list/blob/main/src/schema-list.js export default function splitToDefaultListItem(itemType) { return function (state, dispatch) {