-
大小: 988KB文件类型: .rar金币: 2下载: 1 次发布日期: 2021-05-22
- 语言: JavaScript
- 标签: java javascript jsp 留言板
资源简介
留言板中留言的模块,有表情,图片,大部分的文字处理都有...
代码片段和文件信息
“““
FCKeditor - The text editor for Internet - http://www.fckeditor.net
Copyright (C) 2003-2007 Frederico Caldeira Knabben
== BEGIN LICENSE ==
Licensed under the terms of any of the following licenses at your
choice:
- GNU General Public License Version 2 or later (the “GPL“)
http://www.gnu.org/licenses/gpl.html
- GNU Lesser General Public License Version 2.1 or later (the “LGPL“)
http://www.gnu.org/licenses/lgpl.html
- Mozilla Public License Version 1.1 or later (the “MPL“)
http://www.mozilla.org/MPL/MPL-1.1.html
== END LICENSE ==
This is the integration file for Python.
“““
import cgi
import os
import string
def escape(text replace=string.replace):
“““Converts the special characters ‘<‘ ‘>‘ and ‘&‘.
RFC 1866 specifies that these characters be represented
in HTML as < > and & respectively. In Python
1.5 we use the new string.replace() function for speed.
“““
text = replace(text ‘&‘ ‘&‘) # must be done 1st
text = replace(text ‘<‘ ‘<‘)
text = replace(text ‘>‘ ‘>‘)
text = replace(text ‘“‘ ‘"‘)
text = replace(text “‘“ ‘‘‘)
return text
# The FCKeditor class
class FCKeditor(object):
def __init__(self instanceName):
self.InstanceName = instanceName
self.basePath = ‘/fckeditor/‘
self.Width = ‘100%‘
self.Height = ‘200‘
self.ToolbarSet = ‘Default‘
self.Value = ‘‘;
self.Config = {}
def Create(self):
return self.CreateHtml()
def CreateHtml(self):
HtmlValue = escape(self.Value)
Html = ““
if (self.IsCompatible()):
File = “fckeditor.html“
link = “%seditor/%s?InstanceName=%s“ % (
self.basePath
File
self.InstanceName
)
if (self.ToolbarSet is not None):
link += “&ToolBar=%s“ % self.ToolbarSet
# Render the linked hidden field
Html += “yle=\“display:none\“ />“ % (
self.InstanceName
self.InstanceName
HtmlValue
)
# Render the configurations hidden field
Html += “yle=\“display:none\“ />“ % (
self.InstanceName
self.GetConfigFieldString()
)
# Render the editor iframe
Html += “rame id=\“%s\__frame\“ src=\“%s\“ width=\“%s\“ height=\“%s\“ frameborder=\“0\“ scrolling=\“no\“> rame>“ % (
self.InstanceName
link
self.Width
self.Height
)
else:
if (self.Width.find(“%%“) < 0):
WidthCSS = “%spx“ % self.Width
else:
WidthCSS = self.Width
if (self.Height.find(“%%“) < 0):
HeightCSS = “%spx“ % self.Height
else:
HeightCSS = self.Height
Html += ““ % (
self.InstanceName
WidthCSS
HeightCSS
HtmlValue
)
Html += “ “
return Html
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 10333 2007-06-13 20:56 FCKeditor_2.4.3\fckeditor\fckconfig.js
文件 4012 2007-06-14 14:08 FCKeditor_2.4.3\fckeditor\fckeditor.afp
文件 5485 2007-06-13 20:56 FCKeditor_2.4.3\fckeditor\fckeditor.asp
文件 9074 2007-06-13 20:56 FCKeditor_2.4.3\fckeditor\fckeditor.cfc
文件 7997 2007-06-13 20:56 FCKeditor_2.4.3\fckeditor\fckeditor.cfm
文件 6900 2007-06-14 14:08 FCKeditor_2.4.3\fckeditor\fckeditor.js
文件 3495 2007-03-01 23:55 FCKeditor_2.4.3\fckeditor\fckeditor.lasso
文件 960 2007-03-01 23:55 FCKeditor_2.4.3\fckeditor\fckeditor.php
文件 3336 2007-03-01 23:55 FCKeditor_2.4.3\fckeditor\fckeditor.pl
文件 4032 2007-03-01 23:55 FCKeditor_2.4.3\fckeditor\fckeditor.py
文件 4197 2007-03-01 23:55 FCKeditor_2.4.3\fckeditor\fckeditor_php4.php
文件 4253 2007-03-01 23:55 FCKeditor_2.4.3\fckeditor\fckeditor_php5.php
文件 11726 2007-06-03 20:01 FCKeditor_2.4.3\fckeditor\fckpackager.xm
文件 1801 2007-03-01 23:55 FCKeditor_2.4.3\fckeditor\fckst
文件 2959 2007-03-01 23:55 FCKeditor_2.4.3\fckeditor\fcktemplates.xm
文件 1539 2007-06-13 20:56 FCKeditor_2.4.3\fckeditor\htaccess.txt
文件 67715 2007-03-01 23:55 FCKeditor_2.4.3\fckeditor\license.txt
文件 1262 2007-03-01 23:55 FCKeditor_2.4.3\fckeditor\_documentation.html
文件 1298 2007-03-01 23:55 FCKeditor_2.4.3\fckeditor\_upgrade.html
文件 222618 2007-06-13 20:56 FCKeditor_2.4.3\fckeditor\_whatsnew.html
文件 4086 2007-03-01 23:55 FCKeditor_2.4.3\fckeditor\editor\fckdebug.html
文件 8584 2007-03-02 00:01 FCKeditor_2.4.3\fckeditor\editor\fckdialog.html
文件 6470 2007-06-03 20:01 FCKeditor_2.4.3\fckeditor\editor\fckeditor.html
文件 10918 2007-06-14 14:08 FCKeditor_2.4.3\fckeditor\editor\fckeditor.original.html
文件 2040 2007-03-01 23:55 FCKeditor_2.4.3\fckeditor\editor\css\fck_editorarea.css
文件 2550 2007-06-13 20:56 FCKeditor_2.4.3\fckeditor\editor\css\fck_internal.css
文件 1514 2007-03-01 23:55 FCKeditor_2.4.3\fckeditor\editor\css\fck_showtableborders_gecko.css
文件 236 2007-06-14 14:08 FCKeditor_2.4.3\fckeditor\editor\css\behaviors\disablehandles.htc
文件 822 2007-06-14 14:08 FCKeditor_2.4.3\fckeditor\editor\css\behaviors\showtableborders.htc
..AD... 0 2007-12-15 08:55 FCKeditor_2.4.3\fckeditor\editor\css\behaviors
............此处省略524个文件信息
相关资源
-
ja
vasc ript教程--从入门到精通(P -
ja
vasc ript高级程序设计第3版.pdf带 - java web租车系统.7z
- 十万词汇英汉词典词库JSON格式
-
ja
vasc ript程序设计——事件 -
JS ba
se64编码/解码 -
程序员常用ja
vasc ript特效 -
ja
vasc ript 高级程序设计第三版源码 - java-js-混淆编译-反编译工具
-
.NET的ja
vasc ript运行库ja vasc ri - QQ音乐播放器.rar
- 简单实用的组织结构图表jQuery插件
-
ja
vasc ript网上书店项目,毕业设计 -
ja
vasc ript DOM编程艺术第二版英文 -
ja
vasc ript权威指南第六版mobi格式 -
ja
vasc ript设计模式与开发实践 高清 -
Web前端开发精品课_ja
vasc ript基础教 -
Refactoring ja
vasc ript Turning Bad Code -
Eloquent ja
vasc ript(3rd) 无水印原版 -
Beginning ja
vasc ript with DOM sc ripti - 天猫动态页面
-
sm3加密ja
vasc ript+java版本支持中文 -
北大青鸟ja
vasc ript内部测试题 -
ja
vasc ript高级程序设计源代码 -
300个ja
vasc ript源码 -
学习ja
vasc ript数据结构与算法,完 -
ja
vasc ript用的最牛逼的100个经典 -
ja
vasc ript高级程序设计第三版源码 -
ja
vasc ript - The Definitive Guide 4th ed -
ja
vasc ript权威指南第六版kindle
评论
共有 条评论