{"id":20533103,"url":"https://github.com/view-design/iview-editor","last_synced_at":"2025-03-06T03:11:48.625Z","repository":{"id":44992522,"uuid":"206218066","full_name":"view-design/iview-editor","owner":"view-design","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-09T00:42:28.000Z","size":918,"stargazers_count":5,"open_issues_count":5,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-16T13:18:09.437Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Vue","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/view-design.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":"2019-09-04T02:55:40.000Z","updated_at":"2024-04-25T14:19:44.000Z","dependencies_parsed_at":"2023-01-25T21:45:06.795Z","dependency_job_id":null,"html_url":"https://github.com/view-design/iview-editor","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/view-design%2Fiview-editor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/view-design%2Fiview-editor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/view-design%2Fiview-editor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/view-design%2Fiview-editor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/view-design","download_url":"https://codeload.github.com/view-design/iview-editor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242138880,"owners_count":20078006,"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-11-16T00:18:43.809Z","updated_at":"2025-03-06T03:11:48.588Z","avatar_url":"https://github.com/view-design.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# iView Editor\n[http://editor.iviewui.com](http://editor.iviewui.com)\n\u003e iView Editor 是基于 iView 的 markdown 编辑器，支持上传图片（可集成七牛等服务），支持全屏实时编辑预览。\n## 如何使用\n### 通过 npm 安装\n\n```\nnpm install iview-editor --save\n```\n在 webpack 中使用插件，部分代码省略：\n``` js\nimport Vue from 'vue';\nimport iView from 'iview';\nimport iEditor from 'iview-editor';\n\n// 使用 css\nimport 'iview/dist/styles/iview.css';\nimport 'iview-editor/dist/i-editor.css';\n\n// 使用插件\nVue.use(iView);\nVue.use(iEditor);\n```\n\n在 .vue 中使用：\n``` html\n\u003ctemplate\u003e\n    \u003ci-editor v-model=\"content\"\u003e\u003c/i-editor\u003e\n\u003c/template\u003e\n\u003cscript\u003e\n    export default {\n        data () {\n            return {\n                content: ''\n            }\n        }\n    }\n\u003c/script\u003e\n```\n\n### 通过 CDN 使用\n``` html\n\u003c!DOCTYPE html\u003e\n\u003chtml\u003e\n    \u003chead\u003e\n        \u003cmeta charset=\"utf-8\"\u003e\n        \u003ctitle\u003eiView Editor\u003c/title\u003e\n        \u003clink rel=\"stylesheet\" type=\"text/css\" href=\"http://unpkg.com/iview/dist/styles/iview.css\"\u003e\n        \u003clink rel=\"stylesheet\" type=\"text/css\" href=\"http://unpkg.com/iview-editor/dist/iview-editor.css\"\u003e\n        \u003cscript type=\"text/javascript\" src=\"http://vuejs.org/js/vue.min.js\"\u003e\u003c/script\u003e\n        \u003cscript type=\"text/javascript\" src=\"http://unpkg.com/iview/dist/iview.min.js\"\u003e\u003c/script\u003e\n        \u003cscript type=\"text/javascript\" src=\"http://unpkg.com/iview-editor/dist/iview-editor.js\"\u003e\u003c/script\u003e\n    \u003c/head\u003e\n    \u003cbody\u003e\n        \u003cdiv id=\"app\"\u003e\n            \u003ci-editor v-model=\"content\"\u003e\u003c/i-editor\u003e\n        \u003c/div\u003e\n        \u003cscript\u003e\n            new Vue({\n                el: '#app',\n                data: {\n                    content: ''\n                }\n            })\n        \u003c/script\u003e\n    \u003c/body\u003e\n\u003c/html\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fview-design%2Fiview-editor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fview-design%2Fiview-editor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fview-design%2Fiview-editor/lists"}