{"id":22514739,"url":"https://github.com/worktile/angular-wt-editor","last_synced_at":"2025-08-03T16:31:17.899Z","repository":{"id":21184198,"uuid":"24490135","full_name":"worktile/angular-wt-editor","owner":"worktile","description":"angular markdown editor https://worktile.com","archived":false,"fork":false,"pushed_at":"2022-01-06T07:02:00.000Z","size":401,"stargazers_count":7,"open_issues_count":0,"forks_count":5,"subscribers_count":15,"default_branch":"master","last_synced_at":"2024-04-13T15:45:10.007Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/worktile.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2014-09-26T07:17:22.000Z","updated_at":"2023-12-17T09:25:29.000Z","dependencies_parsed_at":"2022-08-28T05:40:21.508Z","dependency_job_id":null,"html_url":"https://github.com/worktile/angular-wt-editor","commit_stats":null,"previous_names":[],"tags_count":94,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/worktile%2Fangular-wt-editor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/worktile%2Fangular-wt-editor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/worktile%2Fangular-wt-editor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/worktile%2Fangular-wt-editor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/worktile","download_url":"https://codeload.github.com/worktile/angular-wt-editor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228553712,"owners_count":17936027,"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":[],"created_at":"2024-12-07T03:21:14.583Z","updated_at":"2024-12-07T03:21:15.250Z","avatar_url":"https://github.com/worktile.png","language":"JavaScript","readme":"wt-editor angular markdown editor\n=================\n\nangular markdown editor\n\n\n## 安装步骤\n\n1. 安装 Node.js、git 客户端\n\n1. 执行 `git clone https://github.com/worktile/angular-wt-editor`\n\n1. 执行 `npm install gulp -g` 和 `npm install bower -g`\n\n1. 执行 `npm install` 和 `bower install`\n\n1. 执行 `bower install https://github.com/WorktileTech/marked.git`\n\n1. 执行 `gulp` 生成js，打开 demo.html 即可\n\n##demo示例\n\n\n\u003cwt-editor ng-model=\"content\" config=\"{}\"\u003e\u003c/wt-editor\u003e\n\nconfig可以设置的参数:\n\n1. type [String,编辑器toolbar类型 'simple':简易版, 'all':全部按钮]\n\n2. fontSize [String, markdown代码字体大小，默认为16px]\n\n3. isPreviewButton [Boolean, 是否显示预览按钮,默认为true]\n\n4. width [String, 编辑器宽度]\n\n5. height [String, 编辑器高度]\n\n6. isFullButton [Boolean, 是否显示最大化按钮]\n\n7. hideButtons [隐藏的toolbar按钮,元素为按钮的id, id见下面]\n\n8. replaceButtons [替换默认的图标,{id:17,title:'插入图片',className:'fa fa-file-image-o',type:'custom',action:imageFn}]\n\n9. additionalButtons [扩展的图标,{title:'扩展',className:'fa fa-music',type:'custom',action:musicFn,before:2}]\n\n10. onShow [显示编辑器的时候调用]\n\n11. onPreview [预览的时候调用]\n\n12.onChange [内容变化时调用]\n\n13.toolbar 按钮id [粗体:1],[斜体:2],[删除线:3],[标题1:4],[标题2:5],[标题3:6],[标题4:7],[标题5:8],[标题6:9],[横线:10],[引用:11],[无序列表:12],[有序列表:13],[未完成任务列表:14],\n   [已完成任务列表:15],[链接:16],[图片:17],[代码:18],[表格:19],[Emoji 图标:20],[Font Awesome 图标:21],[数学公式:22],[流程图:23],[顺序图:24],[甘特图:25],[帮助:26],[预览:27],[最大化:28]\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fworktile%2Fangular-wt-editor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fworktile%2Fangular-wt-editor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fworktile%2Fangular-wt-editor/lists"}