-
大小: 988KB文件类型: .rar金币: 1下载: 0 次发布日期: 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连连看 - Jquery仿淘宝左右上下两种图片轮播效
-
ja
vasc ript编码规范 -
ja
vasc ript 动态隐藏、显示DIV 页面 -
ja
vasc ript脚本获取加速度传感器数 -
msgbox for ja
vasc ript - CryptoJS v3.1.2+Java前后台加解密
- JSF/JDBC试题管理系统 netbeans & java DB
- 基于java的arcgis server开发
-
ja
vasc ript代码生成器 - jQuery时间输入插件
-
基于ja
vasc ript实现简单的随机抽奖 -
Google_ja
vasc ript_编码规范指南7022 -
ja
vasc ript实现的简单的计算器web -
ja
vasc ript语言精粹.源代码 - java写的大附件上传控件超牛逼
-
ja
vasc ript网页特效3拉幕效果 - JS获取json文件内容并处理参考
-
ja
vasc ript仿淘宝购物车代码 -
ja
vasc ript小技巧一箩筐 - jquery-qrcode-0.14.0.js
-
ja
vasc ript教程--从入门到精通.pdf - JavaEE软件工程师简历
- 中国行政区域省市区json(带code,全拼
-
ArcGis-ja
vasc ript最全中文API - 模糊查询js
-
ja
vasc ript版-解释翻译Cron表达式代 -
log4ja
vasc ript -
这是一个用ja
vasc ript和css做的网页 -
Google ja
vasc ript 编码规范指南
评论
共有 条评论