{"id":49896397,"url":"https://github.com/damengshu/blocknote-vue","last_synced_at":"2026-05-16T00:06:47.707Z","repository":{"id":323091871,"uuid":"1092096719","full_name":"damengshu/blocknote-vue","owner":"damengshu","description":"BlockNote use veaury to provide Vue.js components for BlockNote editor.","archived":false,"fork":false,"pushed_at":"2025-11-08T03:58:50.000Z","size":155,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-11-08T04:06:54.255Z","etag":null,"topics":["blocknote","editor","notion-editor","tiptap","veaury","vue"],"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/damengshu.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-08T01:50:50.000Z","updated_at":"2025-11-08T03:58:53.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/damengshu/blocknote-vue","commit_stats":null,"previous_names":["damengshu/blocknote-vue"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/damengshu/blocknote-vue","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/damengshu%2Fblocknote-vue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/damengshu%2Fblocknote-vue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/damengshu%2Fblocknote-vue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/damengshu%2Fblocknote-vue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/damengshu","download_url":"https://codeload.github.com/damengshu/blocknote-vue/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/damengshu%2Fblocknote-vue/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33085095,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T20:25:35.270Z","status":"ssl_error","status_checked_at":"2026-05-15T20:25:34.732Z","response_time":103,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["blocknote","editor","notion-editor","tiptap","veaury","vue"],"created_at":"2026-05-16T00:06:45.598Z","updated_at":"2026-05-16T00:06:47.702Z","avatar_url":"https://github.com/damengshu.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vue3 中使用 **[BlockNote](https://www.blocknotejs.org/docs#introduction-to-blocknote)**\n\n#### use [veaury](https://github.com/gloriasoft/veaury/) support react component in vue3\n\n## 安装\n\n```bash\nnpm install blocknote-vue\n```\n\n## 快速开始\n\n```vue\n\u003ctemplate\u003e\n  \u003cdiv\u003e\n    \u003cBlockNoteView\n      ref=\"blockNoteViewRef\"\n      :editor-props=\"editorProps\"\n      @change=\"handleChange\"\n    /\u003e\n\n    \u003cbutton @click=\"handleUpdate\"\u003eupdate\u003c/button\u003e\n  \u003c/div\u003e\n\u003c/template\u003e\n\n\u003cscript lang=\"ts\" setup\u003e\n  import { BlockNoteView } from 'blocknote-vue'\n  import { Exposed } from 'blocknote-vue/es/BlockNoteView.vue'\n\n  const blockNoteViewRef = ref\u003cExposed | null\u003e(null)\n\n  const editorProps: any = ref({\n    initialContent: [\n      {\n        id: '685bd685-4e26-4c77-a97a-16fc6db68dde',\n        type: 'paragraph',\n        props: {\n          backgroundColor: 'default',\n          textColor: 'default',\n          textAlignment: 'left'\n        },\n        content: [\n          {\n            type: 'text',\n            text: 'Welcome to this demo!',\n            styles: {}\n          }\n        ],\n        children: []\n      },\n      {\n        id: '0a3bb640-f66c-4c58-9466-f19de032b841',\n        type: 'heading',\n        props: {\n          backgroundColor: 'default',\n          textColor: 'default',\n          textAlignment: 'left',\n          level: 1,\n          isToggleable: false\n        },\n        content: [\n          {\n            type: 'text',\n            text: 'This is a heading block',\n            styles: {}\n          }\n        ],\n        children: []\n      },\n      {\n        id: '07bc4a38-fe90-4538-8b3a-af11412e7988',\n        type: 'paragraph',\n        props: {\n          backgroundColor: 'default',\n          textColor: 'default',\n          textAlignment: 'left'\n        },\n        content: [\n          {\n            type: 'text',\n            text: 'This is a paragraph block',\n            styles: {}\n          }\n        ],\n        children: []\n      },\n      {\n        id: '7bab9d7d-b63b-4aad-acfc-3c68bdbbe332',\n        type: 'paragraph',\n        props: {\n          backgroundColor: 'default',\n          textColor: 'default',\n          textAlignment: 'left'\n        },\n        content: [],\n        children: []\n      }\n    ]\n  })\n\n  const handleChange = (document: any, changes: any, markdown: string) =\u003e {\n    console.log('Markdown content:', markdown)\n    console.log('Document content:', document)\n    console.log('Changes:', changes)\n  }\n\n  const handleUpdate = () =\u003e {\n    const editor = blockNoteViewRef.value?.editor\n    if (!editor) {\n      console.warn('Editor 未初始化')\n      return\n    }\n\n    const newBlocks = [\n      {\n        id: 'new-block-1',\n        type: 'paragraph',\n        props: {\n          backgroundColor: 'default',\n          textColor: 'default',\n          textAlignment: 'left'\n        },\n        content: [\n          {\n            type: 'text',\n            text: 'This is a new paragraph block added programmatically.',\n            styles: {}\n          }\n        ],\n        children: []\n      }\n    ]\n\n    editor.replaceBlocks(editor.document, newBlocks)\n  }\n\u003c/script\u003e\n\n\u003cstyle lang=\"scss\"\u003e\n  @import 'blocknote-vue/es/blocknote-vue.css';\n\u003c/style\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdamengshu%2Fblocknote-vue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdamengshu%2Fblocknote-vue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdamengshu%2Fblocknote-vue/lists"}