renamed some components
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="editor">
|
<div class="editor">
|
||||||
<menu-bar :editor="editor">
|
<editor-menu-bar :editor="editor">
|
||||||
<div class="menubar" slot-scope="{ commands, isActive }">
|
<div class="menubar" slot-scope="{ commands, isActive }">
|
||||||
|
|
||||||
<button
|
<button
|
||||||
@@ -122,7 +122,7 @@
|
|||||||
</button>
|
</button>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</menu-bar>
|
</editor-menu-bar>
|
||||||
|
|
||||||
<editor-content class="editor__content" :editor="editor" />
|
<editor-content class="editor__content" :editor="editor" />
|
||||||
</div>
|
</div>
|
||||||
@@ -130,7 +130,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Icon from 'Components/Icon'
|
import Icon from 'Components/Icon'
|
||||||
import { Editor, EditorContent, MenuBar } from 'tiptap'
|
import { Editor, EditorContent, EditorMenuBar } from 'tiptap'
|
||||||
import {
|
import {
|
||||||
Blockquote,
|
Blockquote,
|
||||||
CodeBlock,
|
CodeBlock,
|
||||||
@@ -153,7 +153,7 @@ import {
|
|||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
EditorContent,
|
EditorContent,
|
||||||
MenuBar,
|
EditorMenuBar,
|
||||||
Icon,
|
Icon,
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<div class="editor">
|
<div class="editor">
|
||||||
<menu-bar :editor="editor">
|
<editor-menu-bar :editor="editor">
|
||||||
<div class="menubar" slot-scope="{ commands, isActive }">
|
<div class="menubar" slot-scope="{ commands, isActive }">
|
||||||
|
|
||||||
<button
|
<button
|
||||||
@@ -85,7 +85,7 @@
|
|||||||
</button>
|
</button>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</menu-bar>
|
</editor-menu-bar>
|
||||||
|
|
||||||
<editor-content class="editor__content" :editor="editor" />
|
<editor-content class="editor__content" :editor="editor" />
|
||||||
|
|
||||||
@@ -112,7 +112,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Icon from 'Components/Icon'
|
import Icon from 'Components/Icon'
|
||||||
import { Editor, EditorContent, MenuBar } from 'tiptap'
|
import { Editor, EditorContent, EditorMenuBar } from 'tiptap'
|
||||||
import {
|
import {
|
||||||
Blockquote,
|
Blockquote,
|
||||||
CodeBlock,
|
CodeBlock,
|
||||||
@@ -133,7 +133,7 @@ import {
|
|||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
EditorContent,
|
EditorContent,
|
||||||
MenuBar,
|
EditorMenuBar,
|
||||||
Icon,
|
Icon,
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="editor">
|
<div class="editor">
|
||||||
<floating-menu :editor="editor">
|
<editor-floating-menu :editor="editor">
|
||||||
<div
|
<div
|
||||||
slot-scope="{ commands, isActive, menu }"
|
slot-scope="{ commands, isActive, menu }"
|
||||||
class="editor__floating-menu"
|
class="editor__floating-menu"
|
||||||
@@ -65,7 +65,7 @@
|
|||||||
</button>
|
</button>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</floating-menu>
|
</editor-floating-menu>
|
||||||
|
|
||||||
<editor-content class="editor__content" :editor="editor" />
|
<editor-content class="editor__content" :editor="editor" />
|
||||||
</div>
|
</div>
|
||||||
@@ -73,7 +73,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Icon from 'Components/Icon'
|
import Icon from 'Components/Icon'
|
||||||
import { Editor, EditorContent, FloatingMenu } from 'tiptap'
|
import { Editor, EditorContent, EditorFloatingMenu } from 'tiptap'
|
||||||
import {
|
import {
|
||||||
Blockquote,
|
Blockquote,
|
||||||
BulletList,
|
BulletList,
|
||||||
@@ -94,7 +94,7 @@ import {
|
|||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
EditorContent,
|
EditorContent,
|
||||||
FloatingMenu,
|
EditorFloatingMenu,
|
||||||
Icon,
|
Icon,
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="editor">
|
<div class="editor">
|
||||||
<menu-bar :editor="editor">
|
<editor-menu-bar :editor="editor">
|
||||||
<div
|
<div
|
||||||
class="menubar is-hidden"
|
class="menubar is-hidden"
|
||||||
:class="{ 'is-focused': focused }"
|
:class="{ 'is-focused': focused }"
|
||||||
@@ -112,7 +112,7 @@
|
|||||||
</button>
|
</button>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</menu-bar>
|
</editor-menu-bar>
|
||||||
|
|
||||||
<editor-content class="editor__content" :editor="editor" />
|
<editor-content class="editor__content" :editor="editor" />
|
||||||
</div>
|
</div>
|
||||||
@@ -120,7 +120,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Icon from 'Components/Icon'
|
import Icon from 'Components/Icon'
|
||||||
import { Editor, EditorContent, MenuBar } from 'tiptap'
|
import { Editor, EditorContent, EditorMenuBar } from 'tiptap'
|
||||||
import {
|
import {
|
||||||
Blockquote,
|
Blockquote,
|
||||||
BulletList,
|
BulletList,
|
||||||
@@ -143,7 +143,7 @@ import {
|
|||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
EditorContent,
|
EditorContent,
|
||||||
MenuBar,
|
EditorMenuBar,
|
||||||
Icon,
|
Icon,
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="editor">
|
<div class="editor">
|
||||||
<menu-bar :editor="editor">
|
<editor-menu-bar :editor="editor">
|
||||||
<div class="menubar" slot-scope="{ commands }">
|
<div class="menubar" slot-scope="{ commands }">
|
||||||
<button
|
<button
|
||||||
class="menubar__button"
|
class="menubar__button"
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
<icon name="image" />
|
<icon name="image" />
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</menu-bar>
|
</editor-menu-bar>
|
||||||
|
|
||||||
<editor-content class="editor__content" :editor="editor" />
|
<editor-content class="editor__content" :editor="editor" />
|
||||||
</div>
|
</div>
|
||||||
@@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Icon from 'Components/Icon'
|
import Icon from 'Components/Icon'
|
||||||
import { Editor, EditorContent, MenuBar } from 'tiptap'
|
import { Editor, EditorContent, EditorMenuBar } from 'tiptap'
|
||||||
import {
|
import {
|
||||||
HardBreak,
|
HardBreak,
|
||||||
Heading,
|
Heading,
|
||||||
@@ -31,7 +31,7 @@ export default {
|
|||||||
components: {
|
components: {
|
||||||
Icon,
|
Icon,
|
||||||
EditorContent,
|
EditorContent,
|
||||||
MenuBar,
|
EditorMenuBar,
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="editor">
|
<div class="editor">
|
||||||
<menu-bubble class="menububble" :editor="editor">
|
<editor-menu-bubble class="menububble" :editor="editor">
|
||||||
<div
|
<div
|
||||||
slot-scope="{ commands, isActive, markAttrs, menu }"
|
slot-scope="{ commands, isActive, markAttrs, menu }"
|
||||||
class="menububble"
|
class="menububble"
|
||||||
@@ -27,7 +27,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</menu-bubble>
|
</editor-menu-bubble>
|
||||||
|
|
||||||
<editor-content class="editor__content" :editor="editor" />
|
<editor-content class="editor__content" :editor="editor" />
|
||||||
</div>
|
</div>
|
||||||
@@ -35,7 +35,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Icon from 'Components/Icon'
|
import Icon from 'Components/Icon'
|
||||||
import { Editor, EditorContent, MenuBubble } from 'tiptap'
|
import { Editor, EditorContent, EditorMenuBubble } from 'tiptap'
|
||||||
import {
|
import {
|
||||||
Blockquote,
|
Blockquote,
|
||||||
BulletList,
|
BulletList,
|
||||||
@@ -56,7 +56,7 @@ import {
|
|||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
EditorContent,
|
EditorContent,
|
||||||
MenuBubble,
|
EditorMenuBubble,
|
||||||
Icon,
|
Icon,
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="editor">
|
<div class="editor">
|
||||||
<menu-bubble :editor="editor">
|
<editor-menu-bubble :editor="editor">
|
||||||
<div
|
<div
|
||||||
slot-scope="{ commands, isActive, menu }"
|
slot-scope="{ commands, isActive, menu }"
|
||||||
class="menububble"
|
class="menububble"
|
||||||
@@ -33,7 +33,7 @@
|
|||||||
</button>
|
</button>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</menu-bubble>
|
</editor-menu-bubble>
|
||||||
|
|
||||||
<editor-content class="editor__content" :editor="editor" />
|
<editor-content class="editor__content" :editor="editor" />
|
||||||
</div>
|
</div>
|
||||||
@@ -41,7 +41,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Icon from 'Components/Icon'
|
import Icon from 'Components/Icon'
|
||||||
import { Editor, EditorContent, MenuBubble } from 'tiptap'
|
import { Editor, EditorContent, EditorMenuBubble } from 'tiptap'
|
||||||
import {
|
import {
|
||||||
Blockquote,
|
Blockquote,
|
||||||
BulletList,
|
BulletList,
|
||||||
@@ -64,7 +64,7 @@ import {
|
|||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
EditorContent,
|
EditorContent,
|
||||||
MenuBubble,
|
EditorMenuBubble,
|
||||||
Icon,
|
Icon,
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="editor">
|
<div class="editor">
|
||||||
<menu-bar :editor="editor">
|
<editor-menu-bar :editor="editor">
|
||||||
<div class="menubar" slot-scope="{ commands, isActive }">
|
<div class="menubar" slot-scope="{ commands, isActive }">
|
||||||
|
|
||||||
<button
|
<button
|
||||||
@@ -36,7 +36,7 @@
|
|||||||
</button>
|
</button>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</menu-bar>
|
</editor-menu-bar>
|
||||||
|
|
||||||
<editor-content class="editor__content" :editor="editor" />
|
<editor-content class="editor__content" :editor="editor" />
|
||||||
</div>
|
</div>
|
||||||
@@ -44,7 +44,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Icon from 'Components/Icon'
|
import Icon from 'Components/Icon'
|
||||||
import { Editor, EditorContent, MenuBar } from 'tiptap'
|
import { Editor, EditorContent, EditorMenuBar } from 'tiptap'
|
||||||
import {
|
import {
|
||||||
CodeBlock,
|
CodeBlock,
|
||||||
HardBreak,
|
HardBreak,
|
||||||
@@ -59,7 +59,7 @@ import {
|
|||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
EditorContent,
|
EditorContent,
|
||||||
MenuBar,
|
EditorMenuBar,
|
||||||
Icon,
|
Icon,
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
export { default as Editor } from './Utils/Editor'
|
export { default as Editor } from './Utils/Editor'
|
||||||
export { default as EditorContent } from './Components/EditorContent'
|
export { default as EditorContent } from './Components/EditorContent'
|
||||||
export { default as MenuBar } from './Components/MenuBar'
|
export { default as EditorMenuBar } from './Components/EditorMenuBar'
|
||||||
export { default as MenuBubble } from './Components/MenuBubble'
|
export { default as EditorMenuBubble } from './Components/EditorMenuBubble'
|
||||||
export { default as FloatingMenu } from './Components/FloatingMenu'
|
export { default as EditorFloatingMenu } from './Components/EditorFloatingMenu'
|
||||||
|
|
||||||
export { default as Extension } from './Utils/Extension'
|
export { default as Extension } from './Utils/Extension'
|
||||||
export { default as Node } from './Utils/Node'
|
export { default as Node } from './Utils/Node'
|
||||||
|
|||||||
Reference in New Issue
Block a user