Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
ckeditor5-full-screen
Advanced tools
Adds a full screen support similar to the maximize plugin in ckeditor 4.
Icon thanks to css.gg.
This plugin provides a full screen mode for ckeditor 5. The plugin adds a button to the editor toolbar which can be used to toggle between the normal ckeditor and the full screen mode. To exit the full screen mode, it is also possible to press escape or click anywhere in the background (See configuration).
Via npm:
npm i ckeditor5-full-screen
If using a predefined build:
import FullScreen from "ckeditor5-full-screen/src/fullscreen";
Editor.builtinPlugins = [
// ...
FullScreen,
];
Editor.defaultConfig = {
toolbar: {
items: [
// ...
"fullscreen", // Add the toolbar button
],
},
};
If building from source:
import FullScreen from "ckeditor5-full-screen/src/fullscreen";
Editor.create(element, {
plugins: [FullScreen],
toolbar: ["fullscreen"],
})
.then((editor) => {
// ...
})
.catch((error) => {
// ...
});
More information about installing plugins can be found in the official documentation.
Name | Default value | Description |
---|---|---|
fullscreen.closeOnEscape | true | If set to true , exits the full screen mode when escape is pressed. |
fullscreen.closeOnClick | true | If set to true , exits the full screen mode when clicking anywhere in the background. |
Editor.defaultConfig = {
// ...
fullscreen: {
closeOnEscape: true,
closeOnClick: false,
},
};
Editor.create(element, {
// ...
fullscreen: {
closeOnEscape: true,
closeOnClick: false,
},
});
Ignore this if you just want to use this package.
If you want to run ckeditor locally using e.g. https://github.com/indico/ckeditor, you can install this package directly:
npm install $(npm pack /path/to/the/package | tail -1)
Just using npm install /path/to/the/package
doesn't work because npm symlinks the package instead of copying it. This will cause duplicated packages when bundling the editor with webpack (this error). The fix is to create a zipped package with npm pack
first and installing that one instead.
Useful SO links:
FAQs
Adds a full screen support similar to the maximize plugin in ckeditor 4.
The npm package ckeditor5-full-screen receives a total of 17 weekly downloads. As such, ckeditor5-full-screen popularity was classified as not popular.
We found that ckeditor5-full-screen demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.