JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 390
  • Score
    100M100P100Q98261F
  • License MIT

Angular for simplemde

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.

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.min.js to angular.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>
  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)