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
|
*
|
@@ -366,8 +366,8 @@ FCKTableHandler.MergeCells = function()
|
|
366
366
|
|
367
367
|
var baseColIdx = colIdx - selectionGeometry.x ;
|
368
368
|
var baseRowIdx = rowIdx - selectionGeometry.y ;
|
369
|
-
var cellContents = refCell.
|
370
|
-
for ( var i = 0 ; i < selectionGeometry.height ; i++ )
|
369
|
+
var cellContents = FCKTools.GetElementDocument( refCell ).createDocumentFragment() ;
|
370
|
+
for ( var i = 0 ; i < selectionGeometry.height ; i++ )
|
371
371
|
{
|
372
372
|
var rowChildNodesCount = 0 ;
|
373
373
|
for ( var j = 0 ; j < selectionGeometry.width ; j++ )
|
@@ -376,7 +376,7 @@ FCKTableHandler.MergeCells = function()
|
|
376
376
|
while ( currentCell.childNodes.length > 0 )
|
377
377
|
{
|
378
378
|
var node = currentCell.removeChild( currentCell.firstChild ) ;
|
379
|
-
if ( node.nodeType != 1
|
379
|
+
if ( node.nodeType != 1
|
380
380
|
|| ( node.getAttribute( 'type', 2 ) != '_moz' && node.getAttribute( '_moz_dirty' ) != null ) )
|
381
381
|
{
|
382
382
|
cellContents.appendChild( node ) ;
|
@@ -385,14 +385,14 @@ FCKTableHandler.MergeCells = function()
|
|
385
385
|
}
|
386
386
|
}
|
387
387
|
if ( rowChildNodesCount > 0 )
|
388
|
-
cellContents.appendChild( refCell.
|
388
|
+
cellContents.appendChild( FCKTools.GetElementDocument( refCell ).createElement( 'br' ) ) ;
|
389
389
|
}
|
390
390
|
|
391
391
|
this._ReplaceCellsByMarker( tableMap, '_SelectedCells', refCell ) ;
|
392
392
|
this._UnmarkCells( cells, '_SelectedCells' ) ;
|
393
393
|
this._InstallTableMap( tableMap, refCell.parentNode.parentNode ) ;
|
394
394
|
refCell.appendChild( cellContents ) ;
|
395
|
-
|
395
|
+
|
396
396
|
if ( FCKBrowserInfo.IsGeckoLike && ( ! refCell.firstChild ) )
|
397
397
|
FCKTools.AppendBogusBr( refCell ) ;
|
398
398
|
|
@@ -406,7 +406,7 @@ FCKTableHandler.MergeRight = function()
|
|
406
406
|
return ;
|
407
407
|
var refCell = target.refCell ;
|
408
408
|
var tableMap = target.tableMap ;
|
409
|
-
var nextCell = target.nextCell ;
|
409
|
+
var nextCell = target.nextCell ;
|
410
410
|
|
411
411
|
var cellContents = FCK.EditorDocument.createDocumentFragment() ;
|
412
412
|
while ( nextCell && nextCell.childNodes && nextCell.childNodes.length > 0 )
|
@@ -430,11 +430,11 @@ FCKTableHandler.MergeDown = function()
|
|
430
430
|
var tableMap = target.tableMap ;
|
431
431
|
var nextCell = target.nextCell ;
|
432
432
|
|
433
|
-
var cellContents = refCell.
|
433
|
+
var cellContents = FCKTools.GetElementDocument( refCell ).createDocumentFragment() ;
|
434
434
|
while ( nextCell && nextCell.childNodes && nextCell.childNodes.length > 0 )
|
435
435
|
cellContents.appendChild( nextCell.removeChild( nextCell.firstChild ) ) ;
|
436
436
|
if ( cellContents.firstChild )
|
437
|
-
cellContents.insertBefore( nextCell.
|
437
|
+
cellContents.insertBefore( FCKTools.GetElementDocument( nextCell ).createElement( 'br' ), cellContents.firstChild ) ;
|
438
438
|
refCell.appendChild( cellContents ) ;
|
439
439
|
this._MarkCells( [nextCell], '_Replace' ) ;
|
440
440
|
this._ReplaceCellsByMarker( tableMap, '_Replace', refCell ) ;
|
@@ -460,7 +460,7 @@ FCKTableHandler.HorizontalSplitCell = function()
|
|
460
460
|
// Splittng a multi-column cell - original cell gets ceil(colSpan/2) columns,
|
461
461
|
// new cell gets floor(colSpan/2).
|
462
462
|
var newCellSpan = Math.ceil( cellSpan / 2 ) ;
|
463
|
-
var newCell = refCell.
|
463
|
+
var newCell = FCKTools.GetElementDocument( refCell ).createElement( 'td' ) ;
|
464
464
|
if ( FCKBrowserInfo.IsGeckoLike )
|
465
465
|
FCKTools.AppendBogusBr( newCell ) ;
|
466
466
|
var startIdx = colIdx + newCellSpan ;
|
@@ -474,10 +474,10 @@ FCKTableHandler.HorizontalSplitCell = function()
|
|
474
474
|
}
|
475
475
|
else
|
476
476
|
{
|
477
|
-
// Splitting a single-column cell - add a new cell, and expand
|
477
|
+
// Splitting a single-column cell - add a new cell, and expand
|
478
478
|
// cells crossing the same column.
|
479
479
|
var newTableMap = [] ;
|
480
|
-
for ( var i = 0 ; i < tableMap.length ; i++ )
|
480
|
+
for ( var i = 0 ; i < tableMap.length ; i++ )
|
481
481
|
{
|
482
482
|
var newRow = tableMap[i].slice( 0, colIdx ) ;
|
483
483
|
if ( tableMap[i].length <= colIdx )
|
@@ -488,7 +488,7 @@ FCKTableHandler.HorizontalSplitCell = function()
|
|
488
488
|
if ( tableMap[i][colIdx] == refCell )
|
489
489
|
{
|
490
490
|
newRow.push( refCell ) ;
|
491
|
-
newRow.push( refCell.
|
491
|
+
newRow.push( FCKTools.GetElementDocument( refCell ).createElement( 'td' ) ) ;
|
492
492
|
if ( FCKBrowserInfo.IsGeckoLike )
|
493
493
|
FCKTools.AppendBogusBr( newRow[newRow.length - 1] ) ;
|
494
494
|
}
|
@@ -551,7 +551,7 @@ FCKTableHandler.VerticalSplitCell = function()
|
|
551
551
|
var newCellRowIndex = currentRowIndex + 1 ;
|
552
552
|
var newRow = FCK.EditorDocument.createElement( 'tr' ) ;
|
553
553
|
currentCell.parentNode.parentNode.insertBefore( newRow, currentCell.parentNode.parentNode.rows[newCellRowIndex] ) ;
|
554
|
-
|
554
|
+
|
555
555
|
// 2. +1 to rowSpan for all cells crossing currentCell's row.
|
556
556
|
for ( var i = 0 ; i < tableMap[currentRowIndex].length ; )
|
557
557
|
{
|
@@ -755,7 +755,7 @@ FCKTableHandler._InstallTableMap = function( tableMap, table )
|
|
755
755
|
// Insert physical rows and columns to the table.
|
756
756
|
for ( var i = 0 ; i < tableMap.length ; i++ )
|
757
757
|
{
|
758
|
-
var rowObj = table.
|
758
|
+
var rowObj = FCKTools.GetElementDocument( table ).createElement( 'tr' ) ;
|
759
759
|
for ( var j = 0 ; j < tableMap[i].length ; )
|
760
760
|
{
|
761
761
|
var cell = tableMap[i][j] ;
|
@@ -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
|
*
|
@@ -25,7 +25,7 @@ FCKTableHandler.GetSelectedCells = function()
|
|
25
25
|
{
|
26
26
|
var aCells = new Array() ;
|
27
27
|
|
28
|
-
var oSelection =
|
28
|
+
var oSelection = FCKSelection.GetSelection() ;
|
29
29
|
|
30
30
|
// If the selection is a text.
|
31
31
|
if ( oSelection.rangeCount == 1 && oSelection.anchorNode.nodeType == 3 )
|
@@ -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
|
*
|
@@ -31,7 +31,7 @@ FCKTableHandler.GetSelectedCells = function()
|
|
31
31
|
|
32
32
|
var aCells = new Array() ;
|
33
33
|
|
34
|
-
var oRange =
|
34
|
+
var oRange = FCKSelection.GetSelection().createRange() ;
|
35
35
|
// var oParent = oRange.parentElement() ;
|
36
36
|
var oParent = FCKSelection.GetParentElement() ;
|
37
37
|
|
@@ -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
|
*
|
@@ -50,7 +50,10 @@ function FCKToolbarSet_Create( overhideLocation )
|
|
50
50
|
var oOutMatch = sLocation.match( /^Out:(.+)\((\w+)\)$/ ) ;
|
51
51
|
if ( oOutMatch )
|
52
52
|
{
|
53
|
-
|
53
|
+
if ( FCKBrowserInfo.IsAIR )
|
54
|
+
FCKAdobeAIR.ToolbarSet_GetOutElement( window, oOutMatch ) ;
|
55
|
+
else
|
56
|
+
eToolbarTarget = eval( 'parent.' + oOutMatch[1] ).document.getElementById( oOutMatch[2] ) ;
|
54
57
|
}
|
55
58
|
else
|
56
59
|
{
|
@@ -90,23 +93,46 @@ function FCKToolbarSet_Create( overhideLocation )
|
|
90
93
|
|
91
94
|
// Initialize the IFRAME document body.
|
92
95
|
eTargetDocument.open() ;
|
93
|
-
eTargetDocument.write( '<html><head>' + sBase + '<script type="text/javascript"> var adjust = function() { window.frameElement.height = document.body.scrollHeight ; };
|
96
|
+
eTargetDocument.write( '<html><head>' + sBase + '<script type="text/javascript"> var adjust = function() { window.frameElement.height = document.body.scrollHeight ; }; '
|
97
|
+
+ 'window.onresize = window.onload = '
|
98
|
+
+ 'function(){' // poll scrollHeight until it no longer changes for 1 sec.
|
99
|
+
+ 'var timer = null;'
|
100
|
+
+ 'var lastHeight = -1;'
|
101
|
+
+ 'var lastChange = 0;'
|
102
|
+
+ 'var poller = function(){'
|
103
|
+
+ 'var currentHeight = document.body.scrollHeight || 0;'
|
104
|
+
+ 'var currentTime = (new Date()).getTime();'
|
105
|
+
+ 'if (currentHeight != lastHeight){'
|
106
|
+
+ 'lastChange = currentTime;'
|
107
|
+
+ 'adjust();'
|
108
|
+
+ 'lastHeight = document.body.scrollHeight;'
|
109
|
+
+ '}'
|
110
|
+
+ 'if (lastChange < currentTime - 1000) clearInterval(timer);'
|
111
|
+
+ '};'
|
112
|
+
+ 'timer = setInterval(poller, 100);'
|
113
|
+
+ '}'
|
114
|
+
+ '</script></head><body style="overflow: hidden">' + document.getElementById( 'xToolbarSpace' ).innerHTML + '</body></html>' ) ;
|
94
115
|
eTargetDocument.close() ;
|
95
116
|
|
117
|
+
if( FCKBrowserInfo.IsAIR )
|
118
|
+
FCKAdobeAIR.ToolbarSet_InitOutFrame( eTargetDocument ) ;
|
119
|
+
|
96
120
|
FCKTools.AddEventListener( eTargetDocument, 'contextmenu', FCKTools.CancelEvent ) ;
|
97
121
|
|
98
122
|
// Load external resources (must be done here, otherwise Firefox will not
|
99
123
|
// have the document DOM ready to be used right away.
|
100
|
-
FCKTools.AppendStyleSheet( eTargetDocument, FCKConfig.
|
124
|
+
FCKTools.AppendStyleSheet( eTargetDocument, FCKConfig.SkinEditorCSS ) ;
|
101
125
|
|
102
126
|
oToolbarSet = eToolbarTarget.__FCKToolbarSet = new FCKToolbarSet( eTargetDocument ) ;
|
103
127
|
oToolbarSet._IFrame = eToolbarIFrame ;
|
104
|
-
|
128
|
+
|
105
129
|
if ( FCK.IECleanup )
|
106
130
|
FCK.IECleanup.AddItem( eToolbarTarget, FCKToolbarSet_Target_Cleanup ) ;
|
107
131
|
}
|
108
132
|
|
109
133
|
oToolbarSet.CurrentInstance = FCK ;
|
134
|
+
if ( !oToolbarSet.ToolbarItems )
|
135
|
+
oToolbarSet.ToolbarItems = FCKToolbarItems ;
|
110
136
|
|
111
137
|
FCK.AttachToOnSelectionChange( oToolbarSet.RefreshItemsState ) ;
|
112
138
|
|
@@ -252,7 +278,7 @@ FCKToolbarSet.prototype.Load = function( toolbarSetName )
|
|
252
278
|
|
253
279
|
// If the configuration for the toolbar is missing some element or has any extra comma
|
254
280
|
// this item won't be valid, so skip it and keep on processing.
|
255
|
-
if ( !oToolbarItems )
|
281
|
+
if ( !oToolbarItems )
|
256
282
|
continue ;
|
257
283
|
|
258
284
|
var oToolbar ;
|
@@ -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
|
*
|
@@ -31,26 +31,120 @@ FCKTools.CreateBogusBR = function( targetDocument )
|
|
31
31
|
return eBR ;
|
32
32
|
}
|
33
33
|
|
34
|
-
|
35
|
-
|
34
|
+
/**
|
35
|
+
* Fixes relative URL entries defined inside CSS styles by appending a prefix
|
36
|
+
* to them.
|
37
|
+
* @param (String) cssStyles The CSS styles definition possibly containing url()
|
38
|
+
* paths.
|
39
|
+
* @param (String) urlFixPrefix The prefix to append to relative URLs.
|
40
|
+
*/
|
41
|
+
FCKTools.FixCssUrls = function( urlFixPrefix, cssStyles )
|
36
42
|
{
|
37
|
-
if (
|
38
|
-
return
|
43
|
+
if ( !urlFixPrefix || urlFixPrefix.length == 0 )
|
44
|
+
return cssStyles ;
|
45
|
+
|
46
|
+
return cssStyles.replace( /url\s*\(([\s'"]*)(.*?)([\s"']*)\)/g, function( match, opener, path, closer )
|
47
|
+
{
|
48
|
+
if ( /^\/|^\w?:/.test( path ) )
|
49
|
+
return match ;
|
50
|
+
else
|
51
|
+
return 'url(' + opener + urlFixPrefix + path + closer + ')' ;
|
52
|
+
} ) ;
|
53
|
+
}
|
54
|
+
|
55
|
+
FCKTools._GetUrlFixedCss = function( cssStyles, urlFixPrefix )
|
56
|
+
{
|
57
|
+
var match = cssStyles.match( /^([^|]+)\|([\s\S]*)/ ) ;
|
58
|
+
|
59
|
+
if ( match )
|
60
|
+
return FCKTools.FixCssUrls( match[1], match[2] ) ;
|
39
61
|
else
|
40
|
-
|
41
|
-
|
62
|
+
return cssStyles ;
|
63
|
+
}
|
42
64
|
|
43
|
-
|
44
|
-
|
65
|
+
/**
|
66
|
+
* Appends a <link css> or <style> element to the document.
|
67
|
+
* @param (Object) documentElement The DOM document object to which append the
|
68
|
+
* stylesheet.
|
69
|
+
* @param (Variant) cssFileOrDef A String pointing to the CSS file URL or an
|
70
|
+
* Array with many CSS file URLs or the CSS definitions for the <style>
|
71
|
+
* element.
|
72
|
+
* @return {Array} An array containing all elements created in the target
|
73
|
+
* document. It may include <link> or <style> elements, depending on the
|
74
|
+
* value passed with cssFileOrDef.
|
75
|
+
*/
|
76
|
+
FCKTools.AppendStyleSheet = function( domDocument, cssFileOrArrayOrDef )
|
77
|
+
{
|
78
|
+
if ( !cssFileOrArrayOrDef )
|
79
|
+
return [] ;
|
45
80
|
|
46
|
-
|
81
|
+
if ( typeof( cssFileOrArrayOrDef ) == 'string' )
|
82
|
+
{
|
83
|
+
// Test if the passed argument is an URL.
|
84
|
+
if ( /[\\\/\.]\w*$/.test( cssFileOrArrayOrDef ) )
|
85
|
+
{
|
86
|
+
// The string may have several URLs separated by comma.
|
87
|
+
return this.AppendStyleSheet( domDocument, cssFileOrArrayOrDef.split(',') ) ;
|
88
|
+
}
|
89
|
+
else
|
90
|
+
return [ this.AppendStyleString( domDocument, FCKTools._GetUrlFixedCss( cssFileOrArrayOrDef ) ) ] ;
|
91
|
+
}
|
92
|
+
else
|
93
|
+
{
|
94
|
+
var styles = [] ;
|
95
|
+
for ( var i = 0 ; i < cssFileOrArrayOrDef.length ; i++ )
|
96
|
+
styles.push( this._AppendStyleSheet( domDocument, cssFileOrArrayOrDef[i] ) ) ;
|
97
|
+
return styles ;
|
47
98
|
}
|
48
99
|
}
|
49
100
|
|
50
|
-
FCKTools.
|
101
|
+
FCKTools.GetStyleHtml = (function()
|
51
102
|
{
|
52
|
-
|
53
|
-
|
103
|
+
var getStyle = function( styleDef, markTemp )
|
104
|
+
{
|
105
|
+
if ( styleDef.length == 0 )
|
106
|
+
return '' ;
|
107
|
+
|
108
|
+
var temp = markTemp ? ' _fcktemp="true"' : '' ;
|
109
|
+
return '<' + 'style type="text/css"' + temp + '>' + styleDef + '<' + '/style>' ;
|
110
|
+
}
|
111
|
+
|
112
|
+
var getLink = function( cssFileUrl, markTemp )
|
113
|
+
{
|
114
|
+
if ( cssFileUrl.length == 0 )
|
115
|
+
return '' ;
|
116
|
+
|
117
|
+
var temp = markTemp ? ' _fcktemp="true"' : '' ;
|
118
|
+
return '<' + 'link href="' + cssFileUrl + '" type="text/css" rel="stylesheet" ' + temp + '/>' ;
|
119
|
+
}
|
120
|
+
|
121
|
+
return function( cssFileOrArrayOrDef, markTemp )
|
122
|
+
{
|
123
|
+
if ( !cssFileOrArrayOrDef )
|
124
|
+
return '' ;
|
125
|
+
|
126
|
+
if ( typeof( cssFileOrArrayOrDef ) == 'string' )
|
127
|
+
{
|
128
|
+
// Test if the passed argument is an URL.
|
129
|
+
if ( /[\\\/\.]\w*$/.test( cssFileOrArrayOrDef ) )
|
130
|
+
{
|
131
|
+
// The string may have several URLs separated by comma.
|
132
|
+
return this.GetStyleHtml( cssFileOrArrayOrDef.split(','), markTemp ) ;
|
133
|
+
}
|
134
|
+
else
|
135
|
+
return getStyle( this._GetUrlFixedCss( cssFileOrArrayOrDef ), markTemp ) ;
|
136
|
+
}
|
137
|
+
else
|
138
|
+
{
|
139
|
+
var html = '' ;
|
140
|
+
|
141
|
+
for ( var i = 0 ; i < cssFileOrArrayOrDef.length ; i++ )
|
142
|
+
html += getLink( cssFileOrArrayOrDef[i], markTemp ) ;
|
143
|
+
|
144
|
+
return html ;
|
145
|
+
}
|
146
|
+
}
|
147
|
+
})() ;
|
54
148
|
|
55
149
|
FCKTools.GetElementDocument = function ( element )
|
56
150
|
{
|
@@ -366,8 +460,8 @@ FCKTools.CreateEventListener = function( func, params )
|
|
366
460
|
FCKTools.IsStrictMode = function( document )
|
367
461
|
{
|
368
462
|
// There is no compatMode in Safari, but it seams that it always behave as
|
369
|
-
// CSS1Compat, so let's assume it as the default.
|
370
|
-
return ( 'CSS1Compat' == ( document.compatMode || 'CSS1Compat' ) ) ;
|
463
|
+
// CSS1Compat, so let's assume it as the default for that browser.
|
464
|
+
return ( 'CSS1Compat' == ( document.compatMode || ( FCKBrowserInfo.IsSafari ? 'CSS1Compat' : null ) ) ) ;
|
371
465
|
}
|
372
466
|
|
373
467
|
// Transforms a "arguments" object to an array.
|
@@ -423,12 +517,52 @@ FCKTools.GetDocumentPosition = function( w, node )
|
|
423
517
|
var x = 0 ;
|
424
518
|
var y = 0 ;
|
425
519
|
var curNode = node ;
|
426
|
-
|
520
|
+
var prevNode = null ;
|
521
|
+
var curWindow = FCKTools.GetElementWindow( curNode ) ;
|
522
|
+
while ( curNode && !( curWindow == w && ( curNode == w.document.body || curNode == w.document.documentElement ) ) )
|
427
523
|
{
|
428
524
|
x += curNode.offsetLeft - curNode.scrollLeft ;
|
429
525
|
y += curNode.offsetTop - curNode.scrollTop ;
|
430
|
-
|
526
|
+
|
527
|
+
if ( ! FCKBrowserInfo.IsOpera )
|
528
|
+
{
|
529
|
+
var scrollNode = prevNode ;
|
530
|
+
while ( scrollNode && scrollNode != curNode )
|
531
|
+
{
|
532
|
+
x -= scrollNode.scrollLeft ;
|
533
|
+
y -= scrollNode.scrollTop ;
|
534
|
+
scrollNode = scrollNode.parentNode ;
|
535
|
+
}
|
536
|
+
}
|
537
|
+
|
538
|
+
prevNode = curNode ;
|
539
|
+
if ( curNode.offsetParent )
|
540
|
+
curNode = curNode.offsetParent ;
|
541
|
+
else
|
542
|
+
{
|
543
|
+
if ( curWindow != w )
|
544
|
+
{
|
545
|
+
curNode = curWindow.frameElement ;
|
546
|
+
prevNode = null ;
|
547
|
+
if ( curNode )
|
548
|
+
curWindow = curNode.contentWindow.parent ;
|
549
|
+
}
|
550
|
+
else
|
551
|
+
curNode = null ;
|
552
|
+
}
|
431
553
|
}
|
554
|
+
|
555
|
+
// document.body is a special case when it comes to offsetTop and offsetLeft values.
|
556
|
+
// 1. It matters if document.body itself is a positioned element;
|
557
|
+
// 2. It matters is when we're in IE and the element has no positioned ancestor.
|
558
|
+
// Otherwise the values should be ignored.
|
559
|
+
if ( FCKDomTools.GetCurrentElementStyle( w.document.body, 'position') != 'static'
|
560
|
+
|| ( FCKBrowserInfo.IsIE && FCKDomTools.GetPositionedAncestor( node ) == null ) )
|
561
|
+
{
|
562
|
+
x += w.document.body.offsetLeft ;
|
563
|
+
y += w.document.body.offsetTop ;
|
564
|
+
}
|
565
|
+
|
432
566
|
return { "x" : x, "y" : y } ;
|
433
567
|
}
|
434
568
|
|
@@ -571,11 +705,36 @@ FCKTools.NormalizeCssText = function( unparsedCssText )
|
|
571
705
|
}
|
572
706
|
|
573
707
|
/**
|
574
|
-
*
|
575
|
-
* so it can be passed for example to an event handler,
|
576
|
-
* and then it will be executed with 'this' being the object.
|
708
|
+
* Binding the "this" reference to an object for a function.
|
577
709
|
*/
|
578
|
-
FCKTools.
|
710
|
+
FCKTools.Bind = function( subject, func )
|
579
711
|
{
|
580
|
-
return function()
|
712
|
+
return function(){ return func.apply( subject, arguments ) ; } ;
|
713
|
+
}
|
714
|
+
|
715
|
+
/**
|
716
|
+
* Retrieve the correct "empty iframe" URL for the current browser, which
|
717
|
+
* causes the minimum fuzz (e.g. security warnings in HTTPS, DNS error in
|
718
|
+
* IE5.5, etc.) for that browser, making the iframe ready to DOM use whithout
|
719
|
+
* having to loading an external file.
|
720
|
+
*/
|
721
|
+
FCKTools.GetVoidUrl = function()
|
722
|
+
{
|
723
|
+
if ( FCK_IS_CUSTOM_DOMAIN )
|
724
|
+
return "javascript: void( function(){" +
|
725
|
+
"document.open();" +
|
726
|
+
"document.write('<html><head><title></title></head><body></body></html>');" +
|
727
|
+
"document.domain = '" + FCK_RUNTIME_DOMAIN + "';" +
|
728
|
+
"document.close();" +
|
729
|
+
"}() ) ;";
|
730
|
+
|
731
|
+
if ( FCKBrowserInfo.IsIE )
|
732
|
+
{
|
733
|
+
if ( FCKBrowserInfo.IsIE7 || !FCKBrowserInfo.IsIE6 )
|
734
|
+
return "" ; // IE7+ / IE5.5
|
735
|
+
else
|
736
|
+
return "javascript: '';" ; // IE6+
|
737
|
+
}
|
738
|
+
|
739
|
+
return "javascript: void(0);" ; // All other browsers.
|
581
740
|
}
|