I have a problem with "HTMLEncode".
My work steps....
1. I write some html tag in editor
it's ok
2. turn mode to Source view
it's ok
3. submit and store source to database
it's ok
4. select the stored data from database
it's ok
5. restore the source to editor
then problem.
The tags What I wrote in Editor doest not keep the original format
<script type="text/javascript">
window.onload = function(){
var oFCKeditor = new FCKeditor( 'contents' ) ;
oFCKeditor.BasePath = '/cms/modules/editor/' ;
oFCKeditor.ToolbarSet='cms1';
oFCKeditor.Config['SkinPath'] = '/cms/modules/editor/editor/skins/silver/' ;
oFCKeditor.Height = "100%" ;
oFCKeditor.Width = "100%" ;
oFCKeditor.UseBROnCarriageReturn = true ;
oFCKeditor.ReplaceTextarea() ;
}
</script>
<input type="hidden" name="editer_mode" value="fck">
<textarea name="tcontents" id="contents" class="contents" style="width:0;height:0">
<%=v_content%>
</textarea>
What i should do to keep the original text in editor mode?
-------------------------------------------
http://ksok.co.kr/steps.jpg <--- refence
Tue, 05/23/2006 - 21:19
#1