forked from lingjieee/fantasy-editor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
139 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
English | [简体中文](README.zh-CN.md) | ||
|
||
<h1 align="center">Fantasy Editor</h1> | ||
|
||
<div align="center"> | ||
|
||
A Rich Text Editor Based On [G6](https://github.com/antvis/g6) and [React](https://github.com/facebook/react). | ||
|
||
[![GitHub](https://img.shields.io/github/license/lingjieee/fantasy-editor)](LICENSE) | ||
[![npm](https://img.shields.io/npm/v/fantasy-editor)](https://www.npmjs.com/package/fantasy-editor) | ||
[![npm](https://img.shields.io/npm/dm/fantasy-editor)](https://www.npmjs.com/package/fantasy-editor) | ||
|
||
</div> | ||
|
||
## Installation | ||
|
||
### npm | ||
|
||
```bash | pure | ||
npm install fantasy-editor --save | ||
``` | ||
|
||
## Examples | ||
|
||
```bash | pure | ||
# Clone the repository | ||
$ git clone https://github.com/lingjieee/fantasy-editor.git | ||
|
||
# Change directory | ||
$ cd fantasy-editor | ||
|
||
# Install dependencies | ||
$ yarn install | ||
|
||
# Run examples | ||
$ yarn start | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
[English](README.md) | 简体中文 | ||
|
||
<h1 align="center">Fantasy Editor</h1> | ||
|
||
<div align="center"> | ||
|
||
基于 [Slate](https://github.com/ianstormtaylor/slate) 和 [React](https://github.com/facebook/react) 的富文本编辑器 | ||
|
||
[![GitHub](https://img.shields.io/github/license/lingjieee/fantasy-editor)](LICENSE) | ||
[![npm](https://img.shields.io/npm/v/fantasy-editor)](https://www.npmjs.com/package/fantasy-editor) | ||
[![npm](https://img.shields.io/npm/dm/fantasy-editor)](https://www.npmjs.com/package/fantasy-editor) | ||
|
||
</div> | ||
|
||
## 安装 | ||
|
||
### npm | ||
|
||
```bash | pure | ||
npm install fantasy-editor --save | ||
``` | ||
|
||
## 示例 | ||
|
||
```bash | pure | ||
# 克隆仓库 | ||
$ git clone https://github.com/lingjieee/fantasy-editor.git | ||
|
||
# 切换目录 | ||
$ cd fantasy-editor | ||
|
||
# 安装依赖 | ||
$ yarn install | ||
|
||
# 运行示例 | ||
$ yarn start | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
--- | ||
title: FullDemo | ||
order: 1 | ||
group: | ||
title: Core | ||
order: 1 | ||
--- | ||
|
||
<code src="../../examples/full" compact/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
title: 完整Demo | ||
order: 1 | ||
group: | ||
title: 核心 | ||
nav: | ||
title: 演示 | ||
--- | ||
|
||
<code src="../../examples/full" compact/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,32 @@ | ||
--- | ||
title: 快速上手 | ||
title: Getting Started | ||
group: | ||
title: 指南 | ||
title: Guide | ||
order: 0 | ||
nav: | ||
title: 指南 | ||
title: Guide | ||
--- | ||
|
||
## 安装 | ||
## Installation | ||
|
||
### npm | ||
|
||
```bash | pure | ||
npm install fantasy-editor --save | ||
``` | ||
|
||
## 示例 | ||
## Examples | ||
|
||
```bash | pure | ||
# 克隆仓库 | ||
# Clone the repository | ||
$ git clone https://github.com/lingjieee/fantasy-editor.git | ||
|
||
# 切换目录 | ||
# Change directory | ||
$ cd fantasy-editor | ||
|
||
# 安装依赖 | ||
# Install dependencies | ||
$ yarn install | ||
|
||
# 运行示例 | ||
# Run examples | ||
$ yarn start | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--- | ||
title: 快速上手 | ||
group: | ||
title: 指南 | ||
order: 0 | ||
nav: | ||
title: 指南 | ||
--- | ||
|
||
## 安装 | ||
|
||
### npm | ||
|
||
```bash | pure | ||
npm install fantasy-editor --save | ||
``` | ||
|
||
## 示例 | ||
|
||
```bash | pure | ||
# 克隆仓库 | ||
$ git clone https://github.com/lingjieee/fantasy-editor.git | ||
|
||
# 切换目录 | ||
$ cd fantasy-editor | ||
|
||
# 安装依赖 | ||
$ yarn install | ||
|
||
# 运行示例 | ||
$ yarn start | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
title: Fantasy Editor - 基于Slate和React的富文本编辑器 | ||
hero: | ||
title: Fantasy Editor | ||
desc: 基于Slate和React的富文本编辑器 | ||
actions: | ||
- text: 快速上手 | ||
link: /zh-CN/guide/getting-started | ||
footer: Open-source MIT Licensed | Copyright © 2020<br />Powered by [dumi](https://d.umijs.org) | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.