Angular markdown editor based Monaco Editor
- Install yk-editor
npm install yk-editor
- Use editor component
import { YkEditorModule } from 'dist';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
YkEditorModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
<yk-editor [(content)]="value" (contentChange)="change($event)"></yk-editor>
- Add style angular.json
"styles": [
+"node_modules/yk-editor/assets/css/yk-editor.css",
"src/styles.css"
]