editron Script-Editor
Add code editor for html and css.
npm i editron-script-editor --save
Setup
Add the bundled editor as a plugin
Use bundled versions of this editor
Add the editor after the core-modules and it will register automatically (paths depend on your build-setup)
<!-- plugin editor -->
Webpack build
bundle the editor into your editron-application
Javascript
To use this editor within a webpack build, require the editor and add it to the editors list
const editronScriptEditor = ;const editors = editronScriptEditor ...otherEditors;const editron = schema data editors ;
Styles
Optionally import the custom script-editor styles via sass
;
or simply add the bundled css-file (path is depending on your build-setup)
Schema
The editor will be added for a matching schema like