1.0.1 • Published 7 years ago

full-text v1.0.1

Weekly downloads
2
License
ISC
Repository
github
Last release
7 years ago

富文本组件使用说明

安装:

npm install full-text

  1. 使用方式:
    import React from 'react';
    import FullText from 'FullText';
    ......
    render(){
      return (
        <FullText
          left={550}
          pageY={200}
          save={function noRefCheck() {}}
          style={{
            border: '1px solid',
            height: 600,
            width: 400
          }}
          value="** hello world!!**"
        />
      );
    }

本富文本插件支持普通富文本编辑器和markdown编辑器切换,依赖xheditor和mditor, 前端html需要引入xheditor,xheditor依赖jquery

  • 引入jquery
<script src="/path/jquery-1.4.4.min.js"></script>
<script src="/path/xheditor-1.2.2/xheditor-1.2.2.min.js"></script>
<script src="/path/xheditor-1.2.2/xheditor_lang/zh-cn.js"></script>
<link rel="stylesheet" href="/atask/mditor/css/mditor.min.css" />
<script src="/atask/mditor/js/mditor.min.js"></script>