{"id":22484776,"url":"https://github.com/zazuko/vue2-prosemirror-markdown","last_synced_at":"2025-04-15T02:09:31.600Z","repository":{"id":74818032,"uuid":"133360470","full_name":"zazuko/vue2-prosemirror-markdown","owner":"zazuko","description":"Prosemirror WYSIWYG Markdown Editor Component for Vue2","archived":false,"fork":false,"pushed_at":"2018-07-25T13:19:53.000Z","size":461,"stargazers_count":8,"open_issues_count":0,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-15T02:09:26.949Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://zazuko.github.io/vue2-prosemirror-markdown/","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/zazuko.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-05-14T12:55:00.000Z","updated_at":"2024-01-26T16:48:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"f65dbd4c-e234-4562-8959-2f61b1faecb8","html_url":"https://github.com/zazuko/vue2-prosemirror-markdown","commit_stats":{"total_commits":60,"total_committers":4,"mean_commits":15.0,"dds":"0.23333333333333328","last_synced_commit":"af5e2bd68784b4e2d47b3257691622c48549598d"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zazuko%2Fvue2-prosemirror-markdown","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zazuko%2Fvue2-prosemirror-markdown/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zazuko%2Fvue2-prosemirror-markdown/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zazuko%2Fvue2-prosemirror-markdown/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zazuko","download_url":"https://codeload.github.com/zazuko/vue2-prosemirror-markdown/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248991544,"owners_count":21194894,"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-06T17:11:33.202Z","updated_at":"2025-04-15T02:09:31.578Z","avatar_url":"https://github.com/zazuko.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# vue2-prosemirror-markdown\n\nPlugin to integrate prosemirror with Vue 2\n\n[![Build Status](https://travis-ci.org/zazuko/vue2-prosemirror-markdown.svg?branch=master)](https://travis-ci.org/zazuko/vue2-prosemirror-markdown)\n\n## Usage\n\n```js\nimport Vue from 'vue'\nimport ProseMirror from 'vue2-prosemirror-markdown'\nimport App from './App.vue'\n\nVue.use(ProseMirror)\n\nnew Vue({ // eslint-disable-line no-new\n  el: '#app',\n  render: (h) =\u003e h(App)\n})\n```\nThis installs the component, which can be used as...\n\n```html\n\u003cprosemirror\n  :initialMarkdown=\"**hello**\"\n  mode=\"all\"\n  textareaConfig=\"{name: 'my-textarea'}\"\n  @contentChangeMarkdown=\"markdownChangedHandler\"/\u003e\n```\n\n| parameter         | values                                                                          |\n|-------------------|---------------------------------------------------------------------------------|\n| `textareaConfig`  | `{name: 'a-string'}` (required)                                                 |\n| `mode`            | `all`, `editor` (default), `markdown`                                           |\n| `initialMarkdown` | binding `:initialMarkdown=\"someVar\"`, as string: `initialMarkdown=\"**text**\"`   |\n| `customClass`     | `'vue-prosemirror'` (default)                                                   |\n\n### Events\n\n| event name               | called with these arguments  |\n|--------------------------|------------------------------|\n| `contentChange`          | `(val, oldVal)`, both are Objects: `{editor: Node, markdown: String}`              |\n| `contentChangeMarkdown`  | `(markdown: String)`           |\n| `modeChange`             | `(val: String, oldVal: String)`              |\n\n## Build Setup\n\n``` bash\n# install dependencies\nnpm install\n\n# serve with hot reload at localhost:8080\nnpm run dev\n\n# build for production with minification\nnpm run build\n\n# lint all *.js and *.vue files\nnpm run lint\n\n# run unit tests\nnpm test\n```\n\nFor more information see the [docs for vueify](https://github.com/vuejs/vueify).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzazuko%2Fvue2-prosemirror-markdown","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzazuko%2Fvue2-prosemirror-markdown","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzazuko%2Fvue2-prosemirror-markdown/lists"}