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
|
*
|
@@ -35,25 +35,25 @@ function InitializeAPI()
|
|
35
35
|
// available if the editor instance is removed ("Can't execute code
|
36
36
|
// from a freed script" error).
|
37
37
|
|
38
|
-
// Note: we check the existence of oEditor.GetParentForm because some external
|
39
|
-
// code (like JSON) can extend the Object prototype and we get then extra oEditor
|
38
|
+
// Note: we check the existence of oEditor.GetParentForm because some external
|
39
|
+
// code (like JSON) can extend the Object prototype and we get then extra oEditor
|
40
40
|
// objects that aren't really FCKeditor instances.
|
41
41
|
var sScript =
|
42
|
-
'
|
43
|
-
'Version : "2.
|
44
|
-
'VersionBuild : "
|
45
|
-
'
|
42
|
+
'window.FCKeditorAPI = {' +
|
43
|
+
'Version : "2.6",' +
|
44
|
+
'VersionBuild : "18638",' +
|
45
|
+
'Instances : new Object(),' +
|
46
46
|
|
47
47
|
'GetInstance : function( name )' +
|
48
48
|
'{' +
|
49
|
-
'return this.
|
49
|
+
'return this.Instances[ name ];' +
|
50
50
|
'},' +
|
51
51
|
|
52
52
|
'_FormSubmit : function()' +
|
53
53
|
'{' +
|
54
|
-
'for ( var name in FCKeditorAPI.
|
54
|
+
'for ( var name in FCKeditorAPI.Instances )' +
|
55
55
|
'{' +
|
56
|
-
'var oEditor = FCKeditorAPI.
|
56
|
+
'var oEditor = FCKeditorAPI.Instances[ name ] ;' +
|
57
57
|
'if ( oEditor.GetParentForm && oEditor.GetParentForm() == this )' +
|
58
58
|
'oEditor.UpdateLinkedField() ;' +
|
59
59
|
'}' +
|
@@ -111,6 +111,10 @@ function InitializeAPI()
|
|
111
111
|
// following seams to work well.
|
112
112
|
eval.call( oParentWindow, sScript ) ;
|
113
113
|
}
|
114
|
+
else if( FCKBrowserInfo.IsAIR )
|
115
|
+
{
|
116
|
+
FCKAdobeAIR.FCKeditorAPI_Evaluate( oParentWindow, sScript ) ;
|
117
|
+
}
|
114
118
|
else if ( FCKBrowserInfo.IsSafari || FCKBrowserInfo.IsGecko19 )
|
115
119
|
{
|
116
120
|
// oParentWindow.eval in Safari and Gran Paradiso executes in the calling window
|
@@ -125,10 +129,14 @@ function InitializeAPI()
|
|
125
129
|
}
|
126
130
|
|
127
131
|
FCKeditorAPI = oParentWindow.FCKeditorAPI ;
|
132
|
+
|
133
|
+
// The __Instances properly has been changed to the public Instances,
|
134
|
+
// but we should still have the "deprecated" version of it.
|
135
|
+
FCKeditorAPI.__Instances = FCKeditorAPI.Instances ;
|
128
136
|
}
|
129
137
|
|
130
138
|
// Add the current instance to the FCKeditorAPI's instances collection.
|
131
|
-
FCKeditorAPI.
|
139
|
+
FCKeditorAPI.Instances[ FCK.Name ] = FCK ;
|
132
140
|
}
|
133
141
|
|
134
142
|
// Attach to the form onsubmit event and to the form.submit().
|
@@ -158,11 +166,11 @@ function FCKeditorAPI_Cleanup()
|
|
158
166
|
{
|
159
167
|
if ( ! window.FCKUnloadFlag )
|
160
168
|
return ;
|
161
|
-
delete FCKeditorAPI.
|
169
|
+
delete FCKeditorAPI.Instances[ FCK.Name ] ;
|
162
170
|
}
|
163
171
|
function FCKeditorAPI_ConfirmCleanup()
|
164
172
|
{
|
165
173
|
window.FCKUnloadFlag = true ;
|
166
174
|
}
|
167
|
-
FCKTools.AddEventListener( window, 'unload', FCKeditorAPI_Cleanup ) ;
|
175
|
+
FCKTools.AddEventListener( window, 'unload', FCKeditorAPI_Cleanup ) ;
|
168
176
|
FCKTools.AddEventListener( window, 'beforeunload', FCKeditorAPI_ConfirmCleanup) ;
|
@@ -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
|
*
|
@@ -138,10 +138,10 @@ String.prototype.Replace = function( regExp, replacement, thisObj )
|
|
138
138
|
{
|
139
139
|
if ( typeof replacement == 'function' )
|
140
140
|
{
|
141
|
-
return this.replace( regExp,
|
142
|
-
function()
|
143
|
-
{
|
144
|
-
return replacement.apply( thisObj || this, arguments ) ;
|
141
|
+
return this.replace( regExp,
|
142
|
+
function()
|
143
|
+
{
|
144
|
+
return replacement.apply( thisObj || this, arguments ) ;
|
145
145
|
} ) ;
|
146
146
|
}
|
147
147
|
else
|
@@ -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
|
*
|
@@ -40,6 +40,8 @@ FCKScriptLoader.Load = function( scriptName )
|
|
40
40
|
if ( scriptName in FCKScriptLoader._LoadedScripts )
|
41
41
|
return ;
|
42
42
|
|
43
|
+
FCKScriptLoader._LoadedScripts[ scriptName ] = true ;
|
44
|
+
|
43
45
|
var oScriptInfo = this._Scripts[ scriptName ] ;
|
44
46
|
|
45
47
|
if ( !oScriptInfo )
|
@@ -65,8 +67,6 @@ FCKScriptLoader.Load = function( scriptName )
|
|
65
67
|
else
|
66
68
|
this._LoadScript( sBaseScriptName + '_gecko.js' ) ;
|
67
69
|
}
|
68
|
-
|
69
|
-
FCKScriptLoader._LoadedScripts[ scriptName ] = true ;
|
70
70
|
}
|
71
71
|
|
72
72
|
FCKScriptLoader._LoadScript = function( scriptPathFromSource )
|
@@ -110,7 +110,7 @@ FCKScriptLoader.AddScript( 'FCKBrowserInfo' , 'internals/' , ['FCKJSCoreExtensi
|
|
110
110
|
FCKScriptLoader.AddScript( 'FCKCodeFormatter' , 'internals/' ) ;
|
111
111
|
FCKScriptLoader.AddScript( 'FCKConfig' , 'internals/' , ['FCKBrowserInfo','FCKConstants'] ) ;
|
112
112
|
FCKScriptLoader.AddScript( 'FCKDebug' , 'internals/' , ['FCKConfig'] ) ;
|
113
|
-
FCKScriptLoader.AddScript( 'FCKDomTools' , 'internals/' , ['FCKJSCoreExtensions','FCKBrowserInfo','FCKTools'], FCK_GENERIC ) ;
|
113
|
+
FCKScriptLoader.AddScript( 'FCKDomTools' , 'internals/' , ['FCKJSCoreExtensions','FCKBrowserInfo','FCKTools','FCKDomRange'], FCK_GENERIC ) ;
|
114
114
|
FCKScriptLoader.AddScript( 'FCKListsLib' , 'internals/' ) ;
|
115
115
|
FCKScriptLoader.AddScript( 'FCKListHandler' , 'internals/' , ['FCKConfig', 'FCKDocumentFragment', 'FCKJSCoreExtensions','FCKDomTools'], FCK_GENERIC ) ;
|
116
116
|
FCKScriptLoader.AddScript( 'FCKRegexLib' , 'internals/' ) ;
|
@@ -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
|
*
|
@@ -32,6 +32,15 @@ var FCK =
|
|
32
32
|
HasFocus : false,
|
33
33
|
DataProcessor : new FCKDataProcessor(),
|
34
34
|
|
35
|
+
GetInstanceObject : (function()
|
36
|
+
{
|
37
|
+
var w = window ;
|
38
|
+
return function( name )
|
39
|
+
{
|
40
|
+
return w[name] ;
|
41
|
+
}
|
42
|
+
})(),
|
43
|
+
|
35
44
|
AttachToOnSelectionChange : function( functionPointer )
|
36
45
|
{
|
37
46
|
this.Events.AttachEvent( 'OnSelectionChange', functionPointer ) ;
|
@@ -56,7 +65,13 @@ var FCK =
|
|
56
65
|
if ( this.EditMode == FCK_EDITMODE_SOURCE )
|
57
66
|
return ( this.StartupValue != this.EditingArea.Textarea.value ) ;
|
58
67
|
else
|
68
|
+
{
|
69
|
+
// It can happen switching between design and source mode in Gecko
|
70
|
+
if ( ! this.EditorDocument )
|
71
|
+
return false ;
|
72
|
+
|
59
73
|
return ( this.StartupValue != this.EditorDocument.body.innerHTML ) ;
|
74
|
+
}
|
60
75
|
},
|
61
76
|
|
62
77
|
ResetIsDirty : function()
|
@@ -104,6 +119,12 @@ var FCK =
|
|
104
119
|
|
105
120
|
// Tab key handling for source mode.
|
106
121
|
FCKTools.AddEventListener( document, "keydown", this._TabKeyHandler ) ;
|
122
|
+
|
123
|
+
// Add selection change listeners. They must be attached only once.
|
124
|
+
this.AttachToOnSelectionChange( _FCK_PaddingNodeListener ) ;
|
125
|
+
if ( FCKBrowserInfo.IsGecko )
|
126
|
+
this.AttachToOnSelectionChange( this._ExecCheckEmptyBlock ) ;
|
127
|
+
|
107
128
|
},
|
108
129
|
|
109
130
|
Focus : function()
|
@@ -164,7 +185,11 @@ var FCK =
|
|
164
185
|
{
|
165
186
|
// Element Node.
|
166
187
|
case 1 :
|
167
|
-
|
188
|
+
var nodeName = oNode.nodeName.toLowerCase() ;
|
189
|
+
if ( !FCKListsLib.BlockElements[ nodeName ] &&
|
190
|
+
nodeName != 'li' &&
|
191
|
+
!oNode.getAttribute('_fckfakelement') &&
|
192
|
+
oNode.getAttribute('_moz_dirty') == null )
|
168
193
|
bMoveNode = true ;
|
169
194
|
break ;
|
170
195
|
|
@@ -256,15 +281,43 @@ var FCK =
|
|
256
281
|
|
257
282
|
OnDoubleClick : function( element )
|
258
283
|
{
|
259
|
-
var
|
260
|
-
|
261
|
-
|
284
|
+
var oCalls = FCK.RegisteredDoubleClickHandlers[ element.tagName.toUpperCase() ] ;
|
285
|
+
|
286
|
+
if ( oCalls )
|
287
|
+
{
|
288
|
+
for ( var i = 0 ; i < oCalls.length ; i++ )
|
289
|
+
oCalls[ i ]( element ) ;
|
290
|
+
}
|
291
|
+
|
292
|
+
// Generic handler for any element
|
293
|
+
oCalls = FCK.RegisteredDoubleClickHandlers[ '*' ] ;
|
294
|
+
|
295
|
+
if ( oCalls )
|
296
|
+
{
|
297
|
+
for ( var i = 0 ; i < oCalls.length ; i++ )
|
298
|
+
oCalls[ i ]( element ) ;
|
299
|
+
}
|
300
|
+
|
262
301
|
},
|
263
302
|
|
264
303
|
// Register objects that can handle double click operations.
|
265
304
|
RegisterDoubleClickHandler : function( handlerFunction, tag )
|
266
305
|
{
|
267
|
-
|
306
|
+
var nodeName = tag || '*' ;
|
307
|
+
nodeName = nodeName.toUpperCase() ;
|
308
|
+
|
309
|
+
var aTargets ;
|
310
|
+
|
311
|
+
if ( !( aTargets = FCK.RegisteredDoubleClickHandlers[ nodeName ] ) )
|
312
|
+
FCK.RegisteredDoubleClickHandlers[ nodeName ] = [ handlerFunction ] ;
|
313
|
+
else
|
314
|
+
{
|
315
|
+
// Check that the event handler isn't already registered with the same listener
|
316
|
+
// It doesn't detect function pointers belonging to an object (at least in Gecko)
|
317
|
+
if ( aTargets.IndexOf( handlerFunction ) == -1 )
|
318
|
+
aTargets.push( handlerFunction ) ;
|
319
|
+
}
|
320
|
+
|
268
321
|
},
|
269
322
|
|
270
323
|
OnAfterSetHTML : function()
|
@@ -286,6 +339,9 @@ var FCK =
|
|
286
339
|
// <IMG> src
|
287
340
|
html = html.replace( FCKRegexLib.ProtectUrlsImg , '$& _fcksavedurl=$1' ) ;
|
288
341
|
|
342
|
+
// <AREA> href
|
343
|
+
html = html.replace( FCKRegexLib.ProtectUrlsArea , '$& _fcksavedurl=$1' ) ;
|
344
|
+
|
289
345
|
return html ;
|
290
346
|
},
|
291
347
|
|
@@ -307,7 +363,7 @@ var FCK =
|
|
307
363
|
|
308
364
|
// IE doesn't support <abbr> and it breaks it. Let's protect it.
|
309
365
|
if ( FCKBrowserInfo.IsIE )
|
310
|
-
sTags += sTags.length > 0 ? '|ABBR|XML|EMBED' : 'ABBR|XML|EMBED' ;
|
366
|
+
sTags += sTags.length > 0 ? '|ABBR|XML|EMBED|OBJECT' : 'ABBR|XML|EMBED|OBJECT' ;
|
311
367
|
|
312
368
|
var oRegex ;
|
313
369
|
if ( sTags.length > 0 )
|
@@ -340,6 +396,12 @@ var FCK =
|
|
340
396
|
{
|
341
397
|
this.EditingArea.Mode = FCK.EditMode ;
|
342
398
|
|
399
|
+
// If there was an onSelectionChange listener in IE we must remove it to avoid crashes #1498
|
400
|
+
if ( FCKBrowserInfo.IsIE && FCK.EditorDocument )
|
401
|
+
{
|
402
|
+
FCK.EditorDocument.detachEvent("onselectionchange", Doc_OnSelectionChange ) ;
|
403
|
+
}
|
404
|
+
|
343
405
|
if ( FCK.EditMode == FCK_EDITMODE_WYSIWYG )
|
344
406
|
{
|
345
407
|
// Save the resetIsDirty for later use (async)
|
@@ -377,9 +439,9 @@ var FCK =
|
|
377
439
|
if ( FCKBrowserInfo.IsIE )
|
378
440
|
sHeadExtra += FCK._GetBehaviorsStyle() ;
|
379
441
|
else if ( FCKConfig.ShowBorders )
|
380
|
-
sHeadExtra +=
|
442
|
+
sHeadExtra += FCKTools.GetStyleHtml( FCK_ShowTableBordersCSS, true ) ;
|
381
443
|
|
382
|
-
sHeadExtra +=
|
444
|
+
sHeadExtra += FCKTools.GetStyleHtml( FCK_InternalCSS, true ) ;
|
383
445
|
|
384
446
|
// Attention: do not change it before testing it well (sample07)!
|
385
447
|
// This is tricky... if the head ends with <meta ... content type>,
|
@@ -423,10 +485,6 @@ var FCK =
|
|
423
485
|
window.onresize() ;
|
424
486
|
},
|
425
487
|
|
426
|
-
// For the FocusManager
|
427
|
-
HasFocus : false,
|
428
|
-
|
429
|
-
|
430
488
|
// This collection is used by the browser specific implementations to tell
|
431
489
|
// which named commands must be handled separately.
|
432
490
|
RedirectNamedCommands : new Object(),
|
@@ -505,11 +563,6 @@ var FCK =
|
|
505
563
|
|
506
564
|
Preview : function()
|
507
565
|
{
|
508
|
-
var iWidth = FCKConfig.ScreenWidth * 0.8 ;
|
509
|
-
var iHeight = FCKConfig.ScreenHeight * 0.7 ;
|
510
|
-
var iLeft = ( FCKConfig.ScreenWidth - iWidth ) / 2 ;
|
511
|
-
var oWindow = window.open( '', null, 'toolbar=yes,location=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=' + iWidth + ',height=' + iHeight + ',left=' + iLeft ) ;
|
512
|
-
|
513
566
|
var sHTML ;
|
514
567
|
|
515
568
|
if ( FCKConfig.FullPage )
|
@@ -533,8 +586,31 @@ var FCK =
|
|
533
586
|
'</body></html>' ;
|
534
587
|
}
|
535
588
|
|
536
|
-
|
537
|
-
|
589
|
+
var iWidth = FCKConfig.ScreenWidth * 0.8 ;
|
590
|
+
var iHeight = FCKConfig.ScreenHeight * 0.7 ;
|
591
|
+
var iLeft = ( FCKConfig.ScreenWidth - iWidth ) / 2 ;
|
592
|
+
|
593
|
+
var sOpenUrl = '' ;
|
594
|
+
if ( FCK_IS_CUSTOM_DOMAIN && FCKBrowserInfo.IsIE)
|
595
|
+
{
|
596
|
+
window._FCKHtmlToLoad = sHTML ;
|
597
|
+
sOpenUrl = 'javascript:void( (function(){' +
|
598
|
+
'document.open() ;' +
|
599
|
+
'document.domain="' + document.domain + '" ;' +
|
600
|
+
'document.write( window.opener._FCKHtmlToLoad );' +
|
601
|
+
'document.close() ;' +
|
602
|
+
'window.opener._FCKHtmlToLoad = null ;' +
|
603
|
+
'})() )' ;
|
604
|
+
}
|
605
|
+
|
606
|
+
var oWindow = window.open( sOpenUrl, null, 'toolbar=yes,location=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=' + iWidth + ',height=' + iHeight + ',left=' + iLeft ) ;
|
607
|
+
|
608
|
+
if ( !FCK_IS_CUSTOM_DOMAIN || !FCKBrowserInfo.IsIE)
|
609
|
+
{
|
610
|
+
oWindow.document.write( sHTML );
|
611
|
+
oWindow.document.close();
|
612
|
+
}
|
613
|
+
|
538
614
|
},
|
539
615
|
|
540
616
|
SwitchEditMode : function( noUndo )
|
@@ -582,6 +658,8 @@ var FCK =
|
|
582
658
|
|
583
659
|
var elementName = element.nodeName.toLowerCase() ;
|
584
660
|
|
661
|
+
FCKSelection.Restore() ;
|
662
|
+
|
585
663
|
// Create a range for the selection. V3 will have a new selection
|
586
664
|
// object that may internally supply this feature.
|
587
665
|
var range = new FCKDomRange( this.EditorWindow ) ;
|
@@ -591,7 +669,7 @@ var FCK =
|
|
591
669
|
range.SplitBlock() ;
|
592
670
|
range.InsertNode( element ) ;
|
593
671
|
|
594
|
-
var next = FCKDomTools.GetNextSourceElement( element, false, null, [ 'hr','br','param','img','area','input' ] ) ;
|
672
|
+
var next = FCKDomTools.GetNextSourceElement( element, false, null, [ 'hr','br','param','img','area','input' ], true ) ;
|
595
673
|
|
596
674
|
// Be sure that we have something after the new element, so we can move the cursor there.
|
597
675
|
if ( !next && FCKConfig.EnterMode != 'br')
|
@@ -783,7 +861,9 @@ function _FCK_PaddingNodeListener()
|
|
783
861
|
|
784
862
|
if ( ! FCKBrowserInfo.IsIE && FCKDomTools.PaddingNode )
|
785
863
|
{
|
786
|
-
|
864
|
+
// Prevent the caret from going between the body and the padding node in Firefox.
|
865
|
+
// i.e. <body>|<p></p></body>
|
866
|
+
var sel = FCKSelection.GetSelection() ;
|
787
867
|
if ( sel && sel.rangeCount == 1 )
|
788
868
|
{
|
789
869
|
var range = sel.getRangeAt( 0 ) ;
|
@@ -796,6 +876,31 @@ function _FCK_PaddingNodeListener()
|
|
796
876
|
}
|
797
877
|
}
|
798
878
|
}
|
879
|
+
else if ( FCKDomTools.PaddingNode )
|
880
|
+
{
|
881
|
+
// Prevent the caret from going into an empty body but not into the padding node in IE.
|
882
|
+
// i.e. <body><p></p>|</body>
|
883
|
+
var parentElement = FCKSelection.GetParentElement() ;
|
884
|
+
var paddingNode = FCKDomTools.PaddingNode ;
|
885
|
+
if ( parentElement && parentElement.nodeName.IEquals( 'body' ) )
|
886
|
+
{
|
887
|
+
if ( FCK.EditorDocument.body.childNodes.length == 1
|
888
|
+
&& FCK.EditorDocument.body.firstChild == paddingNode )
|
889
|
+
{
|
890
|
+
var range = FCK.EditorDocument.body.createTextRange() ;
|
891
|
+
var clearContents = false ;
|
892
|
+
if ( !paddingNode.childNodes.firstChild )
|
893
|
+
{
|
894
|
+
paddingNode.appendChild( FCKTools.GetElementDocument( paddingNode ).createTextNode( '\ufeff' ) ) ;
|
895
|
+
clearContents = true ;
|
896
|
+
}
|
897
|
+
range.moveToElementText( paddingNode ) ;
|
898
|
+
range.select() ;
|
899
|
+
if ( clearContents )
|
900
|
+
range.pasteHTML( '' ) ;
|
901
|
+
}
|
902
|
+
}
|
903
|
+
}
|
799
904
|
}
|
800
905
|
|
801
906
|
function _FCK_EditingArea_OnLoad()
|
@@ -805,7 +910,6 @@ function _FCK_EditingArea_OnLoad()
|
|
805
910
|
FCK.EditorDocument = FCK.EditingArea.Document ;
|
806
911
|
|
807
912
|
FCK.InitializeBehaviors() ;
|
808
|
-
FCK.AttachToOnSelectionChange( _FCK_PaddingNodeListener ) ;
|
809
913
|
|
810
914
|
// Listen for mousedown and mouseup events for tracking drag and drops.
|
811
915
|
FCK.MouseDownFlag = false ;
|
@@ -861,25 +965,13 @@ function _FCK_EditingArea_OnLoad()
|
|
861
965
|
if ( FCK.Status != FCK_STATUS_NOTLOADED )
|
862
966
|
return ;
|
863
967
|
|
864
|
-
if ( FCKConfig.Debug )
|
865
|
-
FCKDebug._GetWindow() ;
|
866
|
-
|
867
968
|
FCK.SetStatus( FCK_STATUS_ACTIVE ) ;
|
868
969
|
}
|
869
970
|
|
870
971
|
function _FCK_GetEditorAreaStyleTags()
|
871
972
|
{
|
872
|
-
|
873
|
-
|
874
|
-
var sStyles = FCKConfig.EditorAreaStyles ;
|
875
|
-
|
876
|
-
for ( var i = 0 ; i < aCSSs.length ; i++ )
|
877
|
-
sTags += '<link href="' + aCSSs[i] + '" rel="stylesheet" type="text/css" />' ;
|
878
|
-
|
879
|
-
if ( sStyles && sStyles.length > 0 )
|
880
|
-
sTags += "<style>" + sStyles + "</style>" ;
|
881
|
-
|
882
|
-
return sTags ;
|
973
|
+
return FCKTools.GetStyleHtml( FCKConfig.EditorAreaCSS ) +
|
974
|
+
FCKTools.GetStyleHtml( FCKConfig.EditorAreaStyles ) ;
|
883
975
|
}
|
884
976
|
|
885
977
|
function _FCK_KeystrokeHandler_OnKeystroke( keystroke, keystrokeValue )
|
@@ -909,6 +1001,11 @@ function _FCK_KeystrokeHandler_OnKeystroke( keystroke, keystrokeValue )
|
|
909
1001
|
// The return value indicates if the default behavior of the keystroke must
|
910
1002
|
// be cancelled. Let's do that only if the Execute() call explicitly returns "false".
|
911
1003
|
var oCommand = FCK.Commands.GetCommand( keystrokeValue ) ;
|
1004
|
+
|
1005
|
+
// If the command is disabled then ignore the keystroke
|
1006
|
+
if ( oCommand.GetState() == FCK_TRISTATE_DISABLED )
|
1007
|
+
return false ;
|
1008
|
+
|
912
1009
|
return ( oCommand.Execute.apply( oCommand, FCKTools.ArgumentsToArray( arguments, 2 ) ) !== false ) ;
|
913
1010
|
}
|
914
1011
|
|
@@ -1048,8 +1145,22 @@ function FCKFocusManager_FireOnBlur()
|
|
1048
1145
|
|
1049
1146
|
function FCKFocusManager_Win_OnFocus_Area()
|
1050
1147
|
{
|
1148
|
+
// Check if we are already focusing the editor (to avoid loops).
|
1149
|
+
if ( FCKFocusManager._IsFocusing )
|
1150
|
+
return ;
|
1151
|
+
|
1152
|
+
FCKFocusManager._IsFocusing = true ;
|
1153
|
+
|
1051
1154
|
FCK.Focus() ;
|
1052
1155
|
FCKFocusManager_Win_OnFocus() ;
|
1156
|
+
|
1157
|
+
// The above FCK.Focus() call may trigger other focus related functions.
|
1158
|
+
// So, to avoid a loop, we delay the focusing mark removal, so it get
|
1159
|
+
// executed after all othre functions have been run.
|
1160
|
+
FCKTools.RunFunction( function()
|
1161
|
+
{
|
1162
|
+
delete FCKFocusManager._IsFocusing ;
|
1163
|
+
} ) ;
|
1053
1164
|
}
|
1054
1165
|
|
1055
1166
|
function FCKFocusManager_Win_OnFocus()
|
@@ -1062,4 +1173,3 @@ function FCKFocusManager_Win_OnFocus()
|
|
1062
1173
|
FCK.Events.FireEvent( "OnFocus" ) ;
|
1063
1174
|
}
|
1064
1175
|
}
|
1065
|
-
|