资源简介
FCKeditor 2.5版本的编辑器。
代码片段和文件信息
“““
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 re
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 += “ “
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2017-03-01 13:25 FCKeditor_2.5\
目录 0 2017-03-01 13:22 FCKeditor_2.5\editor\
目录 0 2017-03-01 13:22 FCKeditor_2.5\editor\css\
目录 0 2017-03-01 13:22 FCKeditor_2.5\editor\css\behaviors\
文件 236 2007-12-01 02:25 FCKeditor_2.5\editor\css\behaviors\disablehandles.htc
文件 822 2007-12-01 02:25 FCKeditor_2.5\editor\css\behaviors\showtableborders.htc
文件 2154 2007-11-24 13:37 FCKeditor_2.5\editor\css\fck_editorarea.css
文件 3765 2007-10-02 18:05 FCKeditor_2.5\editor\css\fck_internal.css
文件 1514 2007-02-16 15:49 FCKeditor_2.5\editor\css\fck_showtableborders_gecko.css
目录 0 2017-03-01 13:22 FCKeditor_2.5\editor\css\images\
文件 288 2007-12-01 02:25 FCKeditor_2.5\editor\css\images\block_address.png
文件 293 2007-12-01 02:25 FCKeditor_2.5\editor\css\images\block_blockquote.png
文件 229 2007-12-01 02:25 FCKeditor_2.5\editor\css\images\block_div.png
文件 218 2007-12-01 02:25 FCKeditor_2.5\editor\css\images\block_h1.png
文件 220 2007-12-01 02:25 FCKeditor_2.5\editor\css\images\block_h2.png
文件 219 2007-12-01 02:25 FCKeditor_2.5\editor\css\images\block_h3.png
文件 229 2007-12-01 02:25 FCKeditor_2.5\editor\css\images\block_h4.png
文件 236 2007-12-01 02:25 FCKeditor_2.5\editor\css\images\block_h5.png
文件 216 2007-12-01 02:25 FCKeditor_2.5\editor\css\images\block_h6.png
文件 205 2007-12-01 02:25 FCKeditor_2.5\editor\css\images\block_p.png
文件 223 2007-12-01 02:25 FCKeditor_2.5\editor\css\images\block_pre.png
文件 184 2007-12-01 02:25 FCKeditor_2.5\editor\css\images\fck_anchor.gif
文件 599 2007-12-01 02:25 FCKeditor_2.5\editor\css\images\fck_flashlogo.gif
文件 105 2007-12-01 02:25 FCKeditor_2.5\editor\css\images\fck_hiddenfield.gif
文件 54 2007-12-01 02:25 FCKeditor_2.5\editor\css\images\fck_pagebreak.gif
目录 0 2017-03-01 13:22 FCKeditor_2.5\editor\dialog\
目录 0 2017-03-01 13:22 FCKeditor_2.5\editor\dialog\common\
文件 1590 2007-09-29 16:13 FCKeditor_2.5\editor\dialog\common\fck_dialog_common.css
文件 4356 2007-10-23 17:00 FCKeditor_2.5\editor\dialog\common\fck_dialog_common.js
目录 0 2017-03-01 13:22 FCKeditor_2.5\editor\dialog\common\images\
文件 74 2007-12-01 02:25 FCKeditor_2.5\editor\dialog\common\images\locked.gif
............此处省略577个文件信息
相关资源
- 基于Ogre的场景编辑器OgreSE源代码+
- [原创]FC专用地图编辑器(发布V2.8 )
- 征途tbl编辑器
- 公式编辑器
- 秀丸hidemaru
- .net百度编辑器UEditor)上传图片跟上次
- TinyMCE 4.7.13.zip
- ssm开发购物商城web项目代码+详细注释
- Shader Forge v1.28 -Unity最欢迎的着色编辑
- 福昕高级PDF编辑器企业版 v9.3.0.10826
- .NET程序编辑器(Reflexil) v1.6
- eWebeditor 修正版 (解决在IE9-IE11 Chro
- 封边机屏 FATEK 编辑器+ 程序
- PDF编辑器破解版-完美
- mac专用textwrangler文本编辑器
- 迅捷CAD编辑器离线包
- swift-PSImageEditors一个简而至美的图片编
- GSD editor V5.0_gsd编辑器.rar
- ueditor for bos
- 代码编辑器(支持自动缩进,语法高
- EDID 生成器
- Qt实现的一个文本编辑器
- SSM整合KindEditor-4.11编辑器
- Uedit32编辑器v11.00a简体中文版带注册机
- War3ModelEditor源码
- 一款非常小巧的pdf编辑器,可以对p
- MagicEXIF元数据编辑器破解
- notepad++32位
- Microsoft 公式编辑器 ——Microsoft equa
- MathType_公式编辑器
评论
共有 条评论