1.0.16 • Published 3 years ago

react-table-editor v1.0.16

Weekly downloads
29
License
MIT
Repository
-
Last release
3 years ago

react-table-editor

forked from https://github.com/appleple/a-table.js

usage

import * as React from 'react';
import { TableEditor } from 'react-table-editor'
import { render } from 'react-dom'

const html = `<table>
  <tr>
    <th>test</th>
    <th>test</th>
    <th>test</th>
  </tr>
  <tr>
    <td>test</td>
    <td>test</td>
    <td>test</td>
  </tr>
  <tr>
    <td>test</td>
    <td>test</td>
    <td>test</td>
  </tr>
</table>`

const btns = [
  {
    tag: 'strong',
    className: 'hoge',
    icon: <span>ボタン</span>
  },
  {
    tag: 'a',
    className: 'test',
    icon: <span>リンク</span>
  }
]

render(<TableEditor 
  html={html} 
  btns={btns}
  onChange={html => console.log(html)}
/>, document.getElementById('main'));

Special Thanks

This repository was made thanks to Karakuri!!

https://karakuri.ai/

1.0.16

3 years ago

1.0.11

3 years ago

1.0.15

3 years ago

1.0.14

3 years ago

1.0.13

3 years ago

1.0.12

3 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago