http://i.egotop.com/test_fckeditor.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
.hidd {
display:none;
}
</style>
<title>fckeditor test</title>
<body>
<div id='dd_1'>test text 1</div>
<div id='df_1'></div>
<div class='ee' did='1'>edit</div>
<div id='dd_2' >test text 2</div>
<div id='df_2'></div>
<div class='ee' did='2'>edit</div>
<div id='dd_3' >test text 3</div>
<div id='df_3'></div>
<div class='ee' did='3'>edit</div>
<div class='edit_ui hidd'>
<textarea id='da'></textarea>
</div>
<script src="/js/jquery-pack.js" type="text/javascript"></script>
<script src="/lib/fckeditor/fckeditor.js" type="text/javascript" ></script>
<script>
$(function() {
oFCKeditor = new FCKeditor('da') ;
oFCKeditor.BasePath = "/lib/fckeditor/" ;
oFCKeditor.ReplaceTextarea();
$('.ee').click(function () {
did=$(this).attr('did');
$('.edit_ui').appendTo($('#df_'+did));
$('.edit_ui').show();
ContentStr=$('#dd_'+did).html();
var oEditor = FCKeditorAPI.GetInstance('da') ;
oEditor.SetHTML(ContentStr) ;
});
});
</script>
</body>
</html>
