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,6 +1,6 @@
|
|
1
1
|
/*
|
2
2
|
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
3
|
-
* Copyright (C) 2003-
|
3
|
+
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
4
4
|
*
|
5
5
|
* == BEGIN LICENSE ==
|
6
6
|
*
|
@@ -82,21 +82,13 @@ FCKXHtml._AppendAttributes = function( xmlNode, htmlNode, node, nodeName )
|
|
82
82
|
}
|
83
83
|
}
|
84
84
|
|
85
|
-
|
85
|
+
// On very rare cases, IE is loosing the "align" attribute for DIV. (right align and apply bulleted list)
|
86
|
+
FCKXHtml.TagProcessors['div'] = function( node, htmlNode )
|
86
87
|
{
|
87
|
-
|
88
|
-
|
89
|
-
if ( oHttpEquiv == null || oHttpEquiv.value.length == 0 )
|
90
|
-
{
|
91
|
-
// Get the http-equiv value from the outerHTML.
|
92
|
-
var sHttpEquiv = htmlNode.outerHTML.match( FCKRegexLib.MetaHttpEquiv ) ;
|
88
|
+
if ( htmlNode.align.length > 0 )
|
89
|
+
FCKXHtml._AppendAttribute( node, 'align', htmlNode.align ) ;
|
93
90
|
|
94
|
-
|
95
|
-
{
|
96
|
-
sHttpEquiv = sHttpEquiv[1] ;
|
97
|
-
FCKXHtml._AppendAttribute( node, 'http-equiv', sHttpEquiv ) ;
|
98
|
-
}
|
99
|
-
}
|
91
|
+
node = FCKXHtml._AppendChildNodes( node, htmlNode, true ) ;
|
100
92
|
|
101
93
|
return node ;
|
102
94
|
}
|
@@ -112,6 +104,23 @@ FCKXHtml.TagProcessors['font'] = function( node, htmlNode )
|
|
112
104
|
return node ;
|
113
105
|
}
|
114
106
|
|
107
|
+
FCKXHtml.TagProcessors['form'] = function( node, htmlNode )
|
108
|
+
{
|
109
|
+
if ( htmlNode.acceptCharset && htmlNode.acceptCharset.length > 0 && htmlNode.acceptCharset != 'UNKNOWN' )
|
110
|
+
FCKXHtml._AppendAttribute( node, 'accept-charset', htmlNode.acceptCharset ) ;
|
111
|
+
|
112
|
+
// IE has a bug and htmlNode.attributes['name'].specified=false if there is
|
113
|
+
// no element with id="name" inside the form (#360 and SF-BUG-1155726).
|
114
|
+
var nameAtt = htmlNode.attributes['name'] ;
|
115
|
+
|
116
|
+
if ( nameAtt && nameAtt.value.length > 0 )
|
117
|
+
FCKXHtml._AppendAttribute( node, 'name', nameAtt.value ) ;
|
118
|
+
|
119
|
+
node = FCKXHtml._AppendChildNodes( node, htmlNode, true ) ;
|
120
|
+
|
121
|
+
return node ;
|
122
|
+
}
|
123
|
+
|
115
124
|
// IE doens't see the value attribute as an attribute for the <INPUT> tag.
|
116
125
|
FCKXHtml.TagProcessors['input'] = function( node, htmlNode )
|
117
126
|
{
|
@@ -127,60 +136,57 @@ FCKXHtml.TagProcessors['input'] = function( node, htmlNode )
|
|
127
136
|
return node ;
|
128
137
|
}
|
129
138
|
|
130
|
-
|
131
|
-
FCKXHtml.TagProcessors['option'] = function( node, htmlNode )
|
139
|
+
FCKXHtml.TagProcessors['label'] = function( node, htmlNode )
|
132
140
|
{
|
133
|
-
if ( htmlNode.
|
134
|
-
FCKXHtml._AppendAttribute( node, '
|
141
|
+
if ( htmlNode.htmlFor.length > 0 )
|
142
|
+
FCKXHtml._AppendAttribute( node, 'for', htmlNode.htmlFor ) ;
|
135
143
|
|
136
144
|
node = FCKXHtml._AppendChildNodes( node, htmlNode ) ;
|
137
145
|
|
138
146
|
return node ;
|
139
147
|
}
|
140
148
|
|
141
|
-
//
|
142
|
-
FCKXHtml.TagProcessors['
|
149
|
+
// Fix behavior for IE, it doesn't read back the .name on newly created maps
|
150
|
+
FCKXHtml.TagProcessors['map'] = function( node, htmlNode )
|
143
151
|
{
|
144
|
-
if ( ! node.attributes.getNamedItem( '
|
152
|
+
if ( ! node.attributes.getNamedItem( 'name' ) )
|
145
153
|
{
|
146
|
-
var
|
147
|
-
if (
|
148
|
-
FCKXHtml._AppendAttribute( node, '
|
154
|
+
var name = htmlNode.name ;
|
155
|
+
if ( name )
|
156
|
+
FCKXHtml._AppendAttribute( node, 'name', name ) ;
|
149
157
|
}
|
150
158
|
|
151
|
-
|
152
|
-
{
|
153
|
-
var sShape = htmlNode.getAttribute( 'shape', 2 ) ;
|
154
|
-
if ( sShape && sShape.length > 0 )
|
155
|
-
FCKXHtml._AppendAttribute( node, 'shape', sShape.toLowerCase() ) ;
|
156
|
-
}
|
159
|
+
node = FCKXHtml._AppendChildNodes( node, htmlNode, true ) ;
|
157
160
|
|
158
161
|
return node ;
|
159
162
|
}
|
160
163
|
|
161
|
-
FCKXHtml.TagProcessors['
|
164
|
+
FCKXHtml.TagProcessors['meta'] = function( node, htmlNode )
|
162
165
|
{
|
163
|
-
|
164
|
-
FCKXHtml._AppendAttribute( node, 'for', htmlNode.htmlFor ) ;
|
166
|
+
var oHttpEquiv = node.attributes.getNamedItem( 'http-equiv' ) ;
|
165
167
|
|
166
|
-
|
168
|
+
if ( oHttpEquiv == null || oHttpEquiv.value.length == 0 )
|
169
|
+
{
|
170
|
+
// Get the http-equiv value from the outerHTML.
|
171
|
+
var sHttpEquiv = htmlNode.outerHTML.match( FCKRegexLib.MetaHttpEquiv ) ;
|
172
|
+
|
173
|
+
if ( sHttpEquiv )
|
174
|
+
{
|
175
|
+
sHttpEquiv = sHttpEquiv[1] ;
|
176
|
+
FCKXHtml._AppendAttribute( node, 'http-equiv', sHttpEquiv ) ;
|
177
|
+
}
|
178
|
+
}
|
167
179
|
|
168
180
|
return node ;
|
169
181
|
}
|
170
182
|
|
171
|
-
|
183
|
+
// IE ignores the "SELECTED" attribute so we must add it manually.
|
184
|
+
FCKXHtml.TagProcessors['option'] = function( node, htmlNode )
|
172
185
|
{
|
173
|
-
if ( htmlNode.
|
174
|
-
FCKXHtml._AppendAttribute( node, '
|
175
|
-
|
176
|
-
// IE has a bug and htmlNode.attributes['name'].specified=false if there is
|
177
|
-
// no element with id="name" inside the form (#360 and SF-BUG-1155726).
|
178
|
-
var nameAtt = htmlNode.attributes['name'] ;
|
179
|
-
|
180
|
-
if ( nameAtt && nameAtt.value.length > 0 )
|
181
|
-
FCKXHtml._AppendAttribute( node, 'name', nameAtt.value ) ;
|
186
|
+
if ( htmlNode.selected && !node.attributes.getNamedItem( 'selected' ) )
|
187
|
+
FCKXHtml._AppendAttribute( node, 'selected', 'selected' ) ;
|
182
188
|
|
183
|
-
node = FCKXHtml._AppendChildNodes( node, htmlNode
|
189
|
+
node = FCKXHtml._AppendChildNodes( node, htmlNode ) ;
|
184
190
|
|
185
191
|
return node ;
|
186
192
|
}
|
@@ -195,14 +201,3 @@ FCKXHtml.TagProcessors['textarea'] = FCKXHtml.TagProcessors['select'] = function
|
|
195
201
|
|
196
202
|
return node ;
|
197
203
|
}
|
198
|
-
|
199
|
-
// On very rare cases, IE is loosing the "align" attribute for DIV. (right align and apply bulleted list)
|
200
|
-
FCKXHtml.TagProcessors['div'] = function( node, htmlNode )
|
201
|
-
{
|
202
|
-
if ( htmlNode.align.length > 0 )
|
203
|
-
FCKXHtml._AppendAttribute( node, 'align', htmlNode.align ) ;
|
204
|
-
|
205
|
-
node = FCKXHtml._AppendChildNodes( node, htmlNode, true ) ;
|
206
|
-
|
207
|
-
return node ;
|
208
|
-
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*
|
2
2
|
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
3
|
-
* Copyright (C) 2003-
|
3
|
+
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
4
4
|
*
|
5
5
|
* == BEGIN LICENSE ==
|
6
6
|
*
|
@@ -46,7 +46,8 @@ body, td
|
|
46
46
|
|
47
47
|
a[href]
|
48
48
|
{
|
49
|
-
color: -moz-hyperlinktext !important;
|
49
|
+
color: -moz-hyperlinktext !important; /* For Firefox... mark as important, otherwise it becomes black */
|
50
|
+
text-decoration: -moz-anchor-decoration; /* For Firefox 3, otherwise no underline will be used */
|
50
51
|
}
|
51
52
|
|
52
53
|
/*
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*
|
2
2
|
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
3
|
-
* Copyright (C) 2003-
|
3
|
+
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
4
4
|
*
|
5
5
|
* == BEGIN LICENSE ==
|
6
6
|
*
|
@@ -21,6 +21,13 @@
|
|
21
21
|
* This CSS Style Sheet defines rules used by the editor for its internal use.
|
22
22
|
*/
|
23
23
|
|
24
|
+
/* #########
|
25
|
+
* WARNING
|
26
|
+
* #########
|
27
|
+
* When changing this file, the minified version of it must be updated in the
|
28
|
+
* fckeditor.html file (see FCK_InternalCSS).
|
29
|
+
*/
|
30
|
+
|
24
31
|
/* Fix to allow putting the caret at the end of the content in Firefox if
|
25
32
|
clicking below the content. */
|
26
33
|
html
|
@@ -49,6 +56,16 @@ form
|
|
49
56
|
height: 80px;
|
50
57
|
}
|
51
58
|
|
59
|
+
.FCK__UnknownObject
|
60
|
+
{
|
61
|
+
border: #a9a9a9 1px solid;
|
62
|
+
background-position: center center;
|
63
|
+
background-image: url(images/fck_plugin.gif);
|
64
|
+
background-repeat: no-repeat;
|
65
|
+
width: 80px;
|
66
|
+
height: 80px;
|
67
|
+
}
|
68
|
+
|
52
69
|
/* Empty anchors images */
|
53
70
|
.FCK__Anchor
|
54
71
|
{
|
@@ -146,7 +163,7 @@ a[name]
|
|
146
163
|
background-image: url(images/block_address.png);
|
147
164
|
}
|
148
165
|
|
149
|
-
.FCK__ShowBlocks blockquote
|
166
|
+
.FCK__ShowBlocks blockquote
|
150
167
|
{
|
151
168
|
background-image: url(images/block_blockquote.png);
|
152
169
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*
|
2
2
|
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
3
|
-
* Copyright (C) 2003-
|
3
|
+
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
4
4
|
*
|
5
5
|
* == BEGIN LICENSE ==
|
6
6
|
*
|
@@ -21,6 +21,13 @@
|
|
21
21
|
* This CSS Style Sheet defines the rules to show table borders on Gecko.
|
22
22
|
*/
|
23
23
|
|
24
|
+
/* #########
|
25
|
+
* WARNING
|
26
|
+
* #########
|
27
|
+
* When changing this file, the minified version of it must be updated in the
|
28
|
+
* fckeditor.html file (see FCK_ShowTableBordersCSS).
|
29
|
+
*/
|
30
|
+
|
24
31
|
/* For tables with the "border" attribute set to "0" */
|
25
32
|
table[border="0"],
|
26
33
|
table[border="0"] > tr > td, table[border="0"] > tr > th,
|
Binary file
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*
|
2
2
|
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
3
|
-
* Copyright (C) 2003-
|
3
|
+
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
4
4
|
*
|
5
5
|
* == BEGIN LICENSE ==
|
6
6
|
*
|
@@ -22,6 +22,13 @@
|
|
22
22
|
* windows.
|
23
23
|
*/
|
24
24
|
|
25
|
+
/* #########
|
26
|
+
* WARNING
|
27
|
+
* #########
|
28
|
+
* When changing this file, the minified version of it must be updated in the
|
29
|
+
* fck_dialog_common.js file (see GetCommonDialogCss).
|
30
|
+
*/
|
31
|
+
|
25
32
|
.ImagePreviewArea
|
26
33
|
{
|
27
34
|
border: #000000 1px solid;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*
|
2
2
|
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
3
|
-
* Copyright (C) 2003-
|
3
|
+
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
4
4
|
*
|
5
5
|
* == BEGIN LICENSE ==
|
6
6
|
*
|
@@ -19,8 +19,48 @@
|
|
19
19
|
* == END LICENSE ==
|
20
20
|
*
|
21
21
|
* Useful functions used by almost all dialog window pages.
|
22
|
+
* Dialogs should link to this file as the very first script on the page.
|
22
23
|
*/
|
23
24
|
|
25
|
+
// Automatically detect the correct document.domain (#123).
|
26
|
+
(function()
|
27
|
+
{
|
28
|
+
var d = document.domain ;
|
29
|
+
|
30
|
+
while ( true )
|
31
|
+
{
|
32
|
+
// Test if we can access a parent property.
|
33
|
+
try
|
34
|
+
{
|
35
|
+
var test = window.parent.document.domain ;
|
36
|
+
break ;
|
37
|
+
}
|
38
|
+
catch( e ) {}
|
39
|
+
|
40
|
+
// Remove a domain part: www.mytest.example.com => mytest.example.com => example.com ...
|
41
|
+
d = d.replace( /.*?(?:\.|$)/, '' ) ;
|
42
|
+
|
43
|
+
if ( d.length == 0 )
|
44
|
+
break ; // It was not able to detect the domain.
|
45
|
+
|
46
|
+
try
|
47
|
+
{
|
48
|
+
document.domain = d ;
|
49
|
+
}
|
50
|
+
catch (e)
|
51
|
+
{
|
52
|
+
break ;
|
53
|
+
}
|
54
|
+
}
|
55
|
+
})() ;
|
56
|
+
|
57
|
+
// Attention: FCKConfig must be available in the page.
|
58
|
+
function GetCommonDialogCss( prefix )
|
59
|
+
{
|
60
|
+
// CSS minified by http://iceyboard.no-ip.org/projects/css_compressor
|
61
|
+
return FCKConfig.BasePath + 'dialog/common/' + '|.ImagePreviewArea{border:#000 1px solid;overflow:auto;width:100%;height:170px;background-color:#fff}.FlashPreviewArea{border:#000 1px solid;padding:5px;overflow:auto;width:100%;height:170px;background-color:#fff}.BtnReset{float:left;background-position:center center;background-image:url(images/reset.gif);width:16px;height:16px;background-repeat:no-repeat;border:1px none;font-size:1px}.BtnLocked,.BtnUnlocked{float:left;background-position:center center;background-image:url(images/locked.gif);width:16px;height:16px;background-repeat:no-repeat;border:none 1px;font-size:1px}.BtnUnlocked{background-image:url(images/unlocked.gif)}.BtnOver{border:outset 1px;cursor:pointer;cursor:hand}' ;
|
62
|
+
}
|
63
|
+
|
24
64
|
// Gets a element by its Id. Used for shorter coding.
|
25
65
|
function GetE( elementId )
|
26
66
|
{
|
@@ -57,35 +97,48 @@ function GetAttribute( element, attName, valueIfNull )
|
|
57
97
|
return ( oValue == null ? valueIfNull : oValue ) ;
|
58
98
|
}
|
59
99
|
|
60
|
-
|
100
|
+
function SelectField( elementId )
|
61
101
|
{
|
62
|
-
|
63
|
-
|
64
|
-
Left : 37,
|
65
|
-
Right : 39,
|
66
|
-
'U+00007F' : 46 // Delete
|
67
|
-
}
|
102
|
+
var element = GetE( elementId ) ;
|
103
|
+
element.focus() ;
|
68
104
|
|
69
|
-
//
|
70
|
-
|
71
|
-
|
72
|
-
if ( !e )
|
73
|
-
e = event ;
|
74
|
-
|
75
|
-
var iCode = ( e.keyCode || e.charCode ) ;
|
76
|
-
|
77
|
-
if ( !iCode && e.keyIdentifier && ( e.keyIdentifier in KeyIdentifierMap ) )
|
78
|
-
iCode = KeyIdentifierMap[ e.keyIdentifier ] ;
|
79
|
-
|
80
|
-
return (
|
81
|
-
( iCode >= 48 && iCode <= 57 ) // Numbers
|
82
|
-
|| (iCode >= 35 && iCode <= 40) // Arrows, Home, End
|
83
|
-
|| iCode == 8 // Backspace
|
84
|
-
|| iCode == 46 // Delete
|
85
|
-
|| iCode == 9 // Tab
|
86
|
-
) ;
|
105
|
+
// element.select may not be available for some fields (like <select>).
|
106
|
+
if ( element.select )
|
107
|
+
element.select() ;
|
87
108
|
}
|
88
109
|
|
110
|
+
// Functions used by text fields to accept numbers only.
|
111
|
+
var IsDigit = ( function()
|
112
|
+
{
|
113
|
+
var KeyIdentifierMap =
|
114
|
+
{
|
115
|
+
End : 35,
|
116
|
+
Home : 36,
|
117
|
+
Left : 37,
|
118
|
+
Right : 39,
|
119
|
+
'U+00007F' : 46 // Delete
|
120
|
+
} ;
|
121
|
+
|
122
|
+
return function ( e )
|
123
|
+
{
|
124
|
+
if ( !e )
|
125
|
+
e = event ;
|
126
|
+
|
127
|
+
var iCode = ( e.keyCode || e.charCode ) ;
|
128
|
+
|
129
|
+
if ( !iCode && e.keyIdentifier && ( e.keyIdentifier in KeyIdentifierMap ) )
|
130
|
+
iCode = KeyIdentifierMap[ e.keyIdentifier ] ;
|
131
|
+
|
132
|
+
return (
|
133
|
+
( iCode >= 48 && iCode <= 57 ) // Numbers
|
134
|
+
|| (iCode >= 35 && iCode <= 40) // Arrows, Home, End
|
135
|
+
|| iCode == 8 // Backspace
|
136
|
+
|| iCode == 46 // Delete
|
137
|
+
|| iCode == 9 // Tab
|
138
|
+
) ;
|
139
|
+
}
|
140
|
+
} )() ;
|
141
|
+
|
89
142
|
String.prototype.Trim = function()
|
90
143
|
{
|
91
144
|
return this.replace( /(^\s*)|(\s*$)/g, '' ) ;
|
@@ -163,3 +216,123 @@ function OpenFileBrowser( url, width, height )
|
|
163
216
|
else
|
164
217
|
window.open( url, 'FCKBrowseWindow', sOptions ) ;
|
165
218
|
}
|
219
|
+
|
220
|
+
/**
|
221
|
+
Utility function to create/update an element with a name attribute in IE, so it behaves properly when moved around
|
222
|
+
It also allows to change the name or other special attributes in an existing node
|
223
|
+
oEditor : instance of FCKeditor where the element will be created
|
224
|
+
oOriginal : current element being edited or null if it has to be created
|
225
|
+
nodeName : string with the name of the element to create
|
226
|
+
oAttributes : Hash object with the attributes that must be set at creation time in IE
|
227
|
+
Those attributes will be set also after the element has been
|
228
|
+
created for any other browser to avoid redudant code
|
229
|
+
*/
|
230
|
+
function CreateNamedElement( oEditor, oOriginal, nodeName, oAttributes )
|
231
|
+
{
|
232
|
+
var oNewNode ;
|
233
|
+
|
234
|
+
// IE doesn't allow easily to change properties of an existing object,
|
235
|
+
// so remove the old and force the creation of a new one.
|
236
|
+
var oldNode = null ;
|
237
|
+
if ( oOriginal && oEditor.FCKBrowserInfo.IsIE )
|
238
|
+
{
|
239
|
+
// Force the creation only if some of the special attributes have changed:
|
240
|
+
var bChanged = false;
|
241
|
+
for( var attName in oAttributes )
|
242
|
+
bChanged |= ( oOriginal.getAttribute( attName, 2) != oAttributes[attName] ) ;
|
243
|
+
|
244
|
+
if ( bChanged )
|
245
|
+
{
|
246
|
+
oldNode = oOriginal ;
|
247
|
+
oOriginal = null ;
|
248
|
+
}
|
249
|
+
}
|
250
|
+
|
251
|
+
// If the node existed (and it's not IE), then we just have to update its attributes
|
252
|
+
if ( oOriginal )
|
253
|
+
{
|
254
|
+
oNewNode = oOriginal ;
|
255
|
+
}
|
256
|
+
else
|
257
|
+
{
|
258
|
+
// #676, IE doesn't play nice with the name or type attribute
|
259
|
+
if ( oEditor.FCKBrowserInfo.IsIE )
|
260
|
+
{
|
261
|
+
var sbHTML = [] ;
|
262
|
+
sbHTML.push( '<' + nodeName ) ;
|
263
|
+
for( var prop in oAttributes )
|
264
|
+
{
|
265
|
+
sbHTML.push( ' ' + prop + '="' + oAttributes[prop] + '"' ) ;
|
266
|
+
}
|
267
|
+
sbHTML.push( '>' ) ;
|
268
|
+
if ( !oEditor.FCKListsLib.EmptyElements[nodeName.toLowerCase()] )
|
269
|
+
sbHTML.push( '</' + nodeName + '>' ) ;
|
270
|
+
|
271
|
+
oNewNode = oEditor.FCK.EditorDocument.createElement( sbHTML.join('') ) ;
|
272
|
+
// Check if we are just changing the properties of an existing node: copy its properties
|
273
|
+
if ( oldNode )
|
274
|
+
{
|
275
|
+
CopyAttributes( oldNode, oNewNode, oAttributes ) ;
|
276
|
+
oEditor.FCKDomTools.MoveChildren( oldNode, oNewNode ) ;
|
277
|
+
oldNode.parentNode.removeChild( oldNode ) ;
|
278
|
+
oldNode = null ;
|
279
|
+
|
280
|
+
if ( oEditor.FCK.Selection.SelectionData )
|
281
|
+
{
|
282
|
+
// Trick to refresh the selection object and avoid error in
|
283
|
+
// fckdialog.html Selection.EnsureSelection
|
284
|
+
var oSel = oEditor.FCK.EditorDocument.selection ;
|
285
|
+
oEditor.FCK.Selection.SelectionData = oSel.createRange() ; // Now oSel.type will be 'None' reflecting the real situation
|
286
|
+
}
|
287
|
+
}
|
288
|
+
oNewNode = oEditor.FCK.InsertElement( oNewNode ) ;
|
289
|
+
|
290
|
+
// FCK.Selection.SelectionData is broken by now since we've
|
291
|
+
// deleted the previously selected element. So we need to reassign it.
|
292
|
+
if ( oEditor.FCK.Selection.SelectionData )
|
293
|
+
{
|
294
|
+
var range = oEditor.FCK.EditorDocument.body.createControlRange() ;
|
295
|
+
range.add( oNewNode ) ;
|
296
|
+
oEditor.FCK.Selection.SelectionData = range ;
|
297
|
+
}
|
298
|
+
}
|
299
|
+
else
|
300
|
+
{
|
301
|
+
oNewNode = oEditor.FCK.InsertElement( nodeName ) ;
|
302
|
+
}
|
303
|
+
}
|
304
|
+
|
305
|
+
// Set the basic attributes
|
306
|
+
for( var attName in oAttributes )
|
307
|
+
oNewNode.setAttribute( attName, oAttributes[attName], 0 ) ; // 0 : Case Insensitive
|
308
|
+
|
309
|
+
return oNewNode ;
|
310
|
+
}
|
311
|
+
|
312
|
+
// Copy all the attributes from one node to the other, kinda like a clone
|
313
|
+
// But oSkipAttributes is an object with the attributes that must NOT be copied
|
314
|
+
function CopyAttributes( oSource, oDest, oSkipAttributes )
|
315
|
+
{
|
316
|
+
var aAttributes = oSource.attributes ;
|
317
|
+
|
318
|
+
for ( var n = 0 ; n < aAttributes.length ; n++ )
|
319
|
+
{
|
320
|
+
var oAttribute = aAttributes[n] ;
|
321
|
+
|
322
|
+
if ( oAttribute.specified )
|
323
|
+
{
|
324
|
+
var sAttName = oAttribute.nodeName ;
|
325
|
+
// We can set the type only once, so do it with the proper value, not copying it.
|
326
|
+
if ( sAttName in oSkipAttributes )
|
327
|
+
continue ;
|
328
|
+
|
329
|
+
var sAttValue = oSource.getAttribute( sAttName, 2 ) ;
|
330
|
+
if ( sAttValue == null )
|
331
|
+
sAttValue = oAttribute.nodeValue ;
|
332
|
+
|
333
|
+
oDest.setAttribute( sAttName, sAttValue, 0 ) ; // 0 : Case Insensitive
|
334
|
+
}
|
335
|
+
}
|
336
|
+
// The style:
|
337
|
+
oDest.style.cssText = oSource.style.cssText ;
|
338
|
+
}
|