
Product
Rust Support Now in Beta
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
ckeditor5-iframe
Advanced tools
ckeditor5-iframe is based on CKEditor 5's HTML embed Plugin (NPM)
Renders links to <iframe src="...">
via npm:
npm install ckeditor5-iframe --save-dev
via yarn:
yarn install ckeditor5-iframe --dev
In your editor build / configuration:
import IframeEmbed from "ckeditor5-iframe/src/iframeembed";
ClassicEditor.create(document.querySelector("#editor"), {
plugins: [Essentials, Paragraph, Bold, Italic, IframeEmbed],
toolbar: ["bold", "italic", "iframeEmbed"],
});
Passing true
to iframeEmbed.showPreviews
will enable previewing.
import IframeEmbed from "ckeditor5-iframe/src/iframeembed";
ClassicEditor.create(document.querySelector("#editor"), {
plugins: [Essentials, Paragraph, Bold, Italic, IframeEmbed],
toolbar: ["bold", "italic", "iframeEmbed"],
iframeEmbed: {
showPreviews: true,
},
});
The minimum dimensions are tweakable via CSS variables --ck-iframe-embed-content-min-height
and --ck-iframe-embed-content-min-width
.
<figure class="iframe-embed">
<iframe src="https://www.google.com">
</figure>
To boot up a development loop, clone the repo, install the packages via yarn
, yarn start
and go to http://localhost:8080
From here, you can customize demo/
's app.js
and index.html
as well as
files inside src/
(the plugin code itself) and files will be automatically
rebuilt. You still may need to refresh.
The window.editor
can access the
ClassicEditor
object, e.g. editor.getData()
can retrieve the output HTML.
Icon: https://iconify.design/icon-sets/mdi/iframe.html, Open Font License
FAQs
iframe feature for CKEditor 5.
We found that ckeditor5-iframe demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.