Comments (5)
Hi, thanks for reaching out. This seems to be related to: ezyang/htmlpurifier#302. CKEditor 5 uses oembed
to add media (CKEditor 4 used iframe, which is why it worked there). We’ll talk about options internally, and I’ll let you know once we’ve done so.
from ckeditor.
@i-just Ahh, yep. Dang. Well thank you for that update, I appreciate it!
from ckeditor.
Craft 3.7.66 and 4.3.9 are out with an update to the HTML Purifier config to allow oembed
tags (via craftcms/cms#12675). There’s also a new Embedding Videos/Media in CKEditor 5 section in the plugin readme.
from ckeditor.
We're on Craft 4.5.5 but YouTube video's are always stripped out when using HTML purifier, regardless of what config is used.
from ckeditor.
4.5.9 also not working unless uncheck the Purify HTML option in the field.
"HTML.SafeIframe": true,
"URI.SafeIframeRegexp": "%^(https?:)?//(www\\.youtube\\.com/embed/|www\\.youtube\\.com/watch\\?v=.+|youtu\\.be/.+|www\\.youtube(?:-nocookie)?\\.com/embed/|player\\.vimeo\\.com/video/)%"
Add this to your htmlpurifier json config @FrDH and try again
from ckeditor.
Related Issues (20)
- Live preview is not triggered when using panel features HOT 4
- Adding id attribute to text or headings
- Twig Runtime Error – Twig\Error\RuntimeError Calling unknown method: craft\ckeditor\CkeConfig::listPlugin() HOT 3
- Link option "Link to an asset" is missing when CKEditor field is in a matrix block. HOT 3
- [4.0] Unable to initialize field without Element HOT 2
- Styles dropdown preview broken HOT 1
- [4.x] New Entry dropdown defaults to alphabetical ordering instead of the order set in field settings HOT 2
- [4.x] Editing copy/pasted embed entries will edit both the original and copied entry HOT 3
- Element without getFieldLayout results in an error HOT 2
- [4.x] In Craft 5, a nested entry whose entry type has since been deleted from Craft throws an error on the back-end and the front-end HOT 2
- [4.x] Images/assets button is missing from configurable ckeditor selection of toolbar items HOT 6
- Linking to Craft Entry appends persistent hashtag #entry:77@1:url HOT 4
- [4.x]: Error: Setting unknown property: craft\ckeditor\Field::configFile HOT 2
- Failed to run php craft ckeditor/convert: exit status 1 HOT 10
- Custom Config Not Appying to Field HOT 5
- FR: MODIFY_PURIFIER_CONFIG HOT 3
- Migrating Redactor Variables to CKEditor Placeholder HOT 3
- Iniciar sesión en la aplicación YouTube en una smart TV o videoconsola
- ckeditor/convert redactor to ckeditor issue with matrix feilds HOT 1
- Adjusting CkEditor Config leads to Exception HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ckeditor.