{"id":26180317,"url":"https://github.com/twp0217/ngx-tinymce","last_synced_at":"2025-07-10T10:34:57.453Z","repository":{"id":57168432,"uuid":"159897960","full_name":"twp0217/ngx-tinymce","owner":"twp0217","description":"基于angular(v2+)的tinymce组件(Angular(v2+) tinymce component)","archived":false,"fork":false,"pushed_at":"2018-12-25T09:36:04.000Z","size":97,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-13T14:06:52.687Z","etag":null,"topics":["editor","ng","ng2","ngx","ngx-tinymce","text-editor","tinymce"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/twp0217.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-12-01T01:41:22.000Z","updated_at":"2018-12-25T09:35:02.000Z","dependencies_parsed_at":"2022-09-13T02:11:25.788Z","dependency_job_id":null,"html_url":"https://github.com/twp0217/ngx-tinymce","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twp0217%2Fngx-tinymce","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twp0217%2Fngx-tinymce/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twp0217%2Fngx-tinymce/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twp0217%2Fngx-tinymce/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/twp0217","download_url":"https://codeload.github.com/twp0217/ngx-tinymce/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243119605,"owners_count":20239321,"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":["editor","ng","ng2","ngx","ngx-tinymce","text-editor","tinymce"],"created_at":"2025-03-11T21:55:25.672Z","updated_at":"2025-03-11T21:55:26.316Z","avatar_url":"https://github.com/twp0217.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ngx-tinymce\n\n## 简介\n基于angular(v2+)的tinymce组件\n\n## 使用\n- 安装依赖包：`tinymce` 和 `@twp0217/ngx-tinymce`\n\n```javascript\nnpm install tinymce @twp0217/ngx-tinymce --save\n```\n\n- 在`angular-cli.json`中增加`tinymce`配置\n\n```javascript\n\"scripts\": [\n  \"node_modules/tinymce/tinymce.js\",\n  \"node_modules/tinymce/themes/modern/theme.js\"\n]\n```\n\n- 在module导入`NgxTinymceModule`\n\n```javascript\nimport { NgxTinymceModule } from \"@twp0217/ngx-tinymce\";\n\n@NgModule({\n  declarations: [\n    AppComponent\n  ],\n  imports: [\n    BrowserModule,\n    FormsModule,\n    \n    NgxTinymceModule\n  ],\n  providers: [],\n  bootstrap: [AppComponent]\n})\nexport class AppModule { }\n```\n\n- 在模板页面使用\n\n```html\n\u003cngx-tinymce [(ngModel)]=\"html\"\u003e\u003c/ngx-tinymce\u003e\n```\n\n### system.js 配置\n在 `map` 中添加以下配置\n\n```javascript\nmap: {\n  'ngx-tinymce': 'npm:ngx-tinymce/bundles/ngx-tinymce.umd.min.js'\n}\n```\n\n# 文档\n\n## 属性(Attributes)\n名称 | 类型 | 默认值 | 说明\n---|---|---|---\noptions | TinymceOptions | { skin_url = \"assets/tinymce/skins/lightgray\"; } | 配置项\n\n## [事件(Events)](https://www.tiny.cloud/docs/advanced/events/)\n\n### Native\n```javascript\nonClick\nonDblClick\nonMouseDown\nonMouseUp\nonMouseMove\nonMouseOver\nonMouseOut\nonMouseEnter\nonMouseLeave\nonKeyDown\nonKeyPress\nonKeyUp\nonContextMenu\nonPaste\n```\n\n### Core\n```javascript\nonInit\nonFocus\nonBlur\nonBeforeSetContent\nonSetContent\nonGetContent\nonPreProcess\nonPostProcess\nonNodeChange\nonUndo\nonRedo\nonChange\nonDirty\nonRemove\nonExecCommand\n```\n\n### Paste Plugin\n```javascript\nonPastePreProcess\nonPastePostProcess\n```\n\n# 支持\n\n- 如果项目对你有帮助，请点颗星:star:，谢谢。\n- 如果你对项目有想法、问题、BUG，欢迎讨论。","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwp0217%2Fngx-tinymce","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftwp0217%2Fngx-tinymce","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwp0217%2Fngx-tinymce/lists"}