{"id":13938063,"url":"https://github.com/dangvanthanh/vue-ckeditor2","last_synced_at":"2025-04-04T10:09:59.296Z","repository":{"id":57394974,"uuid":"47882546","full_name":"dangvanthanh/vue-ckeditor2","owner":"dangvanthanh","description":"CKEditor 4 wrapper by Vue.js","archived":false,"fork":false,"pushed_at":"2024-07-01T16:29:44.000Z","size":3293,"stargazers_count":169,"open_issues_count":17,"forks_count":64,"subscribers_count":9,"default_branch":"main","last_synced_at":"2025-03-28T09:08:03.634Z","etag":null,"topics":["ckeditor","vue","vue-ckeditor"],"latest_commit_sha":null,"homepage":"https://vue-ckeditor2.surge.sh/","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/dangvanthanh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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},"funding":{"patreon":"dangvanthanh"}},"created_at":"2015-12-12T15:06:27.000Z","updated_at":"2025-03-24T04:46:51.000Z","dependencies_parsed_at":"2024-05-07T20:57:12.080Z","dependency_job_id":"a0ce42bb-d005-466a-bdf0-a80609724582","html_url":"https://github.com/dangvanthanh/vue-ckeditor2","commit_stats":{"total_commits":139,"total_committers":16,"mean_commits":8.6875,"dds":"0.15827338129496404","last_synced_commit":"52a29dd20cad37b74eab61ebd65152735a9630f3"},"previous_names":[],"tags_count":40,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dangvanthanh%2Fvue-ckeditor2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dangvanthanh%2Fvue-ckeditor2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dangvanthanh%2Fvue-ckeditor2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dangvanthanh%2Fvue-ckeditor2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dangvanthanh","download_url":"https://codeload.github.com/dangvanthanh/vue-ckeditor2/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247157283,"owners_count":20893220,"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":["ckeditor","vue","vue-ckeditor"],"created_at":"2024-08-07T23:04:12.635Z","updated_at":"2025-04-04T10:09:59.275Z","avatar_url":"https://github.com/dangvanthanh.png","language":"Vue","funding_links":["https://patreon.com/dangvanthanh"],"categories":["Vue"],"sub_categories":[],"readme":"# vue-ckeditor\n\n\u003e Ckeditor using for Vue.js 2\n\n![](https://raw.githubusercontent.com/dangvanthanh/vue-ckeditor2/master/screenshot.png)\n\n## Requirements\n\n- [Ckeditor](http://ckeditor.com/) \u003e= 4\n- [Vue.js](http://vuejs.org/) \u003e= 2\n\n## Install\n\n### CDN\n\n```html\n\u003cscript src=\"https://unpkg.com/vue-ckeditor2\"\u003e\u003c/script\u003e\n```\n\n### NPM\n\n```\n$ npm install vue-ckeditor2 --save\n```\n\n## Usage\n\n\u003e This document applies to v2.0+. If you are looking for older versions, docs are [here](https://github.com/dangvanthanh/vue-ckeditor2/wiki/Getting-Started)\n\n### Component\n\nThen in your component:\n\n```vue\n\u003ctemplate\u003e\n  \u003cdiv\u003e\n    \u003cvue-ckeditor \n      v-model=\"content\" \n      :config=\"config\" \n      @blur=\"onBlur($event)\" \n      @focus=\"onFocus($event)\"\n      @contentDom=\"onContentDom($event)\"\n      @dialogDefinition=\"onDialogDefinition($event)\"\n      @fileUploadRequest=\"onFileUploadRequest($event)\"\n      @fileUploadResponse=\"onFileUploadResponse($event)\" /\u003e\n  \u003c/div\u003e\n\u003c/template\u003e\n\n\u003cscript\u003e\nimport VueCkeditor from 'vue-ckeditor2';\n\nexport default {\n  components: { VueCkeditor },\n  data() {\n    return {\n      content: '',\n      config: {\n        toolbar: [\n          ['Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript']\n        ],\n        height: 300\n      }\n    };\n  },\n  methods: {\n    onBlur(evt) {\n      console.log(evt);\n    },\n    onFocus(evt) {\n      console.log(evt);\n    },\n    onContentDom(evt) {\n      console.log(evt);\n    },\n    onDialogDefinition(evt) {\n      console.log(evt);\n    },\n    onFileUploadRequest(evt) {\n      console.log(evt);\n    },\n    onFileUploadResponse(evt) {\n      console.log(evt);\n    }\n  }\n};\n\u003c/script\u003e\n```\n\n### Props\n\n| Name                    | Type       | Description                                                                  |\n| ----------------------- | ---------- | ---------------------------------------------------------------------------- |\n| `name`                  | `String`   | Name of instance ckedior. **Default: editor- **                              |\n| `id`                    | `String`   | Id of instance ckedior. **Default: editor-1**                                |\n| `types`                 | `String`   | Types of ckedior. **Default: classic**                                       |\n| `config`                | `Object`   | All configuration of ckeditor. **Default: {}**                               |\n| `instanceReadyCallback` | `Function` | Optional function that will be attached to CKEditor instanceReady event.     |\n| `readOnlyMode`          | `Boolean`  | Option setReadOnly editor initializes in the proper mode. **Default: false** |\n\n### Events\n\n| Name                 | Description                                                                                                                                                       |\n| -------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `blur`               | Fired when the editor instance loses the input focus.                                                                                                             |\n| `focus`              | Fired when the editor instance receives the input focus.                                                                                                          |\n| `contentDom`         | Event fired when the editor content (its DOM structure) is ready                                                                                                  |\n| `dialogDefinition`   | Event fired when a dialog definition is about to be used to create a dialog into an editor instance                                                               |\n| `fileUploadRequest`  | Event fired when the [file loader](https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_fileTools_fileLoader.html) should send XHR                             |\n| `fileUploadResponse` | Event fired when the [file loader](https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_fileTools_fileLoader.html) response is received and needs to be parsed |\n\n## Build Setup\n\nYou can use [vue-cli](https://github.com/vuejs/vue-cli) with [vue-rollup-boilerplate templates](https://github.com/dangvanthanh/vue-rollup-boilerplate) or [other vue templates](https://github.com/vuejs-templates)\n\n## Created By\n\n- [Dang Van Thanh](https://github.com/dangvanthanh)\n\nThanks to [contributers](./CONTRIBUTING.md)\n\n## License\n\nMIT © [Dang Van Thanh](http://dangthanh.org)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdangvanthanh%2Fvue-ckeditor2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdangvanthanh%2Fvue-ckeditor2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdangvanthanh%2Fvue-ckeditor2/lists"}