Miss any of our Open RFC calls?Watch the recordings here! »

plastiq-ace-editor

1.0.0 • Public • Published

plastiq-ace-editor

A plastiq component that embeds the ace editor.

Demo

Example

var plastiq = require('plastiq');
var ace = require('plastiq-ace-editor');
var h = plastiq.html;
 
require('brace/mode/javascript');
require('brace/theme/monokai');
 
function render(model) {
  return h('.page',
    ace({
        binding: [model, 'code'],
        key: 'editor',
        theme: 'monokai',
        mode: 'javascript'
      },
      h('pre')
    ),
    h('textarea', { binding: [model, 'code'] })
  );
}
 
plastiq.append(document.body, render, { code: 'var x = 123;' });

License

MIT

Install

npm i plastiq-ace-editor

DownloadsWeekly Downloads

2

Version

1.0.0

License

MIT

Last publish

Collaborators

  • avatar