add a draft state to the sidebar

This commit is contained in:
Hans Pagel
2020-08-31 17:50:13 +02:00
parent f8e907783d
commit ae7c5fa834
7 changed files with 74 additions and 4 deletions

View File

@@ -1,10 +1,13 @@
# Commands # Commands
:::warning Out of date
This content is written for tiptap 1 and needs an update.
:::
- menus - menus
- buttons - buttons
- commands - commands
## .clearContent() ## .clearContent()
Clear the whole document. Clear the whole document.

View File

@@ -1,3 +1,7 @@
# Editor # Editor
:::warning Out of date
This content is written for tiptap 1 and needs an update.
:::
This class is a central building block of tiptap. It does most of the heavy lifting of creating a working [ProseMirror](https://ProseMirror.net/) editor such as creating the [`EditorView`](https://ProseMirror.net/docs/ref/#view.EditorView), setting the initial [`EditorState`](https://ProseMirror.net/docs/ref/#state.Editor_State) and so on. This class is a central building block of tiptap. It does most of the heavy lifting of creating a working [ProseMirror](https://ProseMirror.net/) editor such as creating the [`EditorView`](https://ProseMirror.net/docs/ref/#view.EditorView), setting the initial [`EditorState`](https://ProseMirror.net/docs/ref/#state.Editor_State) and so on.

View File

@@ -1,5 +1,9 @@
# Schema # Schema
:::warning Out of date
This content is written for tiptap 1 and needs an update.
:::
Unlike many other editors, tiptap is based on a [schema](https://prosemirror.net/docs/guide/#schema) that defines how your content is structured. This enables you to define the kind of nodes that may occur in the document, its attributes and the way they can be nested. Unlike many other editors, tiptap is based on a [schema](https://prosemirror.net/docs/guide/#schema) that defines how your content is structured. This enables you to define the kind of nodes that may occur in the document, its attributes and the way they can be nested.
This schema is *very* strict. You cant use any HTML-element or attribute that is not defined in your schema. This schema is *very* strict. You cant use any HTML-element or attribute that is not defined in your schema.

View File

@@ -45,13 +45,13 @@
</div> </div>
<ul class="app__link-list"> <ul class="app__link-list">
<li v-for="(item, j) in linkGroup.items" :key="j"> <li v-for="(item, j) in linkGroup.items" :key="j">
<g-link class="app__link" :to="item.link"> <g-link :class="{ 'app__link': true, 'app__link--draft': item.draft === true }" :to="item.link">
{{ item.title }} {{ item.title }}
</g-link> </g-link>
<ul v-if="item.items" class="app__link-list"> <ul v-if="item.items" class="app__link-list">
<li v-for="(item, k) in item.items" :key="k"> <li v-for="(item, k) in item.items" :key="k">
<g-link class="app__link" :to="item.link"> <g-link :class="{ 'app__link': true, 'app__link--draft': item.draft === true }" :to="item.link">
{{ item.title }} {{ item.title }}
</g-link> </g-link>
</li> </li>

View File

@@ -53,6 +53,10 @@ $menuBreakPoint: 750px;
color: $colorBlack; color: $colorBlack;
background-color: rgba($colorBlack, 0.05); background-color: rgba($colorBlack, 0.05);
} }
&--draft {
color: rgba($colorBlack, 0.2);
}
} }
&__header { &__header {

View File

@@ -6,8 +6,10 @@
link: /general/installation link: /general/installation
- title: Upgrade Guide - title: Upgrade Guide
link: /general/upgrade-guide link: /general/upgrade-guide
draft: true
- title: Roadmap - title: Roadmap
link: /general/roadmap link: /general/roadmap
draft: true
- title: Guide - title: Guide
items: items:
@@ -15,16 +17,22 @@
link: /guide/getting-started link: /guide/getting-started
- title: Configuration - title: Configuration
link: /guide/configuration link: /guide/configuration
draft: true
- title: Build your editor - title: Build your editor
link: /guide/build-your-editor link: /guide/build-your-editor
draft: true
- title: Custom styling - title: Custom styling
link: /guide/custom-styling link: /guide/custom-styling
draft: true
- title: Get content - title: Get content
link: /guide/get-content link: /guide/get-content
draft: true
- title: Custom extensions - title: Custom extensions
link: /guide/custom-extensions link: /guide/custom-extensions
draft: true
- title: Use Vue Components - title: Use Vue Components
link: /guide/use-vue-components link: /guide/use-vue-components
draft: true
- title: Examples - title: Examples
items: items:
@@ -34,44 +42,62 @@
link: /examples/simple link: /examples/simple
- title: Menu Bubble - title: Menu Bubble
link: /examples/menu-bubble link: /examples/menu-bubble
draft: true
- title: Floating Menu - title: Floating Menu
link: /examples/floating-menu link: /examples/floating-menu
draft: true
- title: Links - title: Links
link: /examples/links link: /examples/links
draft: true
- title: Images - title: Images
link: /examples/images link: /examples/images
draft: true
- title: Hiding Menu Bar - title: Hiding Menu Bar
link: /examples/hiding-menu-bar link: /examples/hiding-menu-bar
draft: true
- title: Todo List - title: Todo List
link: /examples/todo-list link: /examples/todo-list
draft: true
- title: Tables - title: Tables
link: /examples/tables link: /examples/tables
draft: true
- title: Search and Replace - title: Search and Replace
link: /examples/search-and-replace link: /examples/search-and-replace
draft: true
- title: Suggestions - title: Suggestions
link: /examples/suggestions link: /examples/suggestions
draft: true
- title: Markdown Shortcuts - title: Markdown Shortcuts
link: /examples/markdown-shortcuts link: /examples/markdown-shortcuts
draft: true
- title: Code Highlighting - title: Code Highlighting
link: /examples/code-highlighting link: /examples/code-highlighting
draft: true
- title: History - title: History
link: /examples/history link: /examples/history
draft: true
- title: Read-Only - title: Read-Only
link: /examples/read-only link: /examples/read-only
- title: Embeds - title: Embeds
link: /examples/embeds link: /examples/embeds
draft: true
- title: Placeholder - title: Placeholder
link: /examples/placeholder link: /examples/placeholder
draft: true
- title: Focus - title: Focus
link: /examples/focus link: /examples/focus
- title: Collaboration - title: Collaboration
link: /examples/collaboration link: /examples/collaboration
draft: true
- title: Title - title: Title
link: /examples/title link: /examples/title
draft: true
- title: Trailing Paragraph - title: Trailing Paragraph
link: /examples/trailing-paragraph link: /examples/trailing-paragraph
draft: true
- title: Drag Handle - title: Drag Handle
link: /examples/drag-handle link: /examples/drag-handle
draft: true
- title: Export HTML or JSON - title: Export HTML or JSON
link: /examples/export-html-or-json link: /examples/export-html-or-json
@@ -79,66 +105,95 @@
items: items:
- title: Editor - title: Editor
link: /api/editor/ link: /api/editor/
draft: true
- title: Extensions - title: Extensions
link: /api/extensions/ link: /api/extensions/
items: items:
- title: Blockquote - title: Blockquote
link: /api/extensions/blockquote link: /api/extensions/blockquote
draft: true
- title: Bold - title: Bold
link: /api/extensions/bold link: /api/extensions/bold
- title: BulletList - title: BulletList
link: /api/extensions/bullet-list link: /api/extensions/bullet-list
draft: true
- title: Code - title: Code
link: /api/extensions/code link: /api/extensions/code
draft: true
- title: CodeBlock - title: CodeBlock
link: /api/extensions/code-block link: /api/extensions/code-block
draft: true
- title: CodeBlockHighlight - title: CodeBlockHighlight
link: /api/extensions/code-block-highlight link: /api/extensions/code-block-highlight
draft: true
- title: Collaboration - title: Collaboration
link: /api/extensions/collaboration link: /api/extensions/collaboration
draft: true
- title: Document - title: Document
link: /api/extensions/document link: /api/extensions/document
draft: true
- title: Hardbreak - title: Hardbreak
link: /api/extensions/hard-break link: /api/extensions/hard-break
draft: true
- title: Heading - title: Heading
link: /api/extensions/heading link: /api/extensions/heading
draft: true
- title: History - title: History
link: /api/extensions/history link: /api/extensions/history
draft: true
- title: HorizontalRule - title: HorizontalRule
link: /api/extensions/horizontal-rule link: /api/extensions/horizontal-rule
draft: true
- title: Italic - title: Italic
link: /api/extensions/italic link: /api/extensions/italic
- title: Link - title: Link
link: /api/extensions/link link: /api/extensions/link
draft: true
- title: ListItem - title: ListItem
link: /api/extensions/list-item link: /api/extensions/list-item
draft: true
- title: Mention - title: Mention
link: /api/extensions/mention link: /api/extensions/mention
draft: true
- title: OrderedList - title: OrderedList
link: /api/extensions/ordered-list link: /api/extensions/ordered-list
draft: true
- title: Paragraph - title: Paragraph
link: /api/extensions/paragraph link: /api/extensions/paragraph
draft: true
- title: Placeholder - title: Placeholder
link: /api/extensions/placeholder link: /api/extensions/placeholder
draft: true
- title: Strike - title: Strike
link: /api/extensions/strike link: /api/extensions/strike
draft: true
- title: Text - title: Text
link: /api/extensions/text link: /api/extensions/text
draft: true
- title: TableCell - title: TableCell
link: /api/extensions/table-cell link: /api/extensions/table-cell
draft: true
- title: TableHeader - title: TableHeader
link: /api/extensions/table-header link: /api/extensions/table-header
draft: true
- title: TableRow - title: TableRow
link: /api/extensions/table-row link: /api/extensions/table-row
draft: true
- title: TodoItem - title: TodoItem
link: /api/extensions/todo-item link: /api/extensions/todo-item
draft: true
- title: TodoList - title: TodoList
link: /api/extensions/todo-list link: /api/extensions/todo-list
draft: true
- title: Underline - title: Underline
link: /api/extensions/underline link: /api/extensions/underline
draft: true
- title: Commands - title: Commands
link: /api/commands/ link: /api/commands/
draft: true
- title: Events - title: Events
link: /api/events/ link: /api/events/
draft: true
- title: Schema - title: Schema
link: /api/schema/ link: /api/schema/
draft: true