volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

HTML editor stripping out code

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

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
error 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.