kbsnd3
v1.1.7
Published
Brilliant is a WYSIWYG markdown editor with live preview support, based on Draft-js and React, implemented in TypeScript. It's compatible with popular browsers.
Downloads
16
Maintainers
Readme
English | 简体中文
Brilliant Editor
Brilliant 是一个基于 React, Draft-js 封装的富文本编辑器,使用Typescript实现,支持 Markdown 实时预览。
安装
# 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 | Firefox | Chrome | Safari | Opera | | --------- | --------- | --------- | --------- | --------- | | Edge| last 2 versions| last 2 versions| last 2 versions| last 2 versions