ngx-simplemde
Angular for simplemde, better use ng-zorro-antd components.
Installation instructions
- Install
ngx-simplemde
fromnpm
npm install ngx-simplemde --save
- Import the
SimplemdeModule
in to your rootAppModule
.
import { SimplemdeModule } from 'ngx-simplemde';
@NgModule({
imports: [
BrowserModule,
SimplemdeModule.forRoot({
autosave: { enabled: true, uniqueId: 'MyUniqueID' }
})
],
declarations: [AppComponent],
bootstrap: [AppComponent]
})
export class AppModule { }
- Add
simplemde-antd.min.js
and styles toangular.json
.
"styles": [
"node_modules/ngx-simplemde/src/index.css",
"src/styles.css"
],
"scripts": [
"node_modules/simplemde-antd/dist/simplemde.min.js"
]
- 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:
- Use GitHub Issues board to report bugs and feature requests (not our email address)
- 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)