Design and CSS styles
Version 7.x > Design and CSS styles > TEXT WEBPART CHANGE COD AFTER SAVE PAGE !! View modes: 
User avatar
Member
Member
David*jon - 9/29/2013 12:46:34 AM
   
TEXT WEBPART CHANGE COD AFTER SAVE PAGE !!
Hi all..

plz i have small issue hope you guide me to solve it..
when i pest this code
((
<style type="text/css">
dl.image_map {display:block; width:227px; height:59px; background:url("~/menu_pic/EN_ICONS/EN-ICON_03.aspx?width=227&height=59"); position:relative; margin:2px auto 2px auto;}
a.LINK0 {left:93px; top:5px; background:transparent;}
a.LINK0 {display:block; width:35px; height:0; padding-top:43px; overflow:hidden; position:absolute;}
a.LINK0:hover {background:url('~/menu_pic/tw.aspx? no-repeat'); border:0px dashed white; color:white}
a.LINK1 {left:139px; top:5px; background:transparent;}
a.LINK1 {display:block; width:35px; height:0; padding-top:41px; overflow:hidden; position:absolute;}
a.LINK1:hover {background:url('~/menu_pic/yt.aspx? no-repeat'); border:0px dashed white; color:white}
a.LINK2 {left:183px; top:5px; background:transparent;}
a.LINK2 {display:block; width:35px; height:0; padding-top:43px; overflow:hidden; position:absolute;}
a.LINK2:hover {background:url('~/menu_pic/fb.aspx? no-repeat'); border:0px dashed white; color:white}
</style>

<dl class="image_map">
<dd><a class="LINK2" title="" href="http://www.facebook.com/#!/USER" target="_blank"></a></dd>
<dd><a class="LINK1" title="" href="http://www.youtube.com/channel/UCAjOB3QcXkP-EH1f7OG?feature=results_main" target="_blank"></a></dd>
<dd><a class="LINK0" title="" href="https://twitter.com/USER" target="_blank"></a></dd>
</dl>
))


in side text webpart when i save page this cod work fine but if i save page once agine
it remove the last part of code

<dl class="image_map">
<dd><a class="LINK2" title="" href="http://www.facebook.com/#!/USER" target="_blank"></a></dd>
</style>
<dl class="image_map">
<dd>
 </dd>
<dd>
 </dd>
<dd>
 </dd>
</dl>
<a class="LINK1" title="" href="http://www.youtube.com/channel/UCAjOB3QcXkP-EH1f7OG?feature=results_main" target="_blank"></a></dd>
<dd><a class="LINK0" title="" href="https://twitter.com/USER" target="_blank"></a></dd>
</dl>


this will be like this

</style>
<dl class="image_map">
<dd>
 </dd>
<dd>
 </dd>
<dd>
 </dd>
</dl>

User avatar
Member
Member
kentico_sandroj - 10/1/2013 3:04:42 PM
   
RE:TEXT WEBPART CHANGE COD AFTER SAVE PAGE !!
Hello,

This behavior is a drawback of using the CKEditor; you may be able to change the configuration so that it doesn't reformat the text but there could be better solutions. Is there a reason why you are saving twice? Also, is this specific Web part a requirement or would any Web part work, e.g. Static HTML?

Best Regards,
Sandro

User avatar
Certified Developer 10
Certified Developer 10
josha-bpstudios - 12/20/2013 10:23:59 AM
   
RE:TEXT WEBPART CHANGE COD AFTER SAVE PAGE !!
Could you change the properties on the webpart to not use the output filter?