hudkit-ace-editor
A code editor widget for hudkit, based on ACE.
Installation
hudkit-ace-editor
lists hudkit
as a peerDependency
, so:
$ npm install hudkit
$ npm install hudkit-ace-editor
$ cp -R node_modules/hudkit-ace-editor/ace-editor $ASSETS
Substitute $ASSETS
with the directory from which your assets are served. Your HTML needs to include something like this:
Initialisation
Assuming a browserify workflow, you can initialise the editor like this:
var hudkit = ; // requiring the module will automatically register it with hudkit; window { var hk = hudkit; var codeEditor = hk; hkroot;}
See demo/index.htm
, demo/main.js
and the Makefile
for a concrete build example.