1.0.5 • Published 5 years ago

yk-editor v1.0.5

Weekly downloads
28
License
-
Repository
github
Last release
5 years ago

ngx-yk-editor

Angular markdown editor based Monaco Editor

Usage

  • 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"
    ]