1 | # rc-editor-plugin-basic-style
|
2 | ---
|
3 |
|
4 | React EditorPluginBasicStyle Component
|
5 |
|
6 |
|
7 | [![NPM version][npm-image]][npm-url]
|
8 | [![build status][travis-image]][travis-url]
|
9 | [![Test coverage][coveralls-image]][coveralls-url]
|
10 | [![gemnasium deps][gemnasium-image]][gemnasium-url]
|
11 | [![node version][node-image]][node-url]
|
12 | [![npm download][download-image]][download-url]
|
13 | [![Sauce Test Status](https://saucelabs.com/buildstatus/rc-editor-plugin-basic-style)](https://saucelabs.com/u/rc-editor-plugin-basic-style)
|
14 |
|
15 | [![Sauce Test Status](https://saucelabs.com/browser-matrix/rc-editor-plugin-basic-style.svg)](https://saucelabs.com/u/rc-editor-plugin-basic-style)
|
16 |
|
17 | [npm-image]: http://img.shields.io/npm/v/rc-editor-plugin-basic-style.svg?style=flat-square
|
18 | [npm-url]: http://npmjs.org/package/rc-editor-plugin-basic-style
|
19 | [travis-image]: https://img.shields.io/travis/react-component/editor-plugin-basic-style.svg?style=flat-square
|
20 | [travis-url]: https://travis-ci.org/react-component/editor-plugin-basic-style
|
21 | [coveralls-image]: https://img.shields.io/coveralls/react-component/editor-plugin-basic-style.svg?style=flat-square
|
22 | [coveralls-url]: https://coveralls.io/r/react-component/editor-plugin-basic-style?branch=master
|
23 | [gemnasium-image]: http://img.shields.io/gemnasium/react-component/editor-plugin-basic-style.svg?style=flat-square
|
24 | [gemnasium-url]: https://gemnasium.com/react-component/editor-plugin-basic-style
|
25 | [node-image]: https://img.shields.io/badge/node.js-%3E=_0.10-green.svg?style=flat-square
|
26 | [node-url]: http://nodejs.org/download/
|
27 | [download-image]: https://img.shields.io/npm/dm/rc-editor-plugin-basic-style.svg?style=flat-square
|
28 | [download-url]: https://npmjs.org/package/rc-editor-plugin-basic-style
|
29 |
|
30 |
|
31 | ## Browser Support
|
32 |
|
33 | |![IE](https://raw.github.com/alrra/browser-logos/master/internet-explorer/internet-explorer_48x48.png) | ![Chrome](https://raw.github.com/alrra/browser-logos/master/chrome/chrome_48x48.png) | ![Firefox](https://raw.github.com/alrra/browser-logos/master/firefox/firefox_48x48.png) | ![Opera](https://raw.github.com/alrra/browser-logos/master/opera/opera_48x48.png) | ![Safari](https://raw.github.com/alrra/browser-logos/master/safari/safari_48x48.png)|
|
34 | | --- | --- | --- | --- | --- |
|
35 | | IE 8+ ✔ | Chrome 31.0+ ✔ | Firefox 31.0+ ✔ | Opera 30.0+ ✔ | Safari 7.0+ ✔ |
|
36 |
|
37 | ## Screenshots
|
38 |
|
39 | <img src="" width="288"/>
|
40 |
|
41 |
|
42 | ## Development
|
43 |
|
44 | ```
|
45 | npm install
|
46 | npm start
|
47 | ```
|
48 |
|
49 | ## Example
|
50 |
|
51 | http://localhost:8001/examples/
|
52 |
|
53 |
|
54 | online example: http://react-component.github.io/editor-plugin-basic-style/
|
55 |
|
56 |
|
57 | ## Feature
|
58 |
|
59 | * support ie8,ie8+,chrome,firefox,safari
|
60 |
|
61 |
|
62 | ## install
|
63 |
|
64 |
|
65 | [![rc-editor-plugin-basic-style](https://nodei.co/npm/rc-editor-plugin-basic-style.png)](https://npmjs.org/package/rc-editor-plugin-basic-style)
|
66 |
|
67 |
|
68 | ## Usage
|
69 |
|
70 | ```js
|
71 | var EditorPluginBasicStyle = require('rc-editor-plugin-basic-style');
|
72 | var React = require('react');
|
73 | React.render(<EditorPluginBasicStyle />, container);
|
74 | ```
|
75 |
|
76 | ## API
|
77 |
|
78 | ### props
|
79 |
|
80 | <table class="table table-bordered table-striped">
|
81 | <thead>
|
82 | <tr>
|
83 | <th style="width: 100px;">name</th>
|
84 | <th style="width: 50px;">type</th>
|
85 | <th style="width: 50px;">default</th>
|
86 | <th>description</th>
|
87 | </tr>
|
88 | </thead>
|
89 | <tbody>
|
90 | <tr>
|
91 | <td>className</td>
|
92 | <td>String</td>
|
93 | <td></td>
|
94 | <td>additional css class of root dom node</td>
|
95 | </tr>
|
96 | </tbody>
|
97 | </table>
|
98 |
|
99 |
|
100 | ## Test Case
|
101 |
|
102 | ```
|
103 | npm test
|
104 | npm run chrome-test
|
105 | ```
|
106 |
|
107 | ## Coverage
|
108 |
|
109 | ```
|
110 | npm run coverage
|
111 | ```
|
112 |
|
113 | open coverage/ dir
|
114 |
|
115 | ## License
|
116 |
|
117 | rc-editor-plugin-basic-style is released under the MIT license.
|