Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > StaticHTML web part changing my html View modes: 
User avatar
Member
Member
dford-catapultrpm - 1/29/2014 10:11:13 AM
   
StaticHTML web part changing my html
I am using this third party Javascript library called responsive-images.js. For this library, i have to use the attributes data-src-base='' and data-src='' in the image tag. Everything works when i save the html. The issue i have is when i open it to edit the html. My img tag gets changed from:
<img alt="Great Food to Gather Around" data-src-base='/Hormel/media/Hormel_Images/FebBusyDinner/' data-src='<768:beef-roast-mobile.png, >768:beef-roast-desktop.jpg' />

to this
<img alt="Great Food to Gather Around" data-="" data-src-base="/Hormel/media/Hormel_Images/FebBusyDinner/" src="<768:beef-roast-mobile.png, >768:beef-roast-desktop.jpg" />


For some reason the data-src='' gets split and now there is a data-="" attribute. Also, my < and > are being changed to the HTML codes for them. Is there some way i change stop this from happening?

User avatar
Kentico Consulting
Kentico Consulting
Kentico_RichardS - 1/30/2014 3:51:20 AM
   
RE:StaticHTML web part changing my html
Hi,

Thank you for your message.

This seems to be a CkEditor issue. I was also able to reproduce this behaviour. I would recommend you to create your own webpart which you would set these links manually without the CkEditor.

For that please see: http://devnet.kentico.com/docs/devguide/developing_web_parts.htm

Kind regards,
Richard Sustek