Try our conversational search powered by Generative AI!

HTML editor stripping out code

Vote:
 

Hello,

Am using the HTML editor within edit mode to do some tweaking on one of my pages - however it strips things out.

All I'm trying to do is add data-lightbox="image-1" within the HTML editor, but it removes it when I press save.

Is there no way we can assign the page not to be so strict in its conversion to epiServer code? 

Many Thanks.

Marc.

#73489
Jul 24, 2013 11:10
Vote:
 

You need to allow data-attributes by adding your own TinyMCE configuration options. These links should get you there:

http://stackoverflow.com/questions/7744903/tinymce-allow-data-attribute

http://krompaco.nu/2010/05/alter-default-initoptions-for-tinymce-in-episerver-6/

#73562
Jul 29, 2013 15:00
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.