src/app/markdown/markdown-editor/markdown-editor.component.ts
This component contains a monaco markdown editor with syntax highlighting
selector | app-markdown-editor |
styleUrls | ./markdown-editor.component.scss |
templateUrl | ./markdown-editor.component.html |
Properties |
Methods |
Inputs |
Outputs |
code | |
Type : string
|
|
This code is initially displayed in the editor |
codeChange | |
Type : EventEmitter
|
|
Necessary for communicating changes to the parent when changes have been made to the code in the editor. |
codeDidChange |
codeDidChange()
|
Send changes in the editor to the parent component over the EventEmitter
Returns :
void
|
editorOptions |
Type : object
|
Default value : {theme: 'vs', language: 'markdown'}
|
necessary options for usage of ngx-monaco-editor |
./markdown-editor.component.scss