Discussions

Ask a Question
Back to All

Allow custom HTML attributes (data-...)

(edited)

For our lazy loading script, it would be nice to allow any HTML attributes in the WISIWYG editor (the editor seems to cut any attributes that aren't whitelisted). For example, we'd like to be able to save an image tag like

<img data-lazy="some/url">

Has anyone made this happen?