/ngx-simplemde

Angular for simplemde(Markdown Editor)

Primary LanguageCSSMIT LicenseMIT

ngx-simplemde

Angular for simplemde, better use ng-zorro-antd components.

NPM version Build Status

Installation instructions

  1. Install ngx-simplemde from npm
npm install ngx-simplemde --save
  1. Import the SimplemdeModule in to your root AppModule.
import { SimplemdeModule } from 'ngx-simplemde';

@NgModule({
  imports: [
    BrowserModule,
    SimplemdeModule.forRoot({
      autosave: { enabled: true, uniqueId: 'MyUniqueID' }
    })
  ],
  declarations: [AppComponent],
  bootstrap: [AppComponent]
})
export class AppModule { }
  1. Add simplemde-antd.min.js and styles to angular.json.
"styles": [
  "node_modules/ngx-simplemde/src/index.css",
  "src/styles.css"
],
"scripts": [
  "node_modules/simplemde-antd/dist/simplemde.min.js"
]
  1. Happy coding.
<simplemde [(ngModel)]="demo"></simplemde>
<simplemde [(ngModel)]="customize" [options]="{ toolbar: ['bold', 'italic', 'heading', '|', 'quote'] }"></simplemde>

Usage & Demo

Troubleshooting

Please follow this guidelines when reporting bugs and feature requests:

  1. Use GitHub Issues board to report bugs and feature requests (not our email address)
  2. Please always write steps to reproduce the error. That way we can focus on fixing the bug, not scratching our heads trying to reproduce it.

Thanks for understanding!

License

The MIT License (see the LICENSE file for the full text)