typo 5.0.3.98.1 → 5.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES-5.1 +54 -0
- data/app/apis/meta_weblog_service.rb +7 -6
- data/app/controllers/accounts_controller.rb +2 -1
- data/app/controllers/admin/content_controller.rb +45 -3
- data/app/controllers/admin/pages_controller.rb +1 -1
- data/app/controllers/admin/textfilters_controller.rb +4 -4
- data/app/controllers/admin/users_controller.rb +14 -2
- data/app/controllers/application.rb +4 -1
- data/app/controllers/articles_controller.rb +1 -3
- data/app/controllers/backend_controller.rb +2 -0
- data/app/controllers/comments_controller.rb +6 -0
- data/app/helpers/admin/base_helper.rb +24 -26
- data/app/helpers/admin/feedback_helper.rb +0 -20
- data/app/helpers/application_helper.rb +1 -0
- data/app/models/article.rb +2 -0
- data/app/models/blog.rb +1 -0
- data/app/models/blog_sweeper.rb +8 -9
- data/app/models/page_cache.rb +1 -0
- data/app/models/tag.rb +2 -2
- data/app/models/user.rb +5 -1
- data/app/views/admin/blacklist/destroy.html.erb +1 -1
- data/app/views/admin/categories/destroy.html.erb +1 -1
- data/app/views/admin/comments/destroy.html.erb +1 -1
- data/app/views/admin/content/_articles.html.erb +4 -4
- data/app/views/admin/content/_attachment.html.erb +6 -7
- data/app/views/admin/content/_drafts.html.erb +6 -0
- data/app/views/admin/content/_form.html.erb +47 -34
- data/app/views/admin/content/destroy.html.erb +1 -1
- data/app/views/admin/content/edit.html.erb +1 -1
- data/app/views/admin/content/index.html.erb +1 -6
- data/app/views/admin/content/new.html.erb +1 -1
- data/app/views/admin/pages/_form.html.erb +4 -3
- data/app/views/admin/pages/_pages.html.erb +3 -3
- data/app/views/admin/pages/destroy.html.erb +1 -1
- data/app/views/admin/resources/destroy.html.erb +1 -1
- data/app/views/admin/settings/index.html.erb +10 -0
- data/app/views/admin/shared/_edit.html.erb +1 -6
- data/app/views/admin/textfilters/destroy.html.erb +3 -0
- data/app/views/admin/textfilters/edit.html.erb +3 -1
- data/app/views/admin/textfilters/index.html.erb +1 -1
- data/app/views/admin/textfilters/new.html.erb +3 -1
- data/app/views/admin/trackbacks/show.html.erb +1 -1
- data/app/views/admin/users/destroy.html.erb +1 -1
- data/app/views/admin/users/edit.html.erb +1 -5
- data/app/views/admin/users/index.html.erb +1 -1
- data/app/views/articles/_comment_failed.html.erb +3 -0
- data/config/initializers/access_rules.rb +3 -3
- data/db/migrate/070_add_users_to_non_admins.rb +17 -0
- data/installer/rails_installer_defaults.yml +1 -1
- data/lib/tasks/release.rake +3 -3
- data/lib/typo_version.rb +1 -1
- data/public/images/admin/cancel.png +0 -0
- data/public/images/admin/checked.png +0 -0
- data/public/images/admin/delete.png +0 -0
- data/public/images/admin/edit.png +0 -0
- data/public/images/admin/show.png +0 -0
- data/public/javascripts/controls.js +2 -0
- data/public/javascripts/dragdrop.js +2 -0
- data/public/javascripts/effects.js +6 -4
- data/public/javascripts/fckeditor/editor/_source/classes/fckcontextmenu.js +13 -8
- data/public/javascripts/fckeditor/editor/_source/classes/fckdataprocessor.js +2 -2
- data/public/javascripts/fckeditor/editor/_source/classes/fckdocumentfragment_gecko.js +2 -2
- data/public/javascripts/fckeditor/editor/_source/classes/fckdocumentfragment_ie.js +2 -2
- data/public/javascripts/fckeditor/editor/_source/classes/fckdomrange.js +189 -79
- data/public/javascripts/fckeditor/editor/_source/classes/fckdomrange_gecko.js +4 -3
- data/public/javascripts/fckeditor/editor/_source/classes/fckdomrange_ie.js +16 -15
- data/public/javascripts/fckeditor/editor/_source/classes/fckdomrangeiterator.js +30 -9
- data/public/javascripts/fckeditor/editor/_source/classes/fckeditingarea.js +108 -90
- data/public/javascripts/fckeditor/editor/_source/classes/fckelementpath.js +22 -3
- data/public/javascripts/fckeditor/editor/_source/classes/fckenterkey.js +76 -38
- data/public/javascripts/fckeditor/editor/_source/classes/fckevents.js +7 -2
- data/public/javascripts/fckeditor/editor/_source/classes/fckhtmliterator.js +142 -0
- data/public/javascripts/fckeditor/editor/_source/classes/fckicon.js +2 -2
- data/public/javascripts/fckeditor/editor/_source/classes/fckiecleanup.js +1 -1
- data/public/javascripts/fckeditor/editor/_source/classes/fckimagepreloader.js +2 -2
- data/public/javascripts/fckeditor/editor/_source/classes/fckkeystrokehandler.js +3 -3
- data/public/javascripts/fckeditor/editor/_source/classes/fckmenublock.js +8 -5
- data/public/javascripts/fckeditor/editor/_source/classes/fckmenublockpanel.js +3 -3
- data/public/javascripts/fckeditor/editor/_source/classes/fckmenuitem.js +6 -5
- data/public/javascripts/fckeditor/editor/_source/classes/fckpanel.js +85 -38
- data/public/javascripts/fckeditor/editor/_source/classes/fckplugin.js +2 -2
- data/public/javascripts/fckeditor/editor/_source/classes/fckspecialcombo.js +7 -8
- data/public/javascripts/fckeditor/editor/_source/classes/fckstyle.js +180 -17
- data/public/javascripts/fckeditor/editor/_source/classes/fcktoolbar.js +2 -2
- data/public/javascripts/fckeditor/editor/_source/classes/fcktoolbarbreak_gecko.js +2 -2
- data/public/javascripts/fckeditor/editor/_source/classes/fcktoolbarbreak_ie.js +1 -1
- data/public/javascripts/fckeditor/editor/_source/classes/fcktoolbarbutton.js +9 -4
- data/public/javascripts/fckeditor/editor/_source/classes/fcktoolbarbuttonui.js +5 -1
- data/public/javascripts/fckeditor/editor/_source/classes/fcktoolbarfontformatcombo.js +3 -3
- data/public/javascripts/fckeditor/editor/_source/classes/fcktoolbarfontscombo.js +1 -1
- data/public/javascripts/fckeditor/editor/_source/classes/fcktoolbarfontsizecombo.js +1 -1
- data/public/javascripts/fckeditor/editor/_source/classes/fcktoolbarpanelbutton.js +15 -4
- data/public/javascripts/fckeditor/editor/_source/classes/fcktoolbarspecialcombo.js +5 -2
- data/public/javascripts/fckeditor/editor/_source/classes/fcktoolbarstylecombo.js +13 -13
- data/public/javascripts/fckeditor/editor/_source/classes/fckw3crange.js +17 -13
- data/public/javascripts/fckeditor/editor/_source/classes/fckxml.js +2 -2
- data/public/javascripts/fckeditor/editor/_source/classes/fckxml_gecko.js +28 -13
- data/public/javascripts/fckeditor/editor/_source/classes/fckxml_ie.js +2 -2
- data/public/javascripts/fckeditor/editor/_source/commandclasses/fck_othercommands.js +75 -19
- data/public/javascripts/fckeditor/editor/_source/commandclasses/fckblockquotecommand.js +64 -8
- data/public/javascripts/fckeditor/editor/_source/commandclasses/fckcorestylecommand.js +3 -1
- data/public/javascripts/fckeditor/editor/_source/commandclasses/fckfitwindow.js +2 -2
- data/public/javascripts/fckeditor/editor/_source/commandclasses/fckindentcommands.js +5 -3
- data/public/javascripts/fckeditor/editor/_source/commandclasses/fckjustifycommands.js +6 -6
- data/public/javascripts/fckeditor/editor/_source/commandclasses/fcklistcommands.js +4 -4
- data/public/javascripts/fckeditor/editor/_source/commandclasses/fcknamedcommand.js +3 -1
- data/public/javascripts/fckeditor/editor/_source/commandclasses/fckpasteplaintextcommand.js +3 -1
- data/public/javascripts/fckeditor/editor/_source/commandclasses/fckpastewordcommand.js +2 -2
- data/public/javascripts/fckeditor/editor/_source/commandclasses/fckremoveformatcommand.js +2 -2
- data/public/javascripts/fckeditor/editor/_source/commandclasses/fckshowblocks.js +7 -9
- data/public/javascripts/fckeditor/editor/_source/commandclasses/fckspellcheckcommand_gecko.js +4 -2
- data/public/javascripts/fckeditor/editor/_source/commandclasses/fckspellcheckcommand_ie.js +4 -2
- data/public/javascripts/fckeditor/editor/_source/commandclasses/fckstylecommand.js +3 -3
- data/public/javascripts/fckeditor/editor/_source/commandclasses/fcktablecommand.js +4 -4
- data/public/javascripts/fckeditor/editor/_source/commandclasses/fcktextcolorcommand.js +28 -10
- data/public/javascripts/fckeditor/editor/_source/fckconstants.js +1 -1
- data/public/javascripts/fckeditor/editor/_source/fckeditorapi.js +21 -13
- data/public/javascripts/fckeditor/editor/_source/fckjscoreextensions.js +5 -5
- data/public/javascripts/fckeditor/editor/_source/fckscriptloader.js +4 -4
- data/public/javascripts/fckeditor/editor/_source/internals/fck.js +148 -38
- data/public/javascripts/fckeditor/editor/_source/internals/fck_contextmenu.js +4 -4
- data/public/javascripts/fckeditor/editor/_source/internals/fck_gecko.js +45 -47
- data/public/javascripts/fckeditor/editor/_source/internals/fck_ie.js +50 -17
- data/public/javascripts/fckeditor/editor/_source/internals/fckbrowserinfo.js +4 -2
- data/public/javascripts/fckeditor/editor/_source/internals/fckcodeformatter.js +2 -2
- data/public/javascripts/fckeditor/editor/_source/internals/fckcommands.js +28 -28
- data/public/javascripts/fckeditor/editor/_source/internals/fckconfig.js +12 -13
- data/public/javascripts/fckeditor/editor/_source/internals/fckdebug.js +2 -2
- data/public/javascripts/fckeditor/editor/_source/internals/fckdialog.js +211 -15
- data/public/javascripts/fckeditor/editor/_source/internals/fckdocumentprocessor.js +63 -39
- data/public/javascripts/fckeditor/editor/_source/internals/fckdomtools.js +177 -37
- data/public/javascripts/fckeditor/editor/_source/internals/fcklanguagemanager.js +2 -1
- data/public/javascripts/fckeditor/editor/_source/internals/fcklisthandler.js +2 -2
- data/public/javascripts/fckeditor/editor/_source/internals/fcklistslib.js +5 -2
- data/public/javascripts/fckeditor/editor/_source/internals/fckplugins.js +2 -2
- data/public/javascripts/fckeditor/editor/_source/internals/fckregexlib.js +5 -2
- data/public/javascripts/fckeditor/editor/_source/internals/fckselection.js +3 -3
- data/public/javascripts/fckeditor/editor/_source/internals/fckselection_gecko.js +36 -27
- data/public/javascripts/fckeditor/editor/_source/internals/fckselection_ie.js +91 -17
- data/public/javascripts/fckeditor/editor/_source/internals/fckstyles.js +22 -13
- data/public/javascripts/fckeditor/editor/_source/internals/fcktablehandler.js +15 -15
- data/public/javascripts/fckeditor/editor/_source/internals/fcktablehandler_gecko.js +2 -2
- data/public/javascripts/fckeditor/editor/_source/internals/fcktablehandler_ie.js +2 -2
- data/public/javascripts/fckeditor/editor/_source/internals/fcktoolbaritems.js +1 -1
- data/public/javascripts/fckeditor/editor/_source/internals/fcktoolbarset.js +32 -6
- data/public/javascripts/fckeditor/editor/_source/internals/fcktools.js +181 -22
- data/public/javascripts/fckeditor/editor/_source/internals/fcktools_gecko.js +19 -7
- data/public/javascripts/fckeditor/editor/_source/internals/fcktools_ie.js +8 -2
- data/public/javascripts/fckeditor/editor/_source/internals/fckundo.js +8 -5
- data/public/javascripts/fckeditor/editor/_source/internals/fckurlparams.js +2 -2
- data/public/javascripts/fckeditor/editor/_source/internals/fckxhtml.js +116 -61
- data/public/javascripts/fckeditor/editor/_source/internals/fckxhtml_gecko.js +6 -10
- data/public/javascripts/fckeditor/editor/_source/internals/fckxhtml_ie.js +51 -56
- data/public/javascripts/fckeditor/editor/_source/internals/fckxhtmlentities.js +1 -1
- data/public/javascripts/fckeditor/editor/css/fck_editorarea.css +3 -2
- data/public/javascripts/fckeditor/editor/css/fck_internal.css +19 -2
- data/public/javascripts/fckeditor/editor/css/fck_showtableborders_gecko.css +8 -1
- data/public/javascripts/fckeditor/editor/css/images/fck_plugin.gif +0 -0
- data/public/javascripts/fckeditor/editor/dialog/common/fck_dialog_common.css +8 -1
- data/public/javascripts/fckeditor/editor/dialog/common/fck_dialog_common.js +199 -26
- data/public/javascripts/fckeditor/editor/dialog/fck_about.html +20 -14
- data/public/javascripts/fckeditor/editor/dialog/fck_about/sponsors/spellchecker_net.gif +0 -0
- data/public/javascripts/fckeditor/editor/dialog/fck_anchor.html +15 -10
- data/public/javascripts/fckeditor/editor/dialog/fck_button.html +9 -14
- data/public/javascripts/fckeditor/editor/dialog/fck_checkbox.html +8 -13
- data/public/javascripts/fckeditor/editor/dialog/fck_colorselector.html +4 -3
- data/public/javascripts/fckeditor/editor/dialog/fck_docprops.html +6 -6
- data/public/javascripts/fckeditor/editor/dialog/fck_docprops/fck_document_preview.html +1 -1
- data/public/javascripts/fckeditor/editor/dialog/fck_flash.html +9 -3
- data/public/javascripts/fckeditor/editor/dialog/fck_flash/fck_flash.js +18 -11
- data/public/javascripts/fckeditor/editor/dialog/fck_flash/fck_flash_preview.html +7 -3
- data/public/javascripts/fckeditor/editor/dialog/fck_form.html +7 -4
- data/public/javascripts/fckeditor/editor/dialog/fck_hiddenfield.html +12 -15
- data/public/javascripts/fckeditor/editor/dialog/fck_image.html +9 -3
- data/public/javascripts/fckeditor/editor/dialog/fck_image/fck_image.js +24 -12
- data/public/javascripts/fckeditor/editor/dialog/fck_image/fck_image_preview.html +24 -18
- data/public/javascripts/fckeditor/editor/dialog/fck_link.html +1 -1
- data/public/javascripts/fckeditor/editor/dialog/fck_link/fck_link.js +41 -20
- data/public/javascripts/fckeditor/editor/dialog/fck_listprop.html +8 -4
- data/public/javascripts/fckeditor/editor/dialog/fck_paste.html +53 -54
- data/public/javascripts/fckeditor/editor/dialog/fck_radiobutton.html +8 -13
- data/public/javascripts/fckeditor/editor/dialog/fck_replace.html +157 -79
- data/public/javascripts/fckeditor/editor/dialog/fck_select.html +14 -11
- data/public/javascripts/fckeditor/editor/dialog/fck_select/fck_select.js +2 -2
- data/public/javascripts/fckeditor/editor/dialog/fck_smiley.html +9 -4
- data/public/javascripts/fckeditor/editor/dialog/fck_source.html +5 -2
- data/public/javascripts/fckeditor/editor/dialog/fck_specialchar.html +9 -6
- data/public/javascripts/fckeditor/editor/dialog/fck_spellerpages.html +2 -1
- data/public/javascripts/fckeditor/editor/dialog/fck_spellerpages/spellerpages/server-scripts/spellchecker.cfm +3 -1
- data/public/javascripts/fckeditor/editor/dialog/fck_spellerpages/spellerpages/server-scripts/spellchecker.php +5 -2
- data/public/javascripts/fckeditor/editor/dialog/fck_spellerpages/spellerpages/server-scripts/spellchecker.pl +2 -1
- data/public/javascripts/fckeditor/editor/dialog/fck_spellerpages/spellerpages/spellChecker.js +0 -1
- data/public/javascripts/fckeditor/editor/dialog/fck_spellerpages/spellerpages/spellerStyle.css +1 -1
- data/public/javascripts/fckeditor/editor/dialog/fck_table.html +10 -5
- data/public/javascripts/fckeditor/editor/dialog/fck_tablecell.html +8 -6
- data/public/javascripts/fckeditor/editor/dialog/fck_template.html +1 -1
- data/public/javascripts/fckeditor/editor/dialog/fck_textarea.html +10 -11
- data/public/javascripts/fckeditor/editor/dialog/fck_textfield.html +10 -14
- data/public/javascripts/fckeditor/editor/dtd/fck_dtd_test.html +0 -2
- data/public/javascripts/fckeditor/editor/dtd/fck_xhtml10strict.js +2 -2
- data/public/javascripts/fckeditor/editor/dtd/fck_xhtml10transitional.js +3 -3
- data/public/javascripts/fckeditor/editor/fckdebug.html +1 -1
- data/public/javascripts/fckeditor/editor/fckdialog.html +660 -213
- data/public/javascripts/fckeditor/editor/fckeditor.html +66 -16
- data/public/javascripts/fckeditor/editor/fckeditor.original.html +70 -16
- data/public/javascripts/fckeditor/editor/filemanager/browser/default/browser.css +2 -2
- data/public/javascripts/fckeditor/editor/filemanager/browser/default/browser.html +37 -2
- data/public/javascripts/fckeditor/editor/filemanager/browser/default/frmactualfolder.html +33 -1
- data/public/javascripts/fckeditor/editor/filemanager/browser/default/frmcreatefolder.html +1 -1
- data/public/javascripts/fckeditor/editor/filemanager/browser/default/frmfolders.html +2 -1
- data/public/javascripts/fckeditor/editor/filemanager/browser/default/frmresourceslist.html +3 -2
- data/public/javascripts/fckeditor/editor/filemanager/browser/default/frmresourcetype.html +1 -1
- data/public/javascripts/fckeditor/editor/filemanager/browser/default/frmupload.html +2 -1
- data/public/javascripts/fckeditor/editor/filemanager/browser/default/js/common.js +34 -2
- data/public/javascripts/fckeditor/editor/filemanager/browser/default/js/fckxml.js +3 -3
- data/public/javascripts/fckeditor/editor/filemanager/connectors/aspx/connector.aspx +5 -3
- data/public/javascripts/fckeditor/editor/filemanager/connectors/aspx/upload.aspx +5 -3
- data/public/javascripts/fckeditor/editor/filemanager/connectors/perl/basexml.pl +1 -1
- data/public/javascripts/fckeditor/editor/filemanager/connectors/perl/commands.pl +50 -4
- data/public/javascripts/fckeditor/editor/filemanager/connectors/perl/connector.cgi +2 -3
- data/public/javascripts/fckeditor/editor/filemanager/connectors/perl/io.pl +14 -4
- data/public/javascripts/fckeditor/editor/filemanager/connectors/perl/upload.cgi +2 -3
- data/public/javascripts/fckeditor/editor/filemanager/connectors/perl/upload_fck.pl +23 -4
- data/public/javascripts/fckeditor/editor/filemanager/connectors/perl/util.pl +1 -1
- data/public/javascripts/fckeditor/editor/filemanager/connectors/py/config.py +43 -32
- data/public/javascripts/fckeditor/editor/filemanager/connectors/py/connector.py +16 -16
- data/public/javascripts/fckeditor/editor/filemanager/connectors/py/fckcommands.py +26 -9
- data/public/javascripts/fckeditor/editor/filemanager/connectors/py/fckconnector.py +2 -2
- data/public/javascripts/fckeditor/editor/filemanager/connectors/py/fckoutput.py +40 -9
- data/public/javascripts/fckeditor/editor/filemanager/connectors/py/fckutil.py +20 -21
- data/public/javascripts/fckeditor/editor/filemanager/connectors/py/htaccess.txt +2 -2
- data/public/javascripts/fckeditor/editor/filemanager/connectors/py/upload.py +13 -13
- data/public/javascripts/fckeditor/editor/filemanager/connectors/py/wsgi.py +3 -3
- data/public/javascripts/fckeditor/editor/filemanager/connectors/py/zope.py +4 -5
- data/public/javascripts/fckeditor/editor/filemanager/connectors/test.html +34 -1
- data/public/javascripts/fckeditor/editor/filemanager/connectors/uploadtest.html +47 -4
- data/public/javascripts/fckeditor/editor/js/fckadobeair.js +176 -0
- data/public/javascripts/fckeditor/editor/js/fckeditorcode_gecko.js +77 -77
- data/public/javascripts/fckeditor/editor/js/fckeditorcode_ie.js +74 -74
- data/public/javascripts/fckeditor/editor/lang/_translationstatus.txt +55 -54
- data/public/javascripts/fckeditor/editor/lang/af.js +1 -2
- data/public/javascripts/fckeditor/editor/lang/ar.js +16 -17
- data/public/javascripts/fckeditor/editor/lang/bg.js +1 -2
- data/public/javascripts/fckeditor/editor/lang/bn.js +1 -2
- data/public/javascripts/fckeditor/editor/lang/bs.js +1 -2
- data/public/javascripts/fckeditor/editor/lang/ca.js +27 -28
- data/public/javascripts/fckeditor/editor/lang/cs.js +18 -19
- data/public/javascripts/fckeditor/editor/lang/da.js +1 -2
- data/public/javascripts/fckeditor/editor/lang/de.js +1 -2
- data/public/javascripts/fckeditor/editor/lang/el.js +1 -2
- data/public/javascripts/fckeditor/editor/lang/en-au.js +1 -2
- data/public/javascripts/fckeditor/editor/lang/en-ca.js +1 -2
- data/public/javascripts/fckeditor/editor/lang/en-uk.js +1 -2
- data/public/javascripts/fckeditor/editor/lang/en.js +1 -2
- data/public/javascripts/fckeditor/editor/lang/eo.js +1 -2
- data/public/javascripts/fckeditor/editor/lang/es.js +34 -35
- data/public/javascripts/fckeditor/editor/lang/et.js +32 -33
- data/public/javascripts/fckeditor/editor/lang/eu.js +32 -33
- data/public/javascripts/fckeditor/editor/lang/fa.js +1 -2
- data/public/javascripts/fckeditor/editor/lang/fi.js +15 -16
- data/public/javascripts/fckeditor/editor/lang/fo.js +1 -2
- data/public/javascripts/fckeditor/editor/lang/fr-ca.js +515 -0
- data/public/javascripts/fckeditor/editor/lang/fr.js +5 -6
- data/public/javascripts/fckeditor/editor/lang/gl.js +1 -2
- data/public/javascripts/fckeditor/editor/lang/he.js +15 -16
- data/public/javascripts/fckeditor/editor/lang/hi.js +1 -2
- data/public/javascripts/fckeditor/editor/lang/hr.js +1 -2
- data/public/javascripts/fckeditor/editor/lang/hu.js +1 -2
- data/public/javascripts/fckeditor/editor/lang/it.js +1 -2
- data/public/javascripts/fckeditor/editor/lang/ja.js +1 -2
- data/public/javascripts/fckeditor/editor/lang/km.js +1 -2
- data/public/javascripts/fckeditor/editor/lang/ko.js +25 -26
- data/public/javascripts/fckeditor/editor/lang/lt.js +1 -2
- data/public/javascripts/fckeditor/editor/lang/lv.js +1 -2
- data/public/javascripts/fckeditor/editor/lang/mn.js +199 -200
- data/public/javascripts/fckeditor/editor/lang/ms.js +1 -2
- data/public/javascripts/fckeditor/editor/lang/nb.js +1 -2
- data/public/javascripts/fckeditor/editor/lang/nl.js +1 -2
- data/public/javascripts/fckeditor/editor/lang/no.js +1 -2
- data/public/javascripts/fckeditor/editor/lang/pl.js +51 -52
- data/public/javascripts/fckeditor/editor/lang/pt-br.js +16 -17
- data/public/javascripts/fckeditor/editor/lang/pt.js +1 -2
- data/public/javascripts/fckeditor/editor/lang/ro.js +1 -2
- data/public/javascripts/fckeditor/editor/lang/ru.js +31 -32
- data/public/javascripts/fckeditor/editor/lang/sk.js +1 -2
- data/public/javascripts/fckeditor/editor/lang/sl.js +39 -40
- data/public/javascripts/fckeditor/editor/lang/sr-latn.js +1 -2
- data/public/javascripts/fckeditor/editor/lang/sr.js +1 -2
- data/public/javascripts/fckeditor/editor/lang/sv.js +1 -2
- data/public/javascripts/fckeditor/editor/lang/th.js +1 -2
- data/public/javascripts/fckeditor/editor/lang/tr.js +1 -2
- data/public/javascripts/fckeditor/editor/lang/uk.js +1 -2
- data/public/javascripts/fckeditor/editor/lang/vi.js +1 -2
- data/public/javascripts/fckeditor/editor/lang/zh-cn.js +2 -3
- data/public/javascripts/fckeditor/editor/lang/zh.js +1 -2
- data/public/javascripts/fckeditor/editor/plugins/autogrow/fckplugin.js +9 -2
- data/public/javascripts/fckeditor/editor/plugins/bbcode/_sample/sample.config.js +1 -1
- data/public/javascripts/fckeditor/editor/plugins/bbcode/_sample/sample.html +1 -1
- data/public/javascripts/fckeditor/editor/plugins/bbcode/fckplugin.js +2 -2
- data/public/javascripts/fckeditor/editor/plugins/dragresizetable/fckplugin.js +35 -11
- data/public/javascripts/fckeditor/editor/plugins/placeholder/fck_placeholder.html +10 -5
- data/public/javascripts/fckeditor/editor/plugins/placeholder/fckplugin.js +3 -3
- data/public/javascripts/fckeditor/editor/plugins/placeholder/lang/de.js +2 -2
- data/public/javascripts/fckeditor/editor/plugins/placeholder/lang/en.js +2 -2
- data/public/javascripts/fckeditor/editor/{filemanager/connectors/cfm/upload.cfm → plugins/placeholder/lang/es.js} +9 -13
- data/public/javascripts/fckeditor/editor/plugins/placeholder/lang/fr.js +1 -1
- data/public/javascripts/fckeditor/editor/plugins/placeholder/lang/it.js +1 -1
- data/public/javascripts/fckeditor/editor/plugins/placeholder/lang/pl.js +2 -2
- data/public/javascripts/fckeditor/editor/plugins/simplecommands/fckplugin.js +1 -1
- data/public/javascripts/fckeditor/editor/plugins/tablecommands/fckplugin.js +1 -1
- data/public/javascripts/fckeditor/editor/skins/_fckviewstrips.html +1 -1
- data/public/javascripts/fckeditor/editor/skins/default/fck_dialog.css +271 -8
- data/public/javascripts/fckeditor/editor/skins/default/fck_editor.css +2 -2
- data/public/javascripts/fckeditor/editor/skins/office2003/fck_dialog.css +270 -8
- data/public/javascripts/fckeditor/editor/skins/office2003/fck_editor.css +2 -2
- data/public/javascripts/fckeditor/editor/skins/silver/fck_dialog.css +270 -11
- data/public/javascripts/fckeditor/editor/skins/silver/fck_editor.css +2 -2
- data/public/javascripts/fckeditor/fckconfig.js +58 -55
- data/public/javascripts/fckeditor/fckeditor.js +99 -8
- data/public/javascripts/fckeditor/fckeditor.py +2 -4
- data/public/javascripts/fckeditor/fckpackager.xml +12 -12
- data/public/javascripts/fckeditor/fckstyles.xml +2 -5
- data/public/javascripts/fckeditor/fcktemplates.xml +1 -1
- data/public/javascripts/fckeditor/license.txt +1 -2
- data/public/javascripts/prototype.js +46 -101
- data/public/javascripts/scriptaculous.js +28 -17
- data/public/stylesheets/administration.css +5 -1
- data/themes/dirtylicious/about.markdown +3 -0
- data/themes/dirtylicious/images/body.jpg +0 -0
- data/themes/dirtylicious/images/container.jpg +0 -0
- data/themes/dirtylicious/images/gravatar.gif +0 -0
- data/themes/dirtylicious/images/header.jpg +0 -0
- data/themes/dirtylicious/images/li.gif +0 -0
- data/themes/dirtylicious/images/main.gif +0 -0
- data/themes/dirtylicious/images/nav.gif +0 -0
- data/themes/dirtylicious/images/quote.gif +0 -0
- data/themes/dirtylicious/images/spinner.gif +0 -0
- data/themes/dirtylicious/layouts/default.html.erb +60 -0
- data/themes/dirtylicious/preview.png +0 -0
- data/themes/dirtylicious/stylesheets/application.css +327 -0
- data/themes/dirtylicious/views/articles/_article.html.erb +33 -0
- data/themes/dirtylicious/views/articles/_comment.html.erb +14 -0
- data/themes/dirtylicious/views/articles/_comment_form.html.erb +37 -0
- data/themes/dirtylicious/views/articles/_comment_list.html.erb +7 -0
- data/themes/dirtylicious/views/articles/_trackback.html.erb +9 -0
- data/themes/dirtylicious/views/articles/comment_preview.html.erb +10 -0
- data/themes/dirtylicious/views/articles/index.html.erb +5 -0
- data/themes/dirtylicious/views/articles/read.html.erb +42 -0
- data/themes/dirtylicious/views/shared/_search.html.erb +16 -0
- data/themes/standard_issue/about.markdown +5 -0
- data/themes/standard_issue/images/img01.gif +0 -0
- data/themes/standard_issue/images/img02.gif +0 -0
- data/themes/standard_issue/images/img03.gif +0 -0
- data/themes/standard_issue/images/img04.jpg +0 -0
- data/themes/standard_issue/images/img05.gif +0 -0
- data/themes/standard_issue/images/img06.gif +0 -0
- data/themes/standard_issue/images/img07.gif +0 -0
- data/themes/standard_issue/images/img08.gif +0 -0
- data/themes/standard_issue/images/img09.gif +0 -0
- data/themes/standard_issue/images/img10.gif +0 -0
- data/themes/standard_issue/images/spacer.gif +0 -0
- data/themes/standard_issue/images/spinner.gif +0 -0
- data/themes/standard_issue/layouts/default.html.erb +59 -0
- data/themes/standard_issue/preview.png +0 -0
- data/themes/standard_issue/stylesheets/application.css +461 -0
- data/themes/standard_issue/views/articles/_article.html.erb +37 -0
- data/themes/standard_issue/views/articles/_comment.html.erb +12 -0
- data/themes/standard_issue/views/articles/_comment_form.html.erb +48 -0
- data/themes/standard_issue/views/articles/_comment_list.html.erb +7 -0
- data/themes/standard_issue/views/articles/_trackback.html.erb +9 -0
- data/themes/standard_issue/views/articles/comment_preview.html.erb +10 -0
- data/themes/standard_issue/views/articles/index.html.erb +5 -0
- data/themes/standard_issue/views/articles/read.html.erb +42 -0
- data/themes/standard_issue/views/shared/_search.html.erb +17 -0
- data/themes/standard_issue/views/theme/static_view_test.html.erb +1 -0
- data/themes/typographic/images/accept.gif +0 -0
- data/themes/typographic/images/accept50.gif +0 -0
- data/themes/typographic/images/bg_white.gif +0 -0
- data/themes/typographic/images/bg_wrapper.gif +0 -0
- data/themes/typographic/images/bullet_bottom.gif +0 -0
- data/themes/typographic/images/bullet_right.gif +0 -0
- data/themes/typographic/images/email_open.gif +0 -0
- data/themes/typographic/images/email_open50.gif +0 -0
- data/themes/typographic/images/meta.gif +0 -0
- data/themes/typographic/images/page_edit.gif +0 -0
- data/themes/typographic/images/page_edit50.gif +0 -0
- data/themes/typographic/images/spinner.gif +0 -0
- data/themes/typographic/images/tag.gif +0 -0
- data/themes/typographic/images/user.gif +0 -0
- data/themes/typographic/images/user50.gif +0 -0
- data/themes/typographic/images/world_link.gif +0 -0
- data/themes/typographic/images/world_link50.gif +0 -0
- data/themes/typographic/layouts/default.html.erb +5 -2
- data/themes/typographic/stylesheets/ie6.css +86 -0
- data/themes/typographic/views/articles/_article.html.erb +2 -2
- data/vendor/plugins/fckeditor/README +0 -7
- data/vendor/plugins/fckeditor/app/helpers/fckeditor_helper.rb +1 -3
- data/vendor/plugins/fckeditor/lib/fckeditor_version.rb +2 -2
- data/vendor/plugins/fckeditor/tasks/fckeditor_tasks.rake +1 -1
- data/vendor/plugins/fckeditor/test/fckeditor_test.rb +8 -0
- metadata +98 -66
- data/CHANGES-5.0.4 +0 -33
- data/SIDEBARS +0 -39
- data/app/views/admin/content/_quick_post.html.erb +0 -20
- data/db/schema.rb +0 -224
- data/public/.DS_Store +0 -0
- data/public/javascripts/fckeditor/editor/filemanager/connectors/asp/basexml.asp +0 -62
- data/public/javascripts/fckeditor/editor/filemanager/connectors/asp/class_upload.asp +0 -353
- data/public/javascripts/fckeditor/editor/filemanager/connectors/asp/commands.asp +0 -198
- data/public/javascripts/fckeditor/editor/filemanager/connectors/asp/config.asp +0 -128
- data/public/javascripts/fckeditor/editor/filemanager/connectors/asp/connector.asp +0 -88
- data/public/javascripts/fckeditor/editor/filemanager/connectors/asp/io.asp +0 -222
- data/public/javascripts/fckeditor/editor/filemanager/connectors/asp/upload.asp +0 -61
- data/public/javascripts/fckeditor/editor/filemanager/connectors/asp/util.asp +0 -55
- data/public/javascripts/fckeditor/editor/filemanager/connectors/cfm/ImageObject.cfc +0 -273
- data/public/javascripts/fckeditor/editor/filemanager/connectors/cfm/cf5_connector.cfm +0 -315
- data/public/javascripts/fckeditor/editor/filemanager/connectors/cfm/cf5_upload.cfm +0 -296
- data/public/javascripts/fckeditor/editor/filemanager/connectors/cfm/cf_basexml.cfm +0 -68
- data/public/javascripts/fckeditor/editor/filemanager/connectors/cfm/cf_commands.cfm +0 -225
- data/public/javascripts/fckeditor/editor/filemanager/connectors/cfm/cf_connector.cfm +0 -89
- data/public/javascripts/fckeditor/editor/filemanager/connectors/cfm/cf_io.cfm +0 -288
- data/public/javascripts/fckeditor/editor/filemanager/connectors/cfm/cf_upload.cfm +0 -68
- data/public/javascripts/fckeditor/editor/filemanager/connectors/cfm/cf_util.cfm +0 -132
- data/public/javascripts/fckeditor/editor/filemanager/connectors/cfm/config.cfm +0 -183
- data/public/javascripts/fckeditor/editor/filemanager/connectors/cfm/connector.cfm +0 -31
- data/public/javascripts/fckeditor/editor/filemanager/connectors/cfm/image.cfc +0 -1325
- data/public/javascripts/fckeditor/editor/filemanager/connectors/lasso/config.lasso +0 -65
- data/public/javascripts/fckeditor/editor/filemanager/connectors/lasso/connector.lasso +0 -257
- data/public/javascripts/fckeditor/editor/filemanager/connectors/lasso/upload.lasso +0 -157
- data/public/javascripts/fckeditor/editor/filemanager/connectors/php/basexml.php +0 -93
- data/public/javascripts/fckeditor/editor/filemanager/connectors/php/commands.php +0 -245
- data/public/javascripts/fckeditor/editor/filemanager/connectors/php/config.php +0 -140
- data/public/javascripts/fckeditor/editor/filemanager/connectors/php/connector.php +0 -87
- data/public/javascripts/fckeditor/editor/filemanager/connectors/php/io.php +0 -272
- data/public/javascripts/fckeditor/editor/filemanager/connectors/php/phpcompat.php +0 -17
- data/public/javascripts/fckeditor/editor/filemanager/connectors/php/upload.php +0 -59
- data/public/javascripts/fckeditor/editor/filemanager/connectors/php/util.php +0 -185
- data/public/javascripts/fckeditor/fckeditor.afp +0 -161
- data/public/javascripts/fckeditor/fckeditor.asp +0 -235
- data/public/javascripts/fckeditor/fckeditor.cfc +0 -273
- data/public/javascripts/fckeditor/fckeditor.cfm +0 -210
- data/public/javascripts/fckeditor/fckeditor.lasso +0 -112
- data/test/mocks/themes/typographic/.DS_Store +0 -0
- data/themes/typographic/.DS_Store +0 -0
- data/vendor/plugins/audioscrobbler_sidebar/MAINTAINERS +0 -26
- data/vendor/plugins/audioscrobbler_sidebar/MIT-LICENSE +0 -21
- data/vendor/plugins/audioscrobbler_sidebar/README +0 -27
- data/vendor/plugins/audioscrobbler_sidebar/Rakefile +0 -22
- data/vendor/plugins/audioscrobbler_sidebar/init.rb +0 -5
- data/vendor/plugins/audioscrobbler_sidebar/lib/audioscrobbler.rb +0 -54
- data/vendor/plugins/audioscrobbler_sidebar/lib/audioscrobbler_sidebar.rb +0 -13
- data/vendor/plugins/audioscrobbler_sidebar/test/audioscrobbler_sidebar_test.rb +0 -8
- data/vendor/plugins/audioscrobbler_sidebar/views/content.rhtml +0 -10
@@ -1,161 +0,0 @@
|
|
1
|
-
<%
|
2
|
-
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
3
|
-
* Copyright (C) 2003-2007 Frederico Caldeira Knabben
|
4
|
-
*
|
5
|
-
* == BEGIN LICENSE ==
|
6
|
-
*
|
7
|
-
* Licensed under the terms of any of the following licenses at your
|
8
|
-
* choice:
|
9
|
-
*
|
10
|
-
* - GNU General Public License Version 2 or later (the "GPL")
|
11
|
-
* http://www.gnu.org/licenses/gpl.html
|
12
|
-
*
|
13
|
-
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
|
14
|
-
* http://www.gnu.org/licenses/lgpl.html
|
15
|
-
*
|
16
|
-
* - Mozilla Public License Version 1.1 or later (the "MPL")
|
17
|
-
* http://www.mozilla.org/MPL/MPL-1.1.html
|
18
|
-
*
|
19
|
-
* == END LICENSE ==
|
20
|
-
*
|
21
|
-
* This is the integration file for Active FoxPro Pages.
|
22
|
-
*
|
23
|
-
|
24
|
-
DEFINE CLASS goFckeditor AS CONTAINER OLEPUBLIC
|
25
|
-
|
26
|
-
cInstanceName =""
|
27
|
-
BasePath =""
|
28
|
-
cWIDTH =""
|
29
|
-
cHEIGHT =""
|
30
|
-
ToolbarSet =""
|
31
|
-
cValue=""
|
32
|
-
DIMENSION aConfig(10,2)
|
33
|
-
|
34
|
-
&& -----------------------------------------------------------------------
|
35
|
-
FUNCTION fckeditor( tcInstanceName )
|
36
|
-
LOCAL lnLoop,lnLoop2
|
37
|
-
THIS.cInstanceName = tcInstanceName
|
38
|
-
THIS.BasePath = '/fckeditor/'
|
39
|
-
THIS.cWIDTH = '100%'
|
40
|
-
THIS.cHEIGHT = '200'
|
41
|
-
THIS.ToolbarSet = 'Default'
|
42
|
-
THIS.cValue = ''
|
43
|
-
FOR lnLoop=1 TO 10
|
44
|
-
FOR lnLoop2=1 TO 2
|
45
|
-
THIS.aConfig(lnLoop,lnLoop2) = ""
|
46
|
-
NEXT
|
47
|
-
NEXT
|
48
|
-
RETURN
|
49
|
-
ENDFUNC
|
50
|
-
|
51
|
-
|
52
|
-
&& -----------------------------------------------------------------------
|
53
|
-
FUNCTION CREATE()
|
54
|
-
? THIS.CreateHtml()
|
55
|
-
RETURN
|
56
|
-
ENDFUNC
|
57
|
-
|
58
|
-
&& -----------------------------------------------------------------------
|
59
|
-
FUNCTION CreateHtml()
|
60
|
-
LOCAL html
|
61
|
-
LOCAL lcLink
|
62
|
-
|
63
|
-
HtmlValue = THIS.cValue && HTMLSPECIALCHARS()
|
64
|
-
|
65
|
-
html = [<div>]
|
66
|
-
IF THIS.IsCompatible()
|
67
|
-
lcLink = THIS.BasePath+[editor/fckeditor.html?InstanceName=]+THIS.cInstanceName
|
68
|
-
|
69
|
-
IF ( !THIS.ToolbarSet == '' )
|
70
|
-
lcLink = lcLink + [&Toolbar=]+THIS.ToolbarSet
|
71
|
-
ENDIF
|
72
|
-
|
73
|
-
&& Render the LINKED HIDDEN FIELD.
|
74
|
-
html = html + [<input type="hidden" id="]+THIS.cInstanceName +[" name="]+THIS.cInstanceName +[" value="]+HtmlValue+[" style="display:none" />]
|
75
|
-
|
76
|
-
&& Render the configurations HIDDEN FIELD.
|
77
|
-
html = html + [<input type="hidden" id="]+THIS.cInstanceName +[___Config" value="]+THIS.GetConfigFieldString() + [" style="display:none" />] +CHR(13)+CHR(10)
|
78
|
-
|
79
|
-
&& Render the EDITOR IFRAME.
|
80
|
-
html = html + [<iframe id="]+THIS.cInstanceName +[___Frame" src="Link" width="]+THIS.cWIDTH+[" height="]+THIS.cHEIGHT+[" frameborder="0" scrolling="no"></iframe>]
|
81
|
-
ELSE
|
82
|
-
IF ( AT("%", THIS.cWIDTH)=0 )
|
83
|
-
WidthCSS = THIS.cWIDTH + 'px'
|
84
|
-
ELSE
|
85
|
-
WidthCSS = THIS.cWIDTH
|
86
|
-
ENDIF
|
87
|
-
|
88
|
-
IF ( AT("%",THIS.cHEIGHT)=0 )
|
89
|
-
HeightCSS = THIS.cHEIGHT + 'px'
|
90
|
-
ELSE
|
91
|
-
HeightCSS = THIS.cHEIGHT
|
92
|
-
ENDIF
|
93
|
-
|
94
|
-
html = html + [<textarea name="]+THIS.cInstanceName +[" rows="4" cols="40" style="width: ]+WidthCSS+[ height: ]+HeightCSS+[">]+HtmlValue+[</textarea>]
|
95
|
-
ENDIF
|
96
|
-
|
97
|
-
html = html + [</div>]
|
98
|
-
|
99
|
-
RETURN (html)
|
100
|
-
ENDFUNC
|
101
|
-
|
102
|
-
|
103
|
-
&& -----------------------------------------------------------------------
|
104
|
-
FUNCTION IsCompatible()
|
105
|
-
LOCAL llRetval
|
106
|
-
LOCAL sAgent
|
107
|
-
|
108
|
-
llRetval=.F.
|
109
|
-
|
110
|
-
SET POINT TO "."
|
111
|
-
|
112
|
-
sAgent = LOWER(ALLTRIM(request.servervariables("HTTP_USER_AGENT")))
|
113
|
-
|
114
|
-
IF AT("msie",sAgent) >0 .AND. AT("mac",sAgent)=0 .AND. AT("opera",sAgent)=0
|
115
|
-
iVersion=VAL(SUBSTR(sAgent,AT("msie",sAgent)+5,3))
|
116
|
-
llRetval= iVersion > 5.5
|
117
|
-
ELSE
|
118
|
-
IF AT("gecko/",sAgent)>0
|
119
|
-
iVersion=VAL(SUBSTR(sAgent,AT("gecko/",sAgent)+6,8))
|
120
|
-
llRetval =iVersion > 20030210
|
121
|
-
ENDIF
|
122
|
-
ELSE
|
123
|
-
IF AT("opera/",sAgent)>0
|
124
|
-
iVersion=VAL(SUBSTR(sAgent,AT("opera/",sAgent)+6,4))
|
125
|
-
llRetval =iVersion >= 9.5
|
126
|
-
ENDIF
|
127
|
-
ELSE
|
128
|
-
IF AT("applewebkit/",sAgent)>0
|
129
|
-
iVersion=VAL(SUBSTR(sAgent,AT("applewebkit/",sAgent)+12,3))
|
130
|
-
llRetval =iVersion >= 522
|
131
|
-
ENDIF
|
132
|
-
ENDIF
|
133
|
-
|
134
|
-
SET POINT TO
|
135
|
-
|
136
|
-
RETURN (llRetval)
|
137
|
-
ENDFUNC
|
138
|
-
|
139
|
-
&& -----------------------------------------------------------------------
|
140
|
-
FUNCTION GetConfigFieldString()
|
141
|
-
LOCAL sParams
|
142
|
-
LOCAL bFirst
|
143
|
-
LOCAL sKey
|
144
|
-
sParams = ""
|
145
|
-
bFirst = .T.
|
146
|
-
FOR lnLoop=1 TO 10 && ALEN(this.aconfig)
|
147
|
-
IF !EMPTY(THIS.aConfig(lnLoop,1))
|
148
|
-
IF bFirst = .F.
|
149
|
-
sParams = sParams + "&"
|
150
|
-
ELSE
|
151
|
-
bFirst = .F.
|
152
|
-
ENDIF
|
153
|
-
sParams = sParams +THIS.aConfig(lnLoop,1)+[=]+THIS.aConfig(lnLoop,2)
|
154
|
-
ELSE
|
155
|
-
EXIT
|
156
|
-
ENDIF
|
157
|
-
NEXT
|
158
|
-
RETURN(sParams)
|
159
|
-
ENDFUNC
|
160
|
-
ENDDEFINE
|
161
|
-
%>
|
@@ -1,235 +0,0 @@
|
|
1
|
-
<!--
|
2
|
-
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
3
|
-
* Copyright (C) 2003-2007 Frederico Caldeira Knabben
|
4
|
-
*
|
5
|
-
* == BEGIN LICENSE ==
|
6
|
-
*
|
7
|
-
* Licensed under the terms of any of the following licenses at your
|
8
|
-
* choice:
|
9
|
-
*
|
10
|
-
* - GNU General Public License Version 2 or later (the "GPL")
|
11
|
-
* http://www.gnu.org/licenses/gpl.html
|
12
|
-
*
|
13
|
-
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
|
14
|
-
* http://www.gnu.org/licenses/lgpl.html
|
15
|
-
*
|
16
|
-
* - Mozilla Public License Version 1.1 or later (the "MPL")
|
17
|
-
* http://www.mozilla.org/MPL/MPL-1.1.html
|
18
|
-
*
|
19
|
-
* == END LICENSE ==
|
20
|
-
*
|
21
|
-
* This is the integration file for ASP.
|
22
|
-
*
|
23
|
-
* It defines the FCKeditor class that can be used to create editor
|
24
|
-
* instances in ASP pages on server side.
|
25
|
-
-->
|
26
|
-
<%
|
27
|
-
Class FCKeditor
|
28
|
-
|
29
|
-
private sBasePath
|
30
|
-
private sInstanceName
|
31
|
-
private sWidth
|
32
|
-
private sHeight
|
33
|
-
private sToolbarSet
|
34
|
-
private sValue
|
35
|
-
|
36
|
-
private oConfig
|
37
|
-
|
38
|
-
Private Sub Class_Initialize()
|
39
|
-
sBasePath = "/fckeditor/"
|
40
|
-
sWidth = "100%"
|
41
|
-
sHeight = "200"
|
42
|
-
sToolbarSet = "Default"
|
43
|
-
sValue = ""
|
44
|
-
|
45
|
-
Set oConfig = CreateObject("Scripting.Dictionary")
|
46
|
-
End Sub
|
47
|
-
|
48
|
-
Public Property Let BasePath( basePathValue )
|
49
|
-
sBasePath = basePathValue
|
50
|
-
End Property
|
51
|
-
|
52
|
-
Public Property Let InstanceName( instanceNameValue )
|
53
|
-
sInstanceName = instanceNameValue
|
54
|
-
End Property
|
55
|
-
|
56
|
-
Public Property Let Width( widthValue )
|
57
|
-
sWidth = widthValue
|
58
|
-
End Property
|
59
|
-
|
60
|
-
Public Property Let Height( heightValue )
|
61
|
-
sHeight = heightValue
|
62
|
-
End Property
|
63
|
-
|
64
|
-
Public Property Let ToolbarSet( toolbarSetValue )
|
65
|
-
sToolbarSet = toolbarSetValue
|
66
|
-
End Property
|
67
|
-
|
68
|
-
Public Property Let Value( newValue )
|
69
|
-
If ( IsNull( newValue ) OR IsEmpty( newValue ) ) Then
|
70
|
-
sValue = ""
|
71
|
-
Else
|
72
|
-
sValue = newValue
|
73
|
-
End If
|
74
|
-
End Property
|
75
|
-
|
76
|
-
Public Property Let Config( configKey, configValue )
|
77
|
-
oConfig.Add configKey, configValue
|
78
|
-
End Property
|
79
|
-
|
80
|
-
' Generates the instace of the editor in the HTML output of the page.
|
81
|
-
Public Sub Create( instanceName )
|
82
|
-
response.write CreateHtml( instanceName )
|
83
|
-
end Sub
|
84
|
-
|
85
|
-
' Returns the html code that must be used to generate an instance of FCKeditor.
|
86
|
-
Public Function CreateHtml( instanceName )
|
87
|
-
dim html
|
88
|
-
|
89
|
-
If IsCompatible() Then
|
90
|
-
|
91
|
-
Dim sFile, sLink
|
92
|
-
If Request.QueryString( "fcksource" ) = "true" Then
|
93
|
-
sFile = "fckeditor.original.html"
|
94
|
-
Else
|
95
|
-
sFile = "fckeditor.html"
|
96
|
-
End If
|
97
|
-
|
98
|
-
sLink = sBasePath & "editor/" & sFile & "?InstanceName=" + instanceName
|
99
|
-
|
100
|
-
If (sToolbarSet & "") <> "" Then
|
101
|
-
sLink = sLink + "&Toolbar=" & sToolbarSet
|
102
|
-
End If
|
103
|
-
|
104
|
-
html = ""
|
105
|
-
' Render the linked hidden field.
|
106
|
-
html = html & "<input type=""hidden"" id=""" & instanceName & """ name=""" & instanceName & """ value=""" & Server.HTMLEncode( sValue ) & """ style=""display:none"" />"
|
107
|
-
|
108
|
-
' Render the configurations hidden field.
|
109
|
-
html = html & "<input type=""hidden"" id=""" & instanceName & "___Config"" value=""" & GetConfigFieldString() & """ style=""display:none"" />"
|
110
|
-
|
111
|
-
' Render the editor IFRAME.
|
112
|
-
html = html & "<iframe id=""" & instanceName & "___Frame"" src=""" & sLink & """ width=""" & sWidth & """ height=""" & sHeight & """ frameborder=""0"" scrolling=""no""></iframe>"
|
113
|
-
|
114
|
-
Else
|
115
|
-
|
116
|
-
Dim sWidthCSS, sHeightCSS
|
117
|
-
|
118
|
-
If InStr( sWidth, "%" ) > 0 Then
|
119
|
-
sWidthCSS = sWidth
|
120
|
-
Else
|
121
|
-
sWidthCSS = sWidth & "px"
|
122
|
-
End If
|
123
|
-
|
124
|
-
If InStr( sHeight, "%" ) > 0 Then
|
125
|
-
sHeightCSS = sHeight
|
126
|
-
Else
|
127
|
-
sHeightCSS = sHeight & "px"
|
128
|
-
End If
|
129
|
-
|
130
|
-
html = "<textarea name=""" & instanceName & """ rows=""4"" cols=""40"" style=""width: " & sWidthCSS & "; height: " & sHeightCSS & """>" & Server.HTMLEncode( sValue ) & "</textarea>"
|
131
|
-
|
132
|
-
End If
|
133
|
-
|
134
|
-
CreateHtml = "<div>" & html & "</div>"
|
135
|
-
|
136
|
-
End Function
|
137
|
-
|
138
|
-
Private Function IsCompatible()
|
139
|
-
|
140
|
-
IsCompatible = FCKeditor_IsCompatibleBrowser()
|
141
|
-
|
142
|
-
End Function
|
143
|
-
|
144
|
-
Private Function GetConfigFieldString()
|
145
|
-
|
146
|
-
Dim sParams
|
147
|
-
|
148
|
-
Dim bFirst
|
149
|
-
bFirst = True
|
150
|
-
|
151
|
-
Dim sKey
|
152
|
-
For Each sKey in oConfig
|
153
|
-
|
154
|
-
If bFirst = False Then
|
155
|
-
sParams = sParams & "&"
|
156
|
-
Else
|
157
|
-
bFirst = False
|
158
|
-
End If
|
159
|
-
|
160
|
-
sParams = sParams & EncodeConfig( sKey ) & "=" & EncodeConfig( oConfig(sKey) )
|
161
|
-
|
162
|
-
Next
|
163
|
-
|
164
|
-
GetConfigFieldString = sParams
|
165
|
-
|
166
|
-
End Function
|
167
|
-
|
168
|
-
Private Function EncodeConfig( valueToEncode )
|
169
|
-
' The locale of the asp server makes the conversion of a boolean to string different to "true" or "false"
|
170
|
-
' so we must do it manually
|
171
|
-
If vartype(valueToEncode) = vbBoolean then
|
172
|
-
If valueToEncode=True Then
|
173
|
-
EncodeConfig="True"
|
174
|
-
Else
|
175
|
-
EncodeConfig="False"
|
176
|
-
End If
|
177
|
-
Else
|
178
|
-
EncodeConfig = Replace( valueToEncode, "&", "%26" )
|
179
|
-
EncodeConfig = Replace( EncodeConfig , "=", "%3D" )
|
180
|
-
EncodeConfig = Replace( EncodeConfig , """", "%22" )
|
181
|
-
End if
|
182
|
-
|
183
|
-
End Function
|
184
|
-
|
185
|
-
End Class
|
186
|
-
|
187
|
-
|
188
|
-
' A function that can be used to check if the current browser is compatible with FCKeditor
|
189
|
-
' without the need to create an instance of the class.
|
190
|
-
Function FCKeditor_IsCompatibleBrowser()
|
191
|
-
|
192
|
-
|
193
|
-
Dim sAgent
|
194
|
-
sAgent = Request.ServerVariables("HTTP_USER_AGENT")
|
195
|
-
|
196
|
-
Dim iVersion
|
197
|
-
Dim re, Matches
|
198
|
-
|
199
|
-
If InStr(sAgent, "MSIE") > 0 AND InStr(sAgent, "mac") <= 0 AND InStr(sAgent, "Opera") <= 0 Then
|
200
|
-
iVersion = CInt( FCKeditor_ToNumericFormat( Mid(sAgent, InStr(sAgent, "MSIE") + 5, 3) ) )
|
201
|
-
FCKeditor_IsCompatibleBrowser = ( iVersion >= 5.5 )
|
202
|
-
ElseIf InStr(sAgent, "Gecko/") > 0 Then
|
203
|
-
iVersion = CLng( Mid( sAgent, InStr( sAgent, "Gecko/" ) + 6, 8 ) )
|
204
|
-
FCKeditor_IsCompatibleBrowser = ( iVersion >= 20030210 )
|
205
|
-
ElseIf InStr(sAgent, "Opera/") > 0 Then
|
206
|
-
iVersion = CSng( FCKeditor_ToNumericFormat( Mid( sAgent, InStr( sAgent, "Opera/" ) + 6, 4 ) ) )
|
207
|
-
FCKeditor_IsCompatibleBrowser = ( iVersion >= 9.5 )
|
208
|
-
ElseIf InStr(sAgent, "AppleWebKit/") > 0 Then
|
209
|
-
Set re = new RegExp
|
210
|
-
re.IgnoreCase = true
|
211
|
-
re.global = false
|
212
|
-
re.Pattern = "AppleWebKit/(\d+)"
|
213
|
-
Set Matches = re.Execute(sAgent)
|
214
|
-
FCKeditor_IsCompatibleBrowser = ( re.Replace(Matches.Item(0).Value, "$1") >= 522 )
|
215
|
-
Else
|
216
|
-
FCKeditor_IsCompatibleBrowser = False
|
217
|
-
End If
|
218
|
-
|
219
|
-
End Function
|
220
|
-
|
221
|
-
|
222
|
-
' By Agrotic
|
223
|
-
' On ASP, when converting string to numbers, the number decimal separator is localized
|
224
|
-
' so 5.5 will not work on systems were the separator is "," and vice versa.
|
225
|
-
Private Function FCKeditor_ToNumericFormat( numberStr )
|
226
|
-
|
227
|
-
If IsNumeric( "5.5" ) Then
|
228
|
-
FCKeditor_ToNumericFormat = Replace( numberStr, ",", ".")
|
229
|
-
Else
|
230
|
-
FCKeditor_ToNumericFormat = Replace( numberStr, ".", ",")
|
231
|
-
End If
|
232
|
-
|
233
|
-
End Function
|
234
|
-
|
235
|
-
%>
|
@@ -1,273 +0,0 @@
|
|
1
|
-
<cfcomponent output="false" displayname="FCKeditor" hint="Create an instance of the FCKeditor.">
|
2
|
-
|
3
|
-
<!---
|
4
|
-
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
5
|
-
* Copyright (C) 2003-2007 Frederico Caldeira Knabben
|
6
|
-
*
|
7
|
-
* == BEGIN LICENSE ==
|
8
|
-
*
|
9
|
-
* Licensed under the terms of any of the following licenses at your
|
10
|
-
* choice:
|
11
|
-
*
|
12
|
-
* - GNU General Public License Version 2 or later (the "GPL")
|
13
|
-
* http://www.gnu.org/licenses/gpl.html
|
14
|
-
*
|
15
|
-
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
|
16
|
-
* http://www.gnu.org/licenses/lgpl.html
|
17
|
-
*
|
18
|
-
* - Mozilla Public License Version 1.1 or later (the "MPL")
|
19
|
-
* http://www.mozilla.org/MPL/MPL-1.1.html
|
20
|
-
*
|
21
|
-
* == END LICENSE ==
|
22
|
-
*
|
23
|
-
* ColdFusion MX integration.
|
24
|
-
* Note this CFC is created for use only with Coldfusion MX and above.
|
25
|
-
* For older version, check the fckeditor.cfm.
|
26
|
-
*
|
27
|
-
* Syntax:
|
28
|
-
*
|
29
|
-
* <cfscript>
|
30
|
-
* fckEditor = createObject("component", "fckeditor.fckeditor");
|
31
|
-
* fckEditor.instanceName="myEditor";
|
32
|
-
* fckEditor.basePath="/fckeditor/";
|
33
|
-
* fckEditor.value="<p>This is my <strong>initial</strong> html text.</p>";
|
34
|
-
* fckEditor.width="100%";
|
35
|
-
* fckEditor.height="200";
|
36
|
-
* // ... additional parameters ...
|
37
|
-
* fckEditor.create(); // create instance now.
|
38
|
-
* </cfscript>
|
39
|
-
*
|
40
|
-
* See your macromedia coldfusion mx documentation for more info.
|
41
|
-
*
|
42
|
-
* *** Note:
|
43
|
-
* Do not use path names with a "." (dot) in the name. This is a coldfusion
|
44
|
-
* limitation with the cfc invocation.
|
45
|
-
--->
|
46
|
-
|
47
|
-
<cffunction
|
48
|
-
name="Create"
|
49
|
-
access="public"
|
50
|
-
output="true"
|
51
|
-
returntype="void"
|
52
|
-
hint="Outputs the editor HTML in the place where the function is called"
|
53
|
-
>
|
54
|
-
<cfoutput>#CreateHtml()#</cfoutput>
|
55
|
-
</cffunction>
|
56
|
-
|
57
|
-
<cffunction
|
58
|
-
name="CreateHtml"
|
59
|
-
access="public"
|
60
|
-
output="false"
|
61
|
-
returntype="string"
|
62
|
-
hint="Retrieves the editor HTML"
|
63
|
-
>
|
64
|
-
|
65
|
-
<cfparam name="this.instanceName" type="string" />
|
66
|
-
<cfparam name="this.width" type="string" default="100%" />
|
67
|
-
<cfparam name="this.height" type="string" default="200" />
|
68
|
-
<cfparam name="this.toolbarSet" type="string" default="Default" />
|
69
|
-
<cfparam name="this.value" type="string" default="" />
|
70
|
-
<cfparam name="this.basePath" type="string" default="/fckeditor/" />
|
71
|
-
<cfparam name="this.checkBrowser" type="boolean" default="true" />
|
72
|
-
<cfparam name="this.config" type="struct" default="#structNew()#" />
|
73
|
-
|
74
|
-
<cfscript>
|
75
|
-
// display the html editor or a plain textarea?
|
76
|
-
if( isCompatible() )
|
77
|
-
return getHtmlEditor();
|
78
|
-
else
|
79
|
-
return getTextArea();
|
80
|
-
</cfscript>
|
81
|
-
|
82
|
-
</cffunction>
|
83
|
-
|
84
|
-
<cffunction
|
85
|
-
name="isCompatible"
|
86
|
-
access="private"
|
87
|
-
output="false"
|
88
|
-
returnType="boolean"
|
89
|
-
hint="Check browser compatibility via HTTP_USER_AGENT, if checkBrowser is true"
|
90
|
-
>
|
91
|
-
|
92
|
-
<cfscript>
|
93
|
-
var sAgent = lCase( cgi.HTTP_USER_AGENT );
|
94
|
-
var stResult = "";
|
95
|
-
var sBrowserVersion = "";
|
96
|
-
|
97
|
-
// do not check if argument "checkBrowser" is false
|
98
|
-
if( not this.checkBrowser )
|
99
|
-
return true;
|
100
|
-
|
101
|
-
// check for Internet Explorer ( >= 5.5 )
|
102
|
-
if( find( "msie", sAgent ) and not find( "mac", sAgent ) and not find( "opera", sAgent ) )
|
103
|
-
{
|
104
|
-
// try to extract IE version
|
105
|
-
stResult = reFind( "msie ([5-9]\.[0-9])", sAgent, 1, true );
|
106
|
-
if( arrayLen( stResult.pos ) eq 2 )
|
107
|
-
{
|
108
|
-
// get IE Version
|
109
|
-
sBrowserVersion = mid( sAgent, stResult.pos[2], stResult.len[2] );
|
110
|
-
return ( sBrowserVersion GTE 5.5 );
|
111
|
-
}
|
112
|
-
}
|
113
|
-
// check for Gecko ( >= 20030210+ )
|
114
|
-
else if( find( "gecko/", sAgent ) )
|
115
|
-
{
|
116
|
-
// try to extract Gecko version date
|
117
|
-
stResult = reFind( "gecko/(200[3-9][0-1][0-9][0-3][0-9])", sAgent, 1, true );
|
118
|
-
if( arrayLen( stResult.pos ) eq 2 )
|
119
|
-
{
|
120
|
-
// get Gecko build (i18n date)
|
121
|
-
sBrowserVersion = mid( sAgent, stResult.pos[2], stResult.len[2] );
|
122
|
-
return ( sBrowserVersion GTE 20030210 );
|
123
|
-
}
|
124
|
-
}
|
125
|
-
else if( find( "opera/", sAgent ) )
|
126
|
-
{
|
127
|
-
// try to extract Opera version
|
128
|
-
stResult = reFind( "opera/([0-9]+\.[0-9]+)", sAgent, 1, true );
|
129
|
-
if( arrayLen( stResult.pos ) eq 2 )
|
130
|
-
{
|
131
|
-
return ( mid( sAgent, stResult.pos[2], stResult.len[2] ) gte 9.5);
|
132
|
-
}
|
133
|
-
}
|
134
|
-
else if( find( "applewebkit", sAgent ) )
|
135
|
-
{
|
136
|
-
// try to extract Gecko version date
|
137
|
-
stResult = reFind( "applewebkit/([0-9]+)", sAgent, 1, true );
|
138
|
-
if( arrayLen( stResult.pos ) eq 2 )
|
139
|
-
{
|
140
|
-
return ( mid( sAgent, stResult.pos[2], stResult.len[2] ) gte 522 );
|
141
|
-
}
|
142
|
-
}
|
143
|
-
|
144
|
-
return false;
|
145
|
-
</cfscript>
|
146
|
-
</cffunction>
|
147
|
-
|
148
|
-
<cffunction
|
149
|
-
name="getTextArea"
|
150
|
-
access="private"
|
151
|
-
output="false"
|
152
|
-
returnType="string"
|
153
|
-
hint="Create a textarea field for non-compatible browsers."
|
154
|
-
>
|
155
|
-
<cfset var result = "" />
|
156
|
-
|
157
|
-
<cfscript>
|
158
|
-
// append unit "px" for numeric width and/or height values
|
159
|
-
if( isNumeric( this.width ) )
|
160
|
-
this.width = this.width & "px";
|
161
|
-
if( isNumeric( this.height ) )
|
162
|
-
this.height = this.height & "px";
|
163
|
-
</cfscript>
|
164
|
-
|
165
|
-
<cfscript>
|
166
|
-
result = result & "<div>" & chr(13) & chr(10);
|
167
|
-
result = result & "<textarea name=""#this.instanceName#"" rows=""4"" cols=""40"" style=""WIDTH: #this.width#; HEIGHT: #this.height#"">#HTMLEditFormat(this.value)#</textarea>" & chr(13) & chr(10);
|
168
|
-
result = result & "</div>" & chr(13) & chr(10);
|
169
|
-
</cfscript>
|
170
|
-
<cfreturn result />
|
171
|
-
</cffunction>
|
172
|
-
|
173
|
-
<cffunction
|
174
|
-
name="getHtmlEditor"
|
175
|
-
access="private"
|
176
|
-
output="false"
|
177
|
-
returnType="string"
|
178
|
-
hint="Create the html editor instance for compatible browsers."
|
179
|
-
>
|
180
|
-
<cfset var sURL = "" />
|
181
|
-
<cfset var result = "" />
|
182
|
-
|
183
|
-
<cfscript>
|
184
|
-
// try to fix the basePath, if ending slash is missing
|
185
|
-
if( len( this.basePath) and right( this.basePath, 1 ) is not "/" )
|
186
|
-
this.basePath = this.basePath & "/";
|
187
|
-
|
188
|
-
// construct the url
|
189
|
-
sURL = this.basePath & "editor/fckeditor.html?InstanceName=" & this.instanceName;
|
190
|
-
|
191
|
-
// append toolbarset name to the url
|
192
|
-
if( len( this.toolbarSet ) )
|
193
|
-
sURL = sURL & "&Toolbar=" & this.toolbarSet;
|
194
|
-
</cfscript>
|
195
|
-
|
196
|
-
<cfscript>
|
197
|
-
result = result & "<div>" & chr(13) & chr(10);
|
198
|
-
result = result & "<input type=""hidden"" id=""#this.instanceName#"" name=""#this.instanceName#"" value=""#HTMLEditFormat(this.value)#"" style=""display:none"" />" & chr(13) & chr(10);
|
199
|
-
result = result & "<input type=""hidden"" id=""#this.instanceName#___Config"" value=""#GetConfigFieldString()#"" style=""display:none"" />" & chr(13) & chr(10);
|
200
|
-
result = result & "<iframe id=""#this.instanceName#___Frame"" src=""#sURL#"" width=""#this.width#"" height=""#this.height#"" frameborder=""0"" scrolling=""no""></iframe>" & chr(13) & chr(10);
|
201
|
-
result = result & "</div>" & chr(13) & chr(10);
|
202
|
-
</cfscript>
|
203
|
-
<cfreturn result />
|
204
|
-
</cffunction>
|
205
|
-
|
206
|
-
<cffunction
|
207
|
-
name="GetConfigFieldString"
|
208
|
-
access="private"
|
209
|
-
output="false"
|
210
|
-
returnType="string"
|
211
|
-
hint="Create configuration string: Key1=Value1&Key2=Value2&... (Key/Value:HTML encoded)"
|
212
|
-
>
|
213
|
-
<cfset var sParams = "" />
|
214
|
-
<cfset var key = "" />
|
215
|
-
<cfset var fieldValue = "" />
|
216
|
-
<cfset var fieldLabel = "" />
|
217
|
-
<cfset var lConfigKeys = "" />
|
218
|
-
<cfset var iPos = "" />
|
219
|
-
|
220
|
-
<cfscript>
|
221
|
-
/**
|
222
|
-
* CFML doesn't store casesensitive names for structure keys, but the configuration names must be casesensitive for js.
|
223
|
-
* So we need to find out the correct case for the configuration keys.
|
224
|
-
* We "fix" this by comparing the caseless configuration keys to a list of all available configuration options in the correct case.
|
225
|
-
* changed 20041206 hk@lwd.de (improvements are welcome!)
|
226
|
-
*/
|
227
|
-
lConfigKeys = lConfigKeys & "CustomConfigurationsPath,EditorAreaCSS,ToolbarComboPreviewCSS,DocType";
|
228
|
-
lConfigKeys = lConfigKeys & ",BaseHref,FullPage,Debug,AllowQueryStringDebug,SkinPath";
|
229
|
-
lConfigKeys = lConfigKeys & ",PreloadImages,PluginsPath,AutoDetectLanguage,DefaultLanguage,ContentLangDirection";
|
230
|
-
lConfigKeys = lConfigKeys & ",ProcessHTMLEntities,IncludeLatinEntities,IncludeGreekEntities,ProcessNumericEntities,AdditionalNumericEntities";
|
231
|
-
lConfigKeys = lConfigKeys & ",FillEmptyBlocks,FormatSource,FormatOutput,FormatIndentator";
|
232
|
-
lConfigKeys = lConfigKeys & ",GeckoUseSPAN,StartupFocus,ForcePasteAsPlainText,AutoDetectPasteFromWord,ForceSimpleAmpersand";
|
233
|
-
lConfigKeys = lConfigKeys & ",TabSpaces,ShowBorders,SourcePopup,ToolbarStartExpanded,ToolbarCanCollapse";
|
234
|
-
lConfigKeys = lConfigKeys & ",IgnoreEmptyParagraphValue,PreserveSessionOnFileBrowser,FloatingPanelsZIndex,TemplateReplaceAll,TemplateReplaceCheckbox";
|
235
|
-
lConfigKeys = lConfigKeys & ",ToolbarLocation,ToolbarSets,EnterMode,ShiftEnterMode,Keystrokes";
|
236
|
-
lConfigKeys = lConfigKeys & ",ContextMenu,BrowserContextMenuOnCtrl,FontColors,FontNames,FontSizes";
|
237
|
-
lConfigKeys = lConfigKeys & ",FontFormats,StylesXmlPath,TemplatesXmlPath,SpellChecker,IeSpellDownloadUrl";
|
238
|
-
lConfigKeys = lConfigKeys & ",SpellerPagesServerScript,FirefoxSpellChecker,MaxUndoLevels,DisableObjectResizing,DisableFFTableHandles";
|
239
|
-
lConfigKeys = lConfigKeys & ",LinkDlgHideTarget,LinkDlgHideAdvanced,ImageDlgHideLink,ImageDlgHideAdvanced,FlashDlgHideAdvanced";
|
240
|
-
lConfigKeys = lConfigKeys & ",ProtectedTags,BodyId,BodyClass,DefaultLinkTarget,CleanWordKeepsStructure";
|
241
|
-
lConfigKeys = lConfigKeys & ",LinkBrowser,LinkBrowserURL,LinkBrowserWindowWidth,LinkBrowserWindowHeight,ImageBrowser";
|
242
|
-
lConfigKeys = lConfigKeys & ",ImageBrowserURL,ImageBrowserWindowWidth,ImageBrowserWindowHeight,FlashBrowser,FlashBrowserURL";
|
243
|
-
lConfigKeys = lConfigKeys & ",FlashBrowserWindowWidth,FlashBrowserWindowHeight,LinkUpload,LinkUploadURL,LinkUploadWindowWidth";
|
244
|
-
lConfigKeys = lConfigKeys & ",LinkUploadWindowHeight,LinkUploadAllowedExtensions,LinkUploadDeniedExtensions,ImageUpload,ImageUploadURL";
|
245
|
-
lConfigKeys = lConfigKeys & ",ImageUploadAllowedExtensions,ImageUploadDeniedExtensions,FlashUpload,FlashUploadURL,FlashUploadAllowedExtensions";
|
246
|
-
lConfigKeys = lConfigKeys & ",FlashUploadDeniedExtensions,SmileyPath,SmileyImages,SmileyColumns,SmileyWindowWidth,SmileyWindowHeight";
|
247
|
-
|
248
|
-
for( key in this.config )
|
249
|
-
{
|
250
|
-
iPos = listFindNoCase( lConfigKeys, key );
|
251
|
-
if( iPos GT 0 )
|
252
|
-
{
|
253
|
-
if( len( sParams ) )
|
254
|
-
sParams = sParams & "&";
|
255
|
-
|
256
|
-
fieldValue = this.config[key];
|
257
|
-
fieldName = listGetAt( lConfigKeys, iPos );
|
258
|
-
|
259
|
-
// set all boolean possibilities in CFML to true/false values
|
260
|
-
if( isBoolean( fieldValue) and fieldValue )
|
261
|
-
fieldValue = "true";
|
262
|
-
else if( isBoolean( fieldValue) )
|
263
|
-
fieldValue = "false";
|
264
|
-
|
265
|
-
sParams = sParams & HTMLEditFormat( fieldName ) & '=' & HTMLEditFormat( fieldValue );
|
266
|
-
}
|
267
|
-
}
|
268
|
-
return sParams;
|
269
|
-
</cfscript>
|
270
|
-
|
271
|
-
</cffunction>
|
272
|
-
|
273
|
-
</cfcomponent>
|