fckeditor可以获取内容,但是如何将修改以后的数据保存呢?
附获取内容的代码:<tdvalign="top"class="ziti03">文章内容:</td><tdCOLSPAN="2"><textareaid="webimg12...
附获取内容的代码:
<td valign="top" class="ziti03">文章内容:</td>
<td COLSPAN="2"> <textarea id="webimg12" name="content"
cols="45" rows="5"><% = Server.HtmlEncode(rs("neirong"))
%></textarea>
<script type="text/javascript">
showFCKeditor();
//显示FCKeditor编辑器,content为文本域id
function showFCKeditor(){
var oFCKeditor = new FCKeditor('webimg12');//content为输入框的id,用来获取编辑器的值
oFCKeditor.BasePath = "fckeditor/";//编辑器的路径,我的与后台网页在同一个目录
oFCKeditor.Height = "450";
oFCKeditor.Width = "100%";
oFCKeditor.ReplaceTextarea();
}
function getFCKeditorValue(textareaID){
var fckEditor = FCKeditorAPI.GetInstance(textareaID);
var fckEditorValue = fckEditor.EditorDocument.body.innerHTML;
return fckEditorValue
}
function setFCKeditorValue(str){
var fckEditor = FCKeditorAPI.GetInstance("webimg12");
fckEditor.EditorDocument.body.innerHTML = str;
}
</script></td>
程序是ASP程序。 展开
<td valign="top" class="ziti03">文章内容:</td>
<td COLSPAN="2"> <textarea id="webimg12" name="content"
cols="45" rows="5"><% = Server.HtmlEncode(rs("neirong"))
%></textarea>
<script type="text/javascript">
showFCKeditor();
//显示FCKeditor编辑器,content为文本域id
function showFCKeditor(){
var oFCKeditor = new FCKeditor('webimg12');//content为输入框的id,用来获取编辑器的值
oFCKeditor.BasePath = "fckeditor/";//编辑器的路径,我的与后台网页在同一个目录
oFCKeditor.Height = "450";
oFCKeditor.Width = "100%";
oFCKeditor.ReplaceTextarea();
}
function getFCKeditorValue(textareaID){
var fckEditor = FCKeditorAPI.GetInstance(textareaID);
var fckEditorValue = fckEditor.EditorDocument.body.innerHTML;
return fckEditorValue
}
function setFCKeditorValue(str){
var fckEditor = FCKeditorAPI.GetInstance("webimg12");
fckEditor.EditorDocument.body.innerHTML = str;
}
</script></td>
程序是ASP程序。 展开
1个回答
2015-07-27
展开全部
public static void main(String[] args) {
int m = 1;
for (int i=1; i<=5; i++) {
m = m * i;
}
System.out.print(m);
}
int m = 1;
for (int i=1; i<=5; i++) {
m = m * i;
}
System.out.print(m);
}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询