{"id":22048531,"url":"https://github.com/samhammerag/ckeditor5-simple-image-upload-plugin","last_synced_at":"2025-07-05T18:12:04.211Z","repository":{"id":58413870,"uuid":"148628794","full_name":"SamhammerAG/ckeditor5-simple-image-upload-plugin","owner":"SamhammerAG","description":"A generic ckeditor plugin to upload images with a custom api backend.","archived":false,"fork":false,"pushed_at":"2023-04-17T20:19:22.000Z","size":41,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-08T08:49:42.143Z","etag":null,"topics":["ckeditor5"],"latest_commit_sha":null,"homepage":"","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/SamhammerAG.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}},"created_at":"2018-09-13T11:37:44.000Z","updated_at":"2024-01-31T07:10:27.000Z","dependencies_parsed_at":"2023-01-18T06:30:54.192Z","dependency_job_id":null,"html_url":"https://github.com/SamhammerAG/ckeditor5-simple-image-upload-plugin","commit_stats":null,"previous_names":[],"tags_count":26,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamhammerAG%2Fckeditor5-simple-image-upload-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamhammerAG%2Fckeditor5-simple-image-upload-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamhammerAG%2Fckeditor5-simple-image-upload-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamhammerAG%2Fckeditor5-simple-image-upload-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SamhammerAG","download_url":"https://codeload.github.com/SamhammerAG/ckeditor5-simple-image-upload-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227351655,"owners_count":17768412,"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"],"created_at":"2024-11-30T14:12:39.823Z","updated_at":"2024-11-30T14:12:40.573Z","avatar_url":"https://github.com/SamhammerAG.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\n# ckeditor5-simple-image-upload-plugin\n\n[![npm version](https://badge.fury.io/js/%40samhammer%2Fckeditor5-simple-image-upload-plugin.svg)](https://www.npmjs.com/package/@samhammer/ckeditor5-simple-image-upload-plugin)\n\nA generic ckeditor plugin to upload images with a custom api backend.\n\n## Features\n\n - Simple UploadAdapter to upload files with a custom backend.\n\n## How to use\nTo be able to use this plugin you need a custom build of ckeditor.\n\nFurther instructions can be found here:\nhttps://ckeditor.com/docs/ckeditor5/latest/builds/guides/integration/installing-plugins.html\n\nInstallation:\n\n```bash\nnpm i @samhammer/ckeditor5-simple-image-upload-plugin\n```\n\n## Configuration\n\nThis plugin uses a hook which can be configured like shown below. This hook is called with the JS-File-Object as parameter and has to return a Promise which\nresolves to the full URL of the uploaded image.\n\nExample:\n\n```js\nInlineEditor\n\t.create( editorElement, {\n        simpleImageUpload: {\n            onUpload: file =\u003e {\n                // do any upload stuff here with the JS-File-Object\n                return Promise.resolve(\"http://path/to/the/uploaded/image.jpg\");\n            },\n            onAbort: () =\u003e { // OPTIONAL\n                // abort the upload here. The promise from onImageUpload should be rejected after that.\n            }\n        }\n\t} )\n\t.then( ... )\n\t.catch( ... );\n```\n\n\n## How to publish\n\nFor publishing an npm account that is referenced to the organization is required.\n\nSee the following how to:\n\nhttps://docs.npmjs.com/getting-started/publishing-npm-packages\n\nIf everything is configured correctly just count up the version number in our package.json and execute one of the following commands:\n\n```bash\nnpm publish --access public\n```\n\n## License\n\nckeditor5-simple-image-upload-plugin is released under the MIT License. See LICENSE file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamhammerag%2Fckeditor5-simple-image-upload-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamhammerag%2Fckeditor5-simple-image-upload-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamhammerag%2Fckeditor5-simple-image-upload-plugin/lists"}