This project contains:
- ACA extension to use Monaco editor
Currently this package only involves the editor itself, some functionality still needs to be implemented. This includes:
- Saving Files
- Allowing Customization
- Support for other filetypes
npm run build:monaco-extension
cd dist/my-extension
npm publish --access=public
Open your ACA instance
1 . Install monaco-extension
npm install --save-dev monaco-extension
- Install monaco-extension in your ACA instance
npm install --save-dev ngx-monaco-editor
Switch to the ACA project and run:
Update the extensions.module.ts
file and append the module:
import { AcaMonacoModule } from 'monaco-extension';
@NgModule({
imports: [
...,
AcaMonacoModule
]
})
export class AppExtensionsModule {}
Update the app.extensions.json
file and register new plugin:
{
"$schema": "../../extension.schema.json",
"$name": "app",
"$version": "1.0.0",
"$references": ["monaco-extension.json"]
}
Copy dist/assets/monaco-extension.json
to the src/assets/plugins
folder.
Run the ACA application
npm start
Depending on the setup, you might need to log in as an administrator and enable external plugins feature for your local run.