2008-03-13
fckeditor 在前台页面里如何获取,从数据库里取到的值?
关键字: fckeditor 取值 页面
这个页面里这样的
<FCK:editor id="info_demo" basePath="../fckeditor/" width="100%" height="500" toolbarSet = "Default" >
</FCK:editor>
<input type="hidden" name="info_demo" value="">
<script language="javascript" type="text/javascript">
var oEditor = FCKeditorAPI.GetInstance('info_demo') ;
var str = oEditor.GetXHTML();
form.info_demo.value=str;
</script>
我从数据库里取得一个"info_demo"值,如何能把它返回到页面上?
我曾把取到的值写到下面"X"的地方,但是显示出来的都是html代码,我想可能这个方法不对.
<FCK:editor id="info_demo" basePath="../fckeditor/" width="100%" height="500" toolbarSet = "Default" >
X
</FCK:editor>
谁能告诉我这个问题如何解决?
<FCK:editor id="info_demo" basePath="../fckeditor/" width="100%" height="500" toolbarSet = "Default" >
</FCK:editor>
<input type="hidden" name="info_demo" value="">
<script language="javascript" type="text/javascript">
var oEditor = FCKeditorAPI.GetInstance('info_demo') ;
var str = oEditor.GetXHTML();
form.info_demo.value=str;
</script>
我从数据库里取得一个"info_demo"值,如何能把它返回到页面上?
我曾把取到的值写到下面"X"的地方,但是显示出来的都是html代码,我想可能这个方法不对.
<FCK:editor id="info_demo" basePath="../fckeditor/" width="100%" height="500" toolbarSet = "Default" >
X
</FCK:editor>
谁能告诉我这个问题如何解决?
评论
6er1
2008-03-14
<fck:editor id="doc" basePath="${ctx}/fck/" width="800px" height="500px">
${doc}
</fck:editor> 这样就行了
lsk
2008-03-14
你用Fck 的时候有一个 textarea ..
把从数据库得到的值赋给这个textarea 就好了.
把从数据库得到的值赋给这个textarea 就好了.
xly_971223
2008-03-14
FCK:editor 有没有个value属性
发表评论
提醒: 该博客已发表在公共论坛,博客所有留言会成为论坛回贴,留言请注意遵守论坛发贴规则
- 浏览: 157 次

- 详细资料
搜索本博客
最近加入圈子
最新评论
-
fckeditor 在前台页面里如 ...
<fck:editor id="doc" basePa ...
-- by 6er1 -
fckeditor 在前台页面里如 ...
你用Fck 的时候有一个 textarea .. 把从数据库得到的值赋给这个te ...
-- by lsk -
fckeditor 在前台页面里如 ...
FCK:editor 有没有个value属性
-- by xly_971223






评论排行榜