{"id":14962704,"url":"https://github.com/techlab23/ckeditor5-svelte","last_synced_at":"2025-06-26T05:04:17.858Z","repository":{"id":35022305,"uuid":"197563845","full_name":"techlab23/ckeditor5-svelte","owner":"techlab23","description":"ckeditor5 editor component for svelte","archived":false,"fork":false,"pushed_at":"2024-06-24T10:25:48.000Z","size":1019,"stargazers_count":21,"open_issues_count":5,"forks_count":10,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-08T21:29:06.436Z","etag":null,"topics":["ckeditor5","svelte3","sveltejs"],"latest_commit_sha":null,"homepage":"https://codesandbox.io/s/ckeditor5-svelte-demo-p2n4w","language":"Svelte","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/techlab23.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2019-07-18T10:16:16.000Z","updated_at":"2025-04-08T15:27:39.000Z","dependencies_parsed_at":"2024-09-22T15:00:44.422Z","dependency_job_id":null,"html_url":"https://github.com/techlab23/ckeditor5-svelte","commit_stats":{"total_commits":20,"total_committers":2,"mean_commits":10.0,"dds":"0.050000000000000044","last_synced_commit":"03632ac9151383c034e2918f3630f14988a4ea4e"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techlab23%2Fckeditor5-svelte","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techlab23%2Fckeditor5-svelte/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techlab23%2Fckeditor5-svelte/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techlab23%2Fckeditor5-svelte/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/techlab23","download_url":"https://codeload.github.com/techlab23/ckeditor5-svelte/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techlab23%2Fckeditor5-svelte/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259144977,"owners_count":22811938,"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":["ckeditor5","svelte3","sveltejs"],"created_at":"2024-09-24T13:30:23.911Z","updated_at":"2025-06-26T05:04:17.822Z","avatar_url":"https://github.com/techlab23.png","language":"Svelte","funding_links":[],"categories":[],"sub_categories":[],"readme":"## CKEditor5 editor component for Svelte 3\n\nThis component is a thin wrapper around ckeditor5 document editor.\nBelow are the set of instructions to create svelte project, install component and a basic setup with CKEditor DocumentEditor build.\n\n### How to install package\n\n```bash\n$ npm i ckeditor5-svelte\n```\n\n### Getting started\n\n#### Create a new svelte project and install dependencies\n\n```bash\nnpx degit sveltejs/template my-svelte-project\n# or download and extract\ncd my-svelte-project\n# to use Typescript run:\n# node scripts/setupTypeScript.js\n\nnpm install\n```\n\n#### Install ckeditor5-svelte package\n\n```bash\nnpm i ckeditor5-svelte\n```\n\n#### Install DocumentEditor build of ckeditor\n\n```bash\nnpm i @ckeditor/ckeditor5-build-decoupled-document\n```\n\n#### Update App.svelte in your project with the following\n\n```js\n\u003cscript\u003e\n  import CKEditor from \"ckeditor5-svelte\";\n  import DecoupledEditor from \"@ckeditor/ckeditor5-build-decoupled-document/build/ckeditor\";\n\n  // Setting up editor prop to be sent to wrapper component\n  let editor = DecoupledEditor;\n  // Reference to initialised editor instance\n  let editorInstance = null;\n  // Setting up any initial data for the editor\n  let editorData = \"Hello World\";\n\n  // If needed, custom editor config can be passed through to the component\n  // Uncomment the custom editor config if you need to customise the editor.\n  // Note: If you don't pass toolbar object then Document editor will use default set of toolbar items.\n  let editorConfig = {\n    toolbar: {\n      items: [\n        \"heading\",\n        \"|\",\n        \"fontFamily\",\n        \"fontSize\",\n        \"bold\",\n        \"italic\",\n        \"underline\"\n      ]\n    }\n  };\n\n  function onReady({ detail: editor }) {\n    // Insert the toolbar before the editable area.\n    editorInstance = editor;\n    editor.ui\n      .getEditableElement()\n      .parentElement.insertBefore(\n        editor.ui.view.toolbar.element,\n        editor.ui.getEditableElement()\n      );\n  }\n\u003c/script\u003e\n\n\u003cstyle\u003e\n\u003c/style\u003e\n\n\u003cmain\u003e\n  \u003cdiv\u003e\n    \u003cCKEditor\n      bind:editor\n      on:ready={onReady}\n      bind:config={editorConfig}\n      bind:value={editorData} /\u003e\n  \u003c/div\u003e\n\u003c/main\u003e\n```\n\n#### Run your project\n\n```bash\nnpm run dev\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechlab23%2Fckeditor5-svelte","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftechlab23%2Fckeditor5-svelte","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechlab23%2Fckeditor5-svelte/lists"}