Gathering detailed insights and metrics for imagekit-ckeditor5-plugin
Gathering detailed insights and metrics for imagekit-ckeditor5-plugin
Gathering detailed insights and metrics for imagekit-ckeditor5-plugin
Gathering detailed insights and metrics for imagekit-ckeditor5-plugin
npm install imagekit-ckeditor5-plugin
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (77.86%)
CSS (22.14%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
18 Commits
2 Watchers
2 Branches
4 Contributors
Updated on Feb 20, 2021
Latest Version
1.0.0
Package Id
imagekit-ckeditor5-plugin@1.0.0
Unpacked Size
10.36 kB
Size
4.22 kB
File Count
5
NPM Version
6.9.0
Node Version
10.16.3
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
This plugin integrates ImageKit into CKEditor 5, allowing you to access the embedded Media Library Widget through your CKEditor toolbar.
With this plugin, you can directly insert images from your ImageKit account into the editor, as well as upload new images to your Media Library.
To install this plugin, you should make a custom build of CKEditor 5. Use the quickstart steps below, or follow the instructions here.
The following versions of CKEditor core packages are supported so far:
If you are making the custom build by following the instructions on CKEditor website, please ensure that all CKEditor-related packages you install belong to a single one of the supported versions. Otherwise, the build will throw "ckeditor-duplicated-modules" error in the browser and fail to work.
Clone the CKEditor 5 repository at the latest supported version:
git clone --depth 1 --branch v24.0.0 https://github.com/ckeditor/ckeditor5.git
Navigate to the build that will be customized and install dependencies. We will use the classic build:
cd ckeditor5/packages/ckeditor5-build-classic
npm install
Install the ImageKit CKEditor plugin in your custom build folder:
npm install --save-dev imagekit-ckeditor5-plugin
To load the plugin, configure your editor by editing the src/ckeditor.js
file that belongs to the chosen build. Import the Media Library Widget within it as follows:
1/* ckeditor5-build-classic/src/ckeditor.js */ 2 3// ...imported modules 4// custom plugin import 5import { ImagekitMediaLibraryWidget } from 'imagekit-ckeditor5-plugin'; 6 7export default class ClassicEditor extends ClassicEditorBase {} 8 9// Plugins to include in the build. 10ClassicEditor.builtinPlugins = [ 11 // include custom plugin in build 12 ImagekitMediaLibraryWidget, 13 // ...other components 14]; 15 16// COnfigure the `imagekitMediaLibraryWidget` plugin to display on the editor toolbar 17ClassicEditor.defaultConfig = { 18 toolbar: { 19 items: [ 20 'imagekitMediaLibraryWidget', 21 // ...other ckeditor plugins 22 ] 23 }, 24 // ...other settings 25 language: 'en' 26}; 27
1npm run build
Copy the built files into the source of your webpage which will host the editor:
cp -r build/ <path_to_your_web_project>
Import the generated build files in your frontend project:
1<script src="<path_to_web_project>/ckeditor.js"></script>
Provide HTML container elements for widget instance as well as editor instance:
1<div class="editor"></div> 2<div class="ml-container"></div>
Create a JavaScript object with configuration options for the plugin:
1var pluginOptions = { 2 container: '.ml-container', 3 className: 'media-library-widget', 4 dimensions: { 5 height: '100%', 6 width: '100%', 7 }, 8};
Create an editor instance that includes the imagekitMediaLibraryWidget
plugin on the toolbar, with its configuration options.
1// ckeditor 2var editor; 3 4// initialize ckeditor 5ClassicEditor 6 .create(document.querySelector('.editor'), { 7 imagekitMediaLibraryWidget: { 8 config: pluginOptions 9 } 10 }) 11 .then(newEditor => { 12 editor = newEditor; 13 window.editor = newEditor; 14 }).catch(error => { 15 console.error(error); 16 });
Open a browser and navigate to your app with the CKEditor instance. It should look similar to the image below. To open ImageKit view, click on the highlighted icon:
If you are not logged in already, do so using your ImageKit username and password.
The Media Library view should open right up, letting you search and select existing images, as well as upload new ones directly.
To insert one or more images into the CKEditor panel, select them and click the "Insert" button in the top right hand area.
The modal dialog will close and selected images will be inserted into the editor automatically!
Note: Google Chrome (Incognito)
In order to use this plugin on Google Chrome in Incognito mode, you need to enable third-party cookies:
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
0 existing vulnerabilities detected
Reason
Found 1/2 approved changesets -- score normalized to 5
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More