动易html在线编辑器,动易CMS静态页调用FCK编辑器的代码

动易CMS静态页调用FCK编辑器的代码

文章作者:网友投稿 发布时间:2009-10-25 11:25:32 来源:网络

烈火网( LieHuo.Net )教程 最近有用户想实现AJAX写库,前台的文本框想替换成FCK编辑器,现在给出静态页调用FCK的一个参考例子,有兴趣的用户可以参考一下: 以下为引用的内容: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/D

烈火网(LieHuo.Net)教程 最近有用户想实现AJAX写库,前台的文本框想替换成FCK编辑器,现在给出静态页调用FCK的一个参考例子,有兴趣的用户可以参考一下:

以下为引用的内容:

FCKeditor - Sample - LIEHUO.NET

//修改为自己的src

window.onload = function()

{

// Automatically calculates the editor base path based on the _samples directory.

// This is usefull only for these samples. A real application should use something like this:

// oFCKeditor.BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value.

var sBasePath = "./fckeditor/" ;//这里修改为你网站的fck编辑器文件夹的相对路径

var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ;

oFCKeditor.BasePath = sBasePath ;

oFCKeditor.ReplaceTextarea() ;

}

function btnclick()

{

var oEditor = FCKeditorAPI.GetInstance('FCKeditor1') ;

// Get the editor contents in XHTML.

alert( oEditor.GetXHTML( true ) ) ; // "true" means you want it formatted.获取fck编辑器的值的方法

}

<p>This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
动易网站源码<!--#include file="Start.asp"--> <!--#include file="Include/PowerEasy.Cache.asp"--> <!--#include file="Include/PowerEasy.Channel.asp"--> <!--#include file="Include/PowerEasy.Class.asp"--> <!--#include file="Include/PowerEasy.Special.asp"--> <!--#include file="Include/PowerEasy.Article.asp"--> <!--#include file="Include/PowerEasy.Soft.asp"--> <!--#include file="Include/PowerEasy.Photo.asp"--> <!--#include file="Include/PowerEasy.Product.asp"--> <!--#include file="Include/PowerEasy.SiteIndex.asp"--> <!--#include file="Include/PowerEasy.Common.Front.asp"--> <% '************************************************************** ' Software name: PowerEasy SiteWeaver ' Web: http://www.powereasy.net ' Copyright (C) 2005-2009 佛山市动易网络科技有限公司 版权所有 '************************************************************** ChannelID = 0 If fso.FileExists(Server.mappath("NotInsalled.txt")) Then Response.Write "<li>请先运行 <a href='Install.asp'>Install.asp</a> 以进行系统安装过程!</li><br/><br/>" Response.Write "<li>如果你已经反复运行此程序,但仍然出现此提示,请使用FTP工具手动删除 NotInstalled.txt 文件。</li>" Response.End End If If FileName_SiteIndex <> "Index.asp" Then Call CloseConn Response.Redirect FileName_SiteIndex Else If CurrentPage > 1 Or PE_Cache.CacheIsEmpty("Site_Index") Then Call GetHTML_SiteIndex If CurrentPage = 1 Then PE_Cache.SetValue "Site_Index", strHtml Else strHtml = PE_Cache.GetValue("Site_Index") End If Response.Write strHtml End If Call CloseConn %>

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值