Package Exports
- ngx-simplemde
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ngx-simplemde) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
ngx-simplemde
Angular for simplemde.
Installation instructions
- Install
ngx-simplemdefromnpm
npm install ngx-simplemde --save- Import the
SimplemdeModulein 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.min.jstoangular.json.
"styles": [
"node_modules/simplemde/dist/simplemde.min.css",
"src/styles.css"
],
"scripts": [
"node_modules/simplemde/dist/simplemde.min.js"
]or using cdn in index.html.
<link rel="stylesheet" href="https://cdn.jsdelivr.net/simplemde/latest/simplemde.min.css">
<script src="https://cdn.jsdelivr.net/simplemde/latest/simplemde.min.js"></script>- 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)