hyperdom-ace-editor
A hyperdom component that embeds the ace editor
Last updated 4 years ago by refractalize .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install hyperdom-ace-editor 
SYNC missed versions from official npm registry.

hyperdom-ace-editor

A hyperdom component that embeds the ace editor.

Demo

Example

var hyperdom = require('hyperdom');
var AceEditor = require('hyperdom-ace-editor');

require('brace/mode/javascript');
require('brace/theme/monokai');

class App {
  constructor () {
    this.code = 'var x = 123'
  }

  render () {
    return <div>
      <AceEditor theme="monokai" mode="javascript" binding="this.code" />
      <textarea binding="this.code" />
    </div>
  }
}

hyperdom.append(document.body, new App());

License

MIT

Current Tags

  • 1.1.0                                ...           latest (4 years ago)

1 Versions

  • 1.1.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (3)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |