资源简介

留言板中留言的模块,有表情,图片,大部分的文字处理都有...

资源截图

代码片段和文件信息

“““
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 += “yle=\“width: %s; height: %s;\“ wrap=\“virtual\“>%s“ % (
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.xml

     文件       1801  2007-03-01 23:55  FCKeditor_2.4.3\fckeditor\fckstyles.xml

     文件       2959  2007-03-01 23:55  FCKeditor_2.4.3\fckeditor\fcktemplates.xml

     文件       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个文件信息

评论

共有 条评论