Skip to content

Latest commit

 

History

History
52 lines (35 loc) · 2.14 KB

README.zh-CN.md

File metadata and controls

52 lines (35 loc) · 2.14 KB

English | 简体中文

Brilliant Editor

Brilliant 是一个基于 React, Draft-js 封装的富文本编辑器,使用Typescript实现,支持 Markdown 实时预览。

usage demo

安装

# Install using yarn
yarn add brilliant-editor
# Install using npm
npm install brilliant-editor --save

示例

import React from 'react';
import Brilliant from 'brilliant-editor';
import 'brilliant-editor/dist/index.css';

const App = () => {
  return (
    <div>
      <Brilliant language="zh"/>
    </div>
  );
};

export default App;

浏览器支持

Edge
Edge
Firefox
Firefox
Chrome
Chrome
Safari
Safari
Opera
Opera
Edge last 2 versions last 2 versions last 2 versions last 2 versions

鸣谢