Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@ckeditor/vite-plugin-ckeditor5
Advanced tools
Changelog
Readme
Integrate the CKEditor 5's build process in your Vite setup.
Using this plugin to build CKEditor 5 from source in Vite is still in the experimental phase. We encourage you to test it and give us feedback. However, there might be some issues in more complex application/usecases, thus using this solution in production applications is not yet recommended.
You should use this plugin when building CKEditor 5 from source in a Vite application. It handles loading the .svg
icons and styles from the packages and theme package. If your editor is already built (e.g you downloaded it from CKEditor 5 Online Builder) then this plugin is not needed.
npm install -D @ckeditor/vite-plugin-ckeditor5
# or
yarn add -D @ckeditor/vite-plugin-ckeditor5
// vite.config.js
import { defineConfig } from 'vite';
import ckeditor5 from '@ckeditor/vite-plugin-ckeditor5';
export default defineConfig( {
plugins: [
ckeditor5( { theme: require.resolve( '@ckeditor/ckeditor5-theme-lark' ) } )
]
} );
theme
This should be an absolute path to the main file in theme package. Example:
{ theme: require.resolve( '@ckeditor/ckeditor5-theme-lark' ) }
Note: If you are using this plugin in an ESM project you may encounter an error stating that require.resolve
is not a function. In this case you can add the following to the top of your vite.config.js
file:
import { createRequire } from 'node:module';
const require = createRequire( import.meta.url );
Before starting the release process, you need to generate the changelog:
npm run changelog
After generating the changelog, you are able to release the package.
First, you need to bump the version:
npm run release:bump-version
You can also use the --dry-run
option in order to see what this task does.
After bumping the version, you can publish the changes:
npm run release:publish
As in the previous task, the --dry-run
option is also available.
Note: Only the dist/
directory will be published.
Licensed under the terms of GNU General Public License Version 2 or later. For full details about the license, please check the LICENSE.md
file.
FAQs
CKEditor 5 Vite plugin ======================
The npm package @ckeditor/vite-plugin-ckeditor5 receives a total of 18,255 weekly downloads. As such, @ckeditor/vite-plugin-ckeditor5 popularity was classified as popular.
We found that @ckeditor/vite-plugin-ckeditor5 demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.