Closed jsolly closed 2 years ago
I added the GeneralHtmlSupport plugin in version 0.1.4
For anyone reading this, you can enable it by adding this to your CKeditor config
"extends": {
"htmlSupport": {
"allow": [
{"name": "/.*/", "attributes": True, "classes": True, "styles": True}
]
},
This is coming straight from the ckeditor docs https://ckeditor.com/docs/ckeditor5/latest/features/general-html-support.html
Context
It would be great if we had more control over what elements are allowed within CKeditor In the current version, I can't add an \<iframe>. This seems like a natural progression since source editing was turned on recently.
According to the ckeditor docs:
Things to consider
There are security implications, but I think it makes sense to provide users a way to enable these elements and assume the risks themselves.