{"id":13497425,"url":"https://github.com/doxiaodong/ng2-simplemde","last_synced_at":"2025-10-07T02:32:16.405Z","repository":{"id":57143450,"uuid":"79441837","full_name":"doxiaodong/ng2-simplemde","owner":"doxiaodong","description":"angular2 component of https://github.com/sparksuite/simplemde-markdown-editor","archived":false,"fork":false,"pushed_at":"2018-10-07T07:03:30.000Z","size":7468,"stargazers_count":23,"open_issues_count":4,"forks_count":21,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-01T00:34:22.561Z","etag":null,"topics":["angular","markdown","ng2-simplemde","simplemde"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/doxiaodong.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-01-19T10:23:06.000Z","updated_at":"2025-01-03T01:24:26.000Z","dependencies_parsed_at":"2022-09-03T18:41:15.595Z","dependency_job_id":null,"html_url":"https://github.com/doxiaodong/ng2-simplemde","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doxiaodong%2Fng2-simplemde","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doxiaodong%2Fng2-simplemde/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doxiaodong%2Fng2-simplemde/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doxiaodong%2Fng2-simplemde/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/doxiaodong","download_url":"https://codeload.github.com/doxiaodong/ng2-simplemde/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248473129,"owners_count":21109628,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["angular","markdown","ng2-simplemde","simplemde"],"created_at":"2024-07-31T20:00:30.750Z","updated_at":"2025-10-07T02:32:11.366Z","avatar_url":"https://github.com/doxiaodong.png","language":"TypeScript","funding_links":[],"categories":["Uncategorized"],"sub_categories":["Uncategorized"],"readme":"[![Build Status](https://img.shields.io/travis/doxiaodong/ng2-simplemde.svg?style=flat-square)](https://travis-ci.org/doxiaodong/ng2-simplemde)\n[![Downloads](https://img.shields.io/npm/dt/ng2-simplemde.svg?style=flat-square)](https://www.npmjs.com/package/ng2-simplemde)\n[![Versions](https://img.shields.io/npm/v/ng2-simplemde.svg?style=flat-square)]()\n[![License](https://img.shields.io/npm/l/ng2-simplemde.svg?style=flat-square)]()\n\n# simplemde-markdown-editor with Angular\n\n# demo\n  [https://doxiaodong.github.io/ng2-simplemde](https://doxiaodong.github.io/ng2-simplemde)\n\n# Usage\n\n* install `npm i ng2-simplemde --save`\n\n```typescript\nimport { NgModule } from '@angular/core'\nimport { SimplemdeModule, SIMPLEMDE_CONFIG } from 'ng2-simplemde'\n@NgModule({\n  imports: [\n    SimplemdeModule.forRoot({\n      provide: SIMPLEMDE_CONFIG,\n      // config options 1\n      useValue: $options1\n    })\n  ],\n  bootstrap: [AppComponent]\n})\nexport class AppModule { }\n```\n\n```html\n\u003c!-- config options 2 --\u003e\n\u003csimplemde [(ngModel)]=\"value\" [options]=\"$options2\" [codemirror]=\"{ lineNumbers: true }\"\u003e\u003c/simplemde\u003e\n```\n\n\u003e 1. The final options is `{...$options1, ...$options2}`, `Object.assign({}, $options1, $options2)`\n\u003e 2. The `element` option is not useful\n\u003e 3. `codemirror` is option set for codemirror, see https://github.com/codemirror/CodeMirror\n\n# Webpack\n\n* you should add `style-loader!css-loader` in your webpack config\n* If you use angular-cli, you can add `style-loader!css-loader` as pug-loader in https://github.com/angular/angular-cli/issues/1886.\n\n# Style\n\n* normal, it use `import 'simplemde/dist/simplemde.min.css'`\n* you can use a cdn\n```\nimport { SimplemdeModule, SIMPLEMDE_CONFIG } from 'ng2-simplemde/no-style'\n```\nand in index.html\n\n```\n\u003clink href=\"https://cdn.jsdelivr.net/simplemde/latest/simplemde.min.css\" rel=\"stylesheet\"\u003e\n```\n* Bundles use don't support this\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoxiaodong%2Fng2-simplemde","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdoxiaodong%2Fng2-simplemde","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoxiaodong%2Fng2-simplemde/lists"}