ventrian / News-Articles

News Articles for DNN has been helping DNN administrators to publish articles and blogs to their DNN portals since 2004.
MIT License
38 stars 24 forks source link

Do not allow images pasted into the text #25

Closed vmasanas closed 3 years ago

vmasanas commented 5 years ago

We've found in a number of sites that people just copy/past images from their image editor. This results on the image being embedded on the html as Base64. This causes the html to grow a lot and we've had some performance problems on the database then.

Would it be interesting to have a global option "Allow embedded images" that the admin could enable/disable for this? Is the setting were enabled then it would keep doing the same as now. If disabled, it would render an error when trying to save the Article.

What do you think?

Timo-Breumelhof commented 5 years ago

I think you can prevent this using a setting in CKEditor..

vmasanas commented 5 years ago

Any idea where this setting is?

Timo-Breumelhof commented 5 years ago

I have done the opposite for Open Content as it strips out anything you enter in the Source view by default. That setting is "extraAllowedContent" I forgot the name of the setting that does the opposite but it does exist.