Skip to content

Commit

Permalink
docs: add screen shot
Browse files Browse the repository at this point in the history
  • Loading branch information
Seedsa committed May 27, 2024
1 parent a3f8913 commit d2de84e
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ A modern WYSIWYG rich-text editor base on [tiptap](https://tiptap.dev) uses [sha

English | [中文](./README.zh-CN.md)

![App Screenshot](./screenshot/screenshot.png)

## Demo

[Demo](https://echo-editor.vercel.app/)
Expand Down
2 changes: 2 additions & 0 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

[English](./README.md) | 中文

![App Screenshot](./screenshot/screenshot.png)

## 演示

[演示](https://echo-editor.vercel.app/)
Expand Down
4 changes: 3 additions & 1 deletion examples/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@
<button ghost @click="locale.setLang('en')">English</button>
<button ghost @click="theme = 'dark'">dark</button>
<button ghost @click="theme = null">light</button>
<button ghost @click="hideToolbar = !hideToolbar">Hide Toolbar</button>
<a href="https://github.com/Seedsa/echo-editor" target="__blank">Github</a>
</div>
<echo-editor
v-model="content"
:extensions="extensions"
:max-height="1024"
:hideToolbar="hideToolbar"
:min-height="512"
output="json"
maxWidth="900"
Expand Down Expand Up @@ -77,7 +79,7 @@ import { createLowlight, common } from 'lowlight'
const content = ref(DEMO_CONTENT)
const theme = ref<string | null>(null)
const hideToolbar = ref(false)
const extensions = [
BaseKit.configure({
placeholder: {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "echo-editor",
"version": "0.1.4",
"version": "0.1.5",
"private": false,
"license": "MIT",
"description": "A modern WYSIWYG rich-text editor using tiptap for Vue.js",
Expand Down
Binary file added screenshot/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d2de84e

Please sign in to comment.