Wysiwyg No base64

Component ID

1909644

Component name

Wysiwyg No base64

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

Firefox allows users to drag or copy images into wysiwyg editors and inserts the image inline as a base64 encoded data string.

Because of the way drupal text filters work, this can end up filling your database with several megabytes and hit your sites' performance when the filters try to process the encoded strings.

There are other solutions that makes good use of this functionality, but in case you don't want to allow image uploads and inline images, the best practice is to avoid those images ever appearing in the editor.

This module consists of a plugin for ckeditor based on http://drupal.org/node/1193036#comment-6623188, that removes the base64 string before the image is even shown in the editor.