{"id":13822993,"url":"https://github.com/marsprince/slate-vue","last_synced_at":"2025-05-16T19:04:23.918Z","repository":{"id":37025484,"uuid":"253970919","full_name":"marsprince/slate-vue","owner":"marsprince","description":"slate.js implement for Vue2 and Vue3","archived":false,"fork":false,"pushed_at":"2025-04-01T14:04:03.000Z","size":1485,"stargazers_count":142,"open_issues_count":46,"forks_count":19,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-02T14:03:31.248Z","etag":null,"topics":["javascript","slatejs","typescript","vue","vuejs"],"latest_commit_sha":null,"homepage":"https://marsprince.github.io/slate-vue","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/marsprince.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-04-08T03:00:55.000Z","updated_at":"2025-03-21T04:06:37.000Z","dependencies_parsed_at":"2024-01-18T04:09:51.848Z","dependency_job_id":"62670f1f-dac6-4ff9-bc2f-fd1a17366375","html_url":"https://github.com/marsprince/slate-vue","commit_stats":{"total_commits":178,"total_committers":7,"mean_commits":"25.428571428571427","dds":0.2921348314606742,"last_synced_commit":"65093b960640edbbb4739bd708dfdc1387f084f8"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marsprince%2Fslate-vue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marsprince%2Fslate-vue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marsprince%2Fslate-vue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marsprince%2Fslate-vue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marsprince","download_url":"https://codeload.github.com/marsprince/slate-vue/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248608378,"owners_count":21132718,"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":["javascript","slatejs","typescript","vue","vuejs"],"created_at":"2024-08-04T08:02:28.151Z","updated_at":"2025-04-12T17:42:35.036Z","avatar_url":"https://github.com/marsprince.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# Slate-vue\n\n[![Build Status](https://img.shields.io/github/workflow/status/marsprince/slate-vue/Test)](https://github.com/marsprince/slate-vue/actions?query=workflow%3ATest)\n[![NPM Version](https://img.shields.io/npm/v/slate-vue?color=brightgreen)](https://www.npmjs.com/package/slate-vue)\n[![NPM Size](https://img.shields.io/badge/gzip-36kb-brightgreen)](https://unpkg.com/slate-vue/dist/index.es.js)\n\nAn implement for [slate](https://github.com/ianstormtaylor/slate) supported vue2 and vue3（in development）. Most of the slate-react's components can be easily migrated by no code change.\n\nAll slate-react's example is supported now.\n\nFor principles's question, Please read slate's [docs](https://docs.slatejs.org/) first!\n\n## Install\n\nin npm\n\n```javascript\nnpm install slate-vue\n```\n\nin yarn\n\n```javascript\nyarn add slate-vue\n```\n\n## Usage\n\nimport\n\n```javascript\nimport Vue from 'vue'\nimport { SlatePlugin } from 'slate-vue';\nVue.use(SlatePlugin)\n```\n\nuse\n\n```vue\n\u003ctemplate\u003e\n  \u003cSlate :value=\"value\"\u003e\n    \u003cEditable placeholder=\"Enter some plain text...\"\u003e\u003c/Editable\u003e\n  \u003c/Slate\u003e\n\u003c/template\u003e\n\n\u003cscript\u003e\n  import {Slate, Editable} from 'slate-vue'\n\n  // this value is for editor\n  const initialValue = [\n    {\n      children: [\n        { text: 'This is editable plain text, just like a \u003ctextarea\u003e!' },\n      ],\n    },\n  ]\n  export default {\n    name: 'index',\n    components: {\n      Slate,\n      Editable\n    },\n    data() {\n      return {\n        value: JSON.stringify(initialValue)\n      }\n    }\n  };\n\u003c/script\u003e\n```\n\nSee full vue2.x document in [slate-vue](https://github.com/marsprince/slate-vue/tree/master/packages/slate-vue)\n\n## Examples\n\nSee all examples in [online example](https://marsprince.github.io/slate-vue).\n\nSee all example code in [pages](https://github.com/marsprince/slate-vue/tree/master/site/pages)\n\n## Issues\n\nYou can use this [codesandbox template](https://codesandbox.io/s/2984l) to reproduce problems.\n\n## Environment Support\n\n| [\u003cimg src=\"https://raw.githubusercontent.com/alrra/browser-logos/master/src/edge/edge_48x48.png\" alt=\"Edge\" width=\"24px\" height=\"24px\" /\u003e](http://godban.github.io/browsers-support-badges/)\u003cbr\u003eIE / Edge | [\u003cimg src=\"https://raw.githubusercontent.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png\" alt=\"Firefox\" width=\"24px\" height=\"24px\" /\u003e](http://godban.github.io/browsers-support-badges/)\u003cbr\u003eFirefox | [\u003cimg src=\"https://raw.githubusercontent.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png\" alt=\"Chrome\" width=\"24px\" height=\"24px\" /\u003e](http://godban.github.io/browsers-support-badges/)\u003cbr\u003eChrome | [\u003cimg src=\"https://raw.githubusercontent.com/alrra/browser-logos/master/src/safari/safari_48x48.png\" alt=\"Safari\" width=\"24px\" height=\"24px\" /\u003e](http://godban.github.io/browsers-support-badges/)\u003cbr\u003eSafari |\n| --- | --- | --- | --- |\n| testing | testing | 86.0+ | testing |\n\n## License\n\n[MIT](LICENSE) © marsprince\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarsprince%2Fslate-vue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarsprince%2Fslate-vue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarsprince%2Fslate-vue/lists"}