项目作者: afeiship

项目描述 :
Classic editor based on react-rte-slate.
高级语言: JavaScript
项目地址: git://github.com/afeiship/react-slate-classic.git
创建时间: 2021-02-09T02:10:49Z
项目社区:https://github.com/afeiship/react-slate-classic

开源协议:MIT License

下载


react-slate-classic

Classic editor based on react-rte-slate.

@jswork/react-slate-classic"">version
license
size
@jswork/react-slate-classic"">download

installation

  1. npm install -S @jswork/react-slate-classic

properties

Name Type Required Default Description
className string false - The extended className for component.
value object false null The changed value.
onChange func false noop The change handler.

usage

  1. import css

    1. @import "~@jswork/react-slate-classic/dist/style.css";
    2. // or use sass
    3. @import "~@jswork/react-slate-classic/dist/style.scss";
    4. // customize your styles:
    5. $react-slate-classic-options: ()
  2. import js

    1. import ReactDemokit from '@jswork/react-demokit';
    2. import React from 'react';
    3. import ReactDOM from 'react-dom';
    4. import ReactSlateClassic from '@jswork/react-slate-classic';
    5. import './assets/style.scss';
    6. class App extends React.Component {
    7. render() {
    8. return (
    9. <ReactDemokit
    10. className="p-3 app-container"
    11. url="https://github.com/afeiship/react-slate-classic">
    12. <ReactSlateClassic className="mb-5 has-text-white" ></ReactSlateClassic>
    13. <button className="button is-primary is-fullwidth">Start~</button>
    14. </ReactDemokit>
    15. );
    16. }
    17. }
    18. ReactDOM.render(<App ></App>, document.getElementById('app'));

documentation

license

Code released under the MIT license.