
Security News
TypeScript is Porting Its Compiler to Go for 10x Faster Builds
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
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 46 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
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.