Security News
Cloudflare Adds Security.txt Setup Wizard
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
@ckeditor/ckeditor5-angular
Advanced tools
Official Angular component for CKEditor 5 – the best browser-based rich text editor.
Official CKEditor 5 rich text editor component for Angular 13+.
See the "Rich text editor component for Angular" guide in the CKEditor 5 documentation to learn more:
ngModel
@Input
properties@Output
propertiesBecause of the breaking changes in the Angular library output format, the @ckeditor/ckeditor5-angular
package is released in the following versions to support various Angular ecosystems:
Package version | Angular version | Details |
---|---|---|
Actively supported versions | ||
^7 | 13+ | Changes in peer dependencies. (issue) |
Past releases (no longer maintained) | ||
^6 | 13+ | Requires CKEditor 5 at least in version 42. |
^5 | 13+ | Requires Angular at least in version 13+. Lower versions are no longer maintained. |
^4 | 9.1+ | Requires CKEditor 5 at least in version 34. |
^3 | 9.1+ | Requires Node.js at least in version 14. |
^2 | 9.1+ | Migration to TypeScript 4. Declaration files are not backward compatible. |
^1 | 5.x - 8.x | Angular versions are no longer maintained. |
Note that the package.json
file used in the main repository isn't published on npm (the production one is present in src/ckeditor/package.json
).
After cloning this repository, install necessary dependencies:
npm install
This repository contains the following code:
./src/ckeditor
contains the implementation of the <ckeditor>
component,./src/app
is a demo application using the component.Note: The npm package contains a packaged component only.
To open the demo application using the component, run:
npm run start
To test it in production, use:
npm run start -- --configuration production
To run unit tests, use:
npm run test
To run e2e tests, run:
# Prepare the server.
npm run start
# Then, start tests.
npm run test:e2e
To run coverage tests, run:
npm run coverage
Play with the application and make sure the component works properly.
npm run changelog
Note This step is required to test the package used as an npm dependency.
This project uses ng-packagr to create the package meeting the Angular Package Format specification.
Calling:
npm run build-package
creates a package in the ./dist
directory, which can be then published in the npm registry.
To test the ckeditor5-angular
package, first bootstrap an empty Angular package using ng new
and add the <ckeditor>
component by following the guide.
Then, create a symlink to the ckeditor5-angular/dist
package directory to test the ckeditor5-angular
component via this repository.
ln -s path/to/ckeditor5-angular/dist node_modules/\@ckeditor/ckeditor5-angular
Make sure that the preserveSymlinks
option is set to true
for the build
architect in angular.json
:
{
"project-name": {
"architect": {
"build": {
"options": {
"preserveSymlinks": true
}
}
}
}
}
Make sure to test the package with the production setup (ng build --configuration production
) and with older Angular versions (at least with the 9.1).
To create the release directory, run:
npm run release:prepare-packages
Then, to publish the new package in the npm registry, run:
npm run release:publish-packages
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
Official Angular component for CKEditor 5 – the best browser-based rich text editor.
The npm package @ckeditor/ckeditor5-angular receives a total of 43,135 weekly downloads. As such, @ckeditor/ckeditor5-angular popularity was classified as popular.
We found that @ckeditor/ckeditor5-angular demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.
Security News
ENISA’s 2024 report highlights the EU’s top cybersecurity threats, including rising DDoS attacks, ransomware, supply chain vulnerabilities, and weaponized AI.