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
|
*
|
@@ -25,16 +25,59 @@ var FCKBlockQuoteCommand = function()
|
|
25
25
|
{
|
26
26
|
}
|
27
27
|
|
28
|
-
FCKBlockQuoteCommand.prototype =
|
28
|
+
FCKBlockQuoteCommand.prototype =
|
29
29
|
{
|
30
30
|
Execute : function()
|
31
31
|
{
|
32
32
|
FCKUndo.SaveUndoStep() ;
|
33
33
|
|
34
34
|
var state = this.GetState() ;
|
35
|
+
|
35
36
|
var range = new FCKDomRange( FCK.EditorWindow ) ;
|
36
37
|
range.MoveToSelection() ;
|
38
|
+
|
37
39
|
var bookmark = range.CreateBookmark() ;
|
40
|
+
|
41
|
+
// Kludge for #1592: if the bookmark nodes are in the beginning of
|
42
|
+
// blockquote, then move them to the nearest block element in the
|
43
|
+
// blockquote.
|
44
|
+
if ( FCKBrowserInfo.IsIE )
|
45
|
+
{
|
46
|
+
var bStart = range.GetBookmarkNode( bookmark, true ) ;
|
47
|
+
var bEnd = range.GetBookmarkNode( bookmark, false ) ;
|
48
|
+
|
49
|
+
var cursor ;
|
50
|
+
|
51
|
+
if ( bStart
|
52
|
+
&& bStart.parentNode.nodeName.IEquals( 'blockquote' )
|
53
|
+
&& !bStart.previousSibling )
|
54
|
+
{
|
55
|
+
cursor = bStart ;
|
56
|
+
while ( ( cursor = cursor.nextSibling ) )
|
57
|
+
{
|
58
|
+
if ( FCKListsLib.BlockElements[ cursor.nodeName.toLowerCase() ] )
|
59
|
+
FCKDomTools.MoveNode( bStart, cursor, true ) ;
|
60
|
+
}
|
61
|
+
}
|
62
|
+
|
63
|
+
if ( bEnd
|
64
|
+
&& bEnd.parentNode.nodeName.IEquals( 'blockquote' )
|
65
|
+
&& !bEnd.previousSibling )
|
66
|
+
{
|
67
|
+
cursor = bEnd ;
|
68
|
+
while ( ( cursor = cursor.nextSibling ) )
|
69
|
+
{
|
70
|
+
if ( FCKListsLib.BlockElements[ cursor.nodeName.toLowerCase() ] )
|
71
|
+
{
|
72
|
+
if ( cursor.firstChild == bStart )
|
73
|
+
FCKDomTools.InsertAfterNode( bStart, bEnd ) ;
|
74
|
+
else
|
75
|
+
FCKDomTools.MoveNode( bEnd, cursor, true ) ;
|
76
|
+
}
|
77
|
+
}
|
78
|
+
}
|
79
|
+
}
|
80
|
+
|
38
81
|
var iterator = new FCKDomRangeIterator( range ) ;
|
39
82
|
var block ;
|
40
83
|
|
@@ -45,6 +88,19 @@ FCKBlockQuoteCommand.prototype =
|
|
45
88
|
while ( ( block = iterator.GetNextParagraph() ) )
|
46
89
|
paragraphs.push( block ) ;
|
47
90
|
|
91
|
+
// If no paragraphs, create one from the current selection position.
|
92
|
+
if ( paragraphs.length < 1 )
|
93
|
+
{
|
94
|
+
para = range.Window.document.createElement( FCKConfig.EnterMode.IEquals( 'p' ) ? 'p' : 'div' ) ;
|
95
|
+
range.InsertNode( para ) ;
|
96
|
+
para.appendChild( range.Window.document.createTextNode( '\ufeff' ) ) ;
|
97
|
+
range.MoveToBookmark( bookmark ) ;
|
98
|
+
range.MoveToNodeContents( para ) ;
|
99
|
+
range.Collapse( true ) ;
|
100
|
+
bookmark = range.CreateBookmark() ;
|
101
|
+
paragraphs.push( para ) ;
|
102
|
+
}
|
103
|
+
|
48
104
|
// Make sure all paragraphs have the same parent.
|
49
105
|
var commonParent = paragraphs[0].parentNode ;
|
50
106
|
var tmp = [] ;
|
@@ -70,7 +126,7 @@ FCKBlockQuoteCommand.prototype =
|
|
70
126
|
block = tmp.shift() ;
|
71
127
|
if ( block.nodeName.IEquals( 'blockquote' ) )
|
72
128
|
{
|
73
|
-
var docFrag = block.
|
129
|
+
var docFrag = FCKTools.GetElementDocument( block ).createDocumentFragment() ;
|
74
130
|
while ( block.firstChild )
|
75
131
|
{
|
76
132
|
docFrag.appendChild( block.removeChild( block.firstChild ) ) ;
|
@@ -147,17 +203,17 @@ FCKBlockQuoteCommand.prototype =
|
|
147
203
|
var firstTime = true ;
|
148
204
|
if ( node.nodeName.IEquals( 'div' ) )
|
149
205
|
{
|
150
|
-
var docFrag = node.
|
151
|
-
var needBeginBr = firstTime && node.previousSibling &&
|
206
|
+
var docFrag = FCKTools.GetElementDocument( node ).createDocumentFragment() ;
|
207
|
+
var needBeginBr = firstTime && node.previousSibling &&
|
152
208
|
!FCKListsLib.BlockBoundaries[node.previousSibling.nodeName.toLowerCase()] ;
|
153
209
|
if ( firstTime && needBeginBr )
|
154
|
-
docFrag.appendChild( node.
|
155
|
-
var needEndBr = node.nextSibling &&
|
210
|
+
docFrag.appendChild( FCKTools.GetElementDocument( node ).createElement( 'br' ) ) ;
|
211
|
+
var needEndBr = node.nextSibling &&
|
156
212
|
!FCKListsLib.BlockBoundaries[node.nextSibling.nodeName.toLowerCase()] ;
|
157
213
|
while ( node.firstChild )
|
158
214
|
docFrag.appendChild( node.removeChild( node.firstChild ) ) ;
|
159
215
|
if ( needEndBr )
|
160
|
-
docFrag.appendChild( node.
|
216
|
+
docFrag.appendChild( FCKTools.GetElementDocument( node ).createElement( 'br' ) ) ;
|
161
217
|
node.parentNode.replaceChild( docFrag, node ) ;
|
162
218
|
firstTime = false ;
|
163
219
|
}
|
@@ -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
|
*
|
@@ -49,6 +49,8 @@
|
|
49
49
|
|
50
50
|
GetState : function()
|
51
51
|
{
|
52
|
+
if ( FCK.EditMode != FCK_EDITMODE_WYSIWYG )
|
53
|
+
return FCK_TRISTATE_DISABLED ;
|
52
54
|
return this.IsActive ? FCK_TRISTATE_ON : FCK_TRISTATE_OFF ;
|
53
55
|
},
|
54
56
|
|
@@ -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
|
*
|
@@ -155,7 +155,7 @@ FCKFitWindow.prototype.Execute = function()
|
|
155
155
|
//lost, so we must reset it. Also, the cursor position and selection are
|
156
156
|
//also lost, even if you comment the following line (MakeEditable).
|
157
157
|
// if ( FCKBrowserInfo.IsGecko10 ) // Initially I thought it was a FF 1.0 only problem.
|
158
|
-
if ( FCK.EditMode == FCK_EDITMODE_WYSIWYG )
|
158
|
+
if ( FCK.EditMode == FCK_EDITMODE_WYSIWYG )
|
159
159
|
FCK.EditingArea.MakeEditable() ;
|
160
160
|
|
161
161
|
FCK.Focus() ;
|
@@ -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
|
*
|
@@ -57,8 +57,8 @@ FCKIndentCommand.prototype =
|
|
57
57
|
// Two cases to handle here: either we're in a list, or not.
|
58
58
|
// If we're in a list, then the indent/outdent operations would be done on the list nodes.
|
59
59
|
// Otherwise, apply the operation on the nearest block nodes.
|
60
|
-
var nearestListBlock = FCKDomTools.GetCommonParentNode( range.StartNode || range.StartContainer ,
|
61
|
-
range.EndNode || range.EndContainer,
|
60
|
+
var nearestListBlock = FCKDomTools.GetCommonParentNode( range.StartNode || range.StartContainer ,
|
61
|
+
range.EndNode || range.EndContainer,
|
62
62
|
['ul', 'ol'] ) ;
|
63
63
|
if ( nearestListBlock )
|
64
64
|
this._IndentList( range, nearestListBlock ) ;
|
@@ -133,6 +133,8 @@ FCKIndentCommand.prototype =
|
|
133
133
|
_IndentBlock : function( range )
|
134
134
|
{
|
135
135
|
var iterator = new FCKDomRangeIterator( range ) ;
|
136
|
+
iterator.EnforceRealBlocks = true ;
|
137
|
+
|
136
138
|
range.Expand( 'block_contents' ) ;
|
137
139
|
var commonParents = FCKDomTools.GetCommonParents( range.StartContainer, range.EndContainer ) ;
|
138
140
|
var nearestParent = commonParents[commonParents.length - 1] ;
|
@@ -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
|
*
|
@@ -39,13 +39,13 @@ var FCKJustifyCommand = function( alignValue )
|
|
39
39
|
switch ( alignValue )
|
40
40
|
{
|
41
41
|
case 'left' :
|
42
|
-
return classes[0] ;
|
42
|
+
return classes[0] || null ;
|
43
43
|
case 'center' :
|
44
|
-
return classes[1] ;
|
44
|
+
return classes[1] || null ;
|
45
45
|
case 'right' :
|
46
|
-
return classes[2] ;
|
46
|
+
return classes[2] || null ;
|
47
47
|
case 'justify' :
|
48
|
-
return classes[3] ;
|
48
|
+
return classes[3] || null ;
|
49
49
|
}
|
50
50
|
}
|
51
51
|
return null ;
|
@@ -99,7 +99,7 @@ FCKJustifyCommand.prototype =
|
|
99
99
|
// Store a bookmark of the selection since the paragraph iterator might
|
100
100
|
// change the DOM tree and break selections.
|
101
101
|
var bookmark = range.CreateBookmark() ;
|
102
|
-
|
102
|
+
|
103
103
|
var cssClassName = this._CssClassName ;
|
104
104
|
|
105
105
|
// Apply alignment setting for each paragraph.
|
@@ -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
|
*
|
@@ -145,7 +145,7 @@ FCKListCommand.prototype =
|
|
145
145
|
if ( rangeQueue == null )
|
146
146
|
{
|
147
147
|
rangeQueue = [] ;
|
148
|
-
var selectionObject =
|
148
|
+
var selectionObject = FCKSelection.GetSelection() ;
|
149
149
|
if ( selectionObject && listGroups.length == 0 )
|
150
150
|
rangeQueue.push( selectionObject.getRangeAt( 0 ) ) ;
|
151
151
|
for ( var i = 1 ; selectionObject && i < selectionObject.rangeCount ; i++ )
|
@@ -252,7 +252,7 @@ FCKListCommand.prototype =
|
|
252
252
|
selectedListItems.push( itemNode ) ;
|
253
253
|
FCKDomTools.SetElementMarker( markerObj, itemNode, '_FCK_ListItem_Processed', true ) ;
|
254
254
|
}
|
255
|
-
var fakeParent = groupObj.root.
|
255
|
+
var fakeParent = FCKTools.GetElementDocument( groupObj.root ).createElement( this.TagName ) ;
|
256
256
|
for ( var i = 0 ; i < selectedListItems.length ; i++ )
|
257
257
|
{
|
258
258
|
var listIndex = selectedListItems[i]._FCK_ListArray_Index ;
|
@@ -270,7 +270,7 @@ FCKListCommand.prototype =
|
|
270
270
|
_CreateList : function( groupObj, listsCreated )
|
271
271
|
{
|
272
272
|
var contents = groupObj.contents ;
|
273
|
-
var doc = groupObj.root
|
273
|
+
var doc = FCKTools.GetElementDocument( groupObj.root ) ;
|
274
274
|
var listContents = [] ;
|
275
275
|
|
276
276
|
// It is possible to have the contents returned by DomRangeIterator to be the same as the root.
|
@@ -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
|
*
|
@@ -33,5 +33,7 @@ FCKNamedCommand.prototype.Execute = function()
|
|
33
33
|
|
34
34
|
FCKNamedCommand.prototype.GetState = function()
|
35
35
|
{
|
36
|
+
if ( FCK.EditMode != FCK_EDITMODE_WYSIWYG )
|
37
|
+
return FCK_TRISTATE_DISABLED ;
|
36
38
|
return FCK.GetNamedCommandState( this.Name ) ;
|
37
39
|
}
|
@@ -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
|
*
|
@@ -34,5 +34,7 @@ FCKPastePlainTextCommand.prototype.Execute = function()
|
|
34
34
|
|
35
35
|
FCKPastePlainTextCommand.prototype.GetState = function()
|
36
36
|
{
|
37
|
+
if ( FCK.EditMode != FCK_EDITMODE_WYSIWYG )
|
38
|
+
return FCK_TRISTATE_DISABLED ;
|
37
39
|
return FCK.GetNamedCommandState( 'Paste' ) ;
|
38
40
|
}
|
@@ -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
|
*
|
@@ -33,7 +33,7 @@ FCKPasteWordCommand.prototype.Execute = function()
|
|
33
33
|
|
34
34
|
FCKPasteWordCommand.prototype.GetState = function()
|
35
35
|
{
|
36
|
-
if ( FCKConfig.ForcePasteAsPlainText )
|
36
|
+
if ( FCK.EditMode != FCK_EDITMODE_WYSIWYG || FCKConfig.ForcePasteAsPlainText )
|
37
37
|
return FCK_TRISTATE_DISABLED ;
|
38
38
|
else
|
39
39
|
return FCK.GetNamedCommandState( 'Paste' ) ;
|
@@ -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
|
*
|
@@ -42,4 +42,4 @@
|
|
42
42
|
{
|
43
43
|
return FCK.EditorWindow ? FCK_TRISTATE_OFF : FCK_TRISTATE_DISABLED ;
|
44
44
|
}
|
45
|
-
};
|
45
|
+
};
|
@@ -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
|
*
|
@@ -52,14 +52,12 @@ FCKShowBlockCommand.prototype.GetState = function()
|
|
52
52
|
if ( FCK.EditMode != FCK_EDITMODE_WYSIWYG )
|
53
53
|
return FCK_TRISTATE_DISABLED ;
|
54
54
|
|
55
|
-
// On some cases FCK.EditorDocument.body is not yet available
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
catch (e)
|
62
|
-
{}
|
55
|
+
// On some cases FCK.EditorDocument.body is not yet available
|
56
|
+
if ( !FCK.EditorDocument )
|
57
|
+
return FCK_TRISTATE_OFF ;
|
58
|
+
|
59
|
+
if ( /FCK__ShowBlocks(?:\s|$)/.test( FCK.EditorDocument.body.className ) )
|
60
|
+
return FCK_TRISTATE_ON ;
|
63
61
|
|
64
62
|
return FCK_TRISTATE_OFF ;
|
65
63
|
}
|
data/public/javascripts/fckeditor/editor/_source/commandclasses/fckspellcheckcommand_gecko.js
CHANGED
@@ -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,5 +35,7 @@ FCKSpellCheckCommand.prototype.Execute = function()
|
|
35
35
|
|
36
36
|
FCKSpellCheckCommand.prototype.GetState = function()
|
37
37
|
{
|
38
|
+
if ( FCK.EditMode != FCK_EDITMODE_WYSIWYG )
|
39
|
+
return FCK_TRISTATE_DISABLED ;
|
38
40
|
return this.IsEnabled ? FCK_TRISTATE_OFF : FCK_TRISTATE_DISABLED ;
|
39
|
-
}
|
41
|
+
}
|
@@ -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
|
*
|
@@ -63,5 +63,7 @@ FCKSpellCheckCommand.prototype._RunIeSpell = function()
|
|
63
63
|
|
64
64
|
FCKSpellCheckCommand.prototype.GetState = function()
|
65
65
|
{
|
66
|
+
if ( FCK.EditMode != FCK_EDITMODE_WYSIWYG )
|
67
|
+
return FCK_TRISTATE_DISABLED ;
|
66
68
|
return this.IsEnabled ? FCK_TRISTATE_OFF : FCK_TRISTATE_DISABLED ;
|
67
|
-
}
|
69
|
+
}
|
@@ -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
|
*
|
@@ -27,7 +27,7 @@ var FCKStyleCommand = function()
|
|
27
27
|
FCKStyleCommand.prototype =
|
28
28
|
{
|
29
29
|
Name : 'Style',
|
30
|
-
|
30
|
+
|
31
31
|
Execute : function( styleName, styleComboItem )
|
32
32
|
{
|
33
33
|
FCKUndo.SaveUndoStep() ;
|
@@ -45,7 +45,7 @@ FCKStyleCommand.prototype =
|
|
45
45
|
|
46
46
|
GetState : function()
|
47
47
|
{
|
48
|
-
if ( !FCK.EditorDocument )
|
48
|
+
if ( FCK.EditMode != FCK_EDITMODE_WYSIWYG || !FCK.EditorDocument )
|
49
49
|
return FCK_TRISTATE_DISABLED ;
|
50
50
|
|
51
51
|
if ( FCKSelection.GetType() == 'Control' )
|
@@ -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,7 +35,7 @@ FCKTableCommand.prototype.Execute = function()
|
|
35
35
|
{
|
36
36
|
switch ( this.Name )
|
37
37
|
{
|
38
|
-
case 'TableMergeRight' :
|
38
|
+
case 'TableMergeRight' :
|
39
39
|
return FCKTableHandler.MergeRight() ;
|
40
40
|
case 'TableMergeDown' :
|
41
41
|
return FCKTableHandler.MergeDown() ;
|
@@ -88,7 +88,7 @@ FCKTableCommand.prototype.GetState = function()
|
|
88
88
|
else
|
89
89
|
return FCK_TRISTATE_DISABLED ;
|
90
90
|
case 'TableMergeCells' :
|
91
|
-
if ( FCKTableHandler.CheckIsSelectionRectangular()
|
91
|
+
if ( FCKTableHandler.CheckIsSelectionRectangular()
|
92
92
|
&& FCKTableHandler.GetSelectedCells().length > 1 )
|
93
93
|
return FCK_TRISTATE_OFF ;
|
94
94
|
else
|
@@ -102,5 +102,5 @@ FCKTableCommand.prototype.GetState = function()
|
|
102
102
|
}
|
103
103
|
}
|
104
104
|
else
|
105
|
-
return FCK_TRISTATE_DISABLED;
|
105
|
+
return FCK_TRISTATE_DISABLED;
|
106
106
|
}
|
@@ -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
|
*
|
@@ -39,9 +39,10 @@ var FCKTextColorCommand = function( type )
|
|
39
39
|
oWindow = window.parent ;
|
40
40
|
|
41
41
|
this._Panel = new FCKPanel( oWindow ) ;
|
42
|
-
this._Panel.AppendStyleSheet( FCKConfig.
|
42
|
+
this._Panel.AppendStyleSheet( FCKConfig.SkinEditorCSS ) ;
|
43
43
|
this._Panel.MainNode.className = 'FCK_Panel' ;
|
44
44
|
this._CreatePanelBody( this._Panel.Document, this._Panel.MainNode ) ;
|
45
|
+
FCK.ToolbarSet.ToolbarItems.GetItem( this.Name ).RegisterPanel( this._Panel ) ;
|
45
46
|
|
46
47
|
FCKTools.DisableSelection( this._Panel.Document.body ) ;
|
47
48
|
}
|
@@ -54,6 +55,8 @@ FCKTextColorCommand.prototype.Execute = function( panelX, panelY, relElement )
|
|
54
55
|
|
55
56
|
FCKTextColorCommand.prototype.SetColor = function( color )
|
56
57
|
{
|
58
|
+
FCKUndo.SaveUndoStep() ;
|
59
|
+
|
57
60
|
var style = FCKStyles.GetStyle( '_FCK_' +
|
58
61
|
( this.Type == 'ForeColor' ? 'Color' : 'BackColor' ) ) ;
|
59
62
|
|
@@ -65,12 +68,16 @@ FCKTextColorCommand.prototype.SetColor = function( color )
|
|
65
68
|
FCKStyles.ApplyStyle( style ) ;
|
66
69
|
}
|
67
70
|
|
71
|
+
FCKUndo.SaveUndoStep() ;
|
72
|
+
|
68
73
|
FCK.Focus() ;
|
69
74
|
FCK.Events.FireEvent( 'OnSelectionChange' ) ;
|
70
75
|
}
|
71
76
|
|
72
77
|
FCKTextColorCommand.prototype.GetState = function()
|
73
78
|
{
|
79
|
+
if ( FCK.EditMode != FCK_EDITMODE_WYSIWYG )
|
80
|
+
return FCK_TRISTATE_DISABLED ;
|
74
81
|
return FCK_TRISTATE_OFF ;
|
75
82
|
}
|
76
83
|
|
@@ -102,7 +109,8 @@ function FCKTextColorCommand_MoreOnClick( ev, command )
|
|
102
109
|
{
|
103
110
|
this.className = 'ColorDeselected' ;
|
104
111
|
command._Panel.Hide() ;
|
105
|
-
FCKDialog.OpenDialog( 'FCKDialog_Color', FCKLang.DlgColorTitle, 'dialog/fck_colorselector.html',
|
112
|
+
FCKDialog.OpenDialog( 'FCKDialog_Color', FCKLang.DlgColorTitle, 'dialog/fck_colorselector.html', 410, 320,
|
113
|
+
FCKTools.Bind( command, command.SetColor ) ) ;
|
106
114
|
}
|
107
115
|
|
108
116
|
FCKTextColorCommand.prototype._CreatePanelBody = function( targetDocument, targetDiv )
|
@@ -141,7 +149,8 @@ FCKTextColorCommand.prototype._CreatePanelBody = function( targetDocument, targe
|
|
141
149
|
|
142
150
|
FCKTools.AddEventListenerEx( oDiv, 'click', FCKTextColorCommand_AutoOnClick, this ) ;
|
143
151
|
|
144
|
-
|
152
|
+
// Dirty hack for Opera, Safari and Firefox 3.
|
153
|
+
if ( !FCKBrowserInfo.IsIE )
|
145
154
|
oDiv.style.width = '96%' ;
|
146
155
|
|
147
156
|
// Create an array of colors based on the configuration file.
|
@@ -153,16 +162,24 @@ FCKTextColorCommand.prototype._CreatePanelBody = function( targetDocument, targe
|
|
153
162
|
{
|
154
163
|
var oRow = oTable.insertRow(-1) ;
|
155
164
|
|
156
|
-
for ( var i = 0 ; i < 8
|
165
|
+
for ( var i = 0 ; i < 8 ; i++, iCounter++ )
|
157
166
|
{
|
158
|
-
|
159
|
-
|
160
|
-
|
167
|
+
// The div will be created even if no more colors are available.
|
168
|
+
// Extra divs will be hidden later in the code. (#1597)
|
169
|
+
if ( iCounter < aColors.length )
|
170
|
+
{
|
171
|
+
var colorParts = aColors[iCounter].split('/') ;
|
172
|
+
var colorValue = '#' + colorParts[0] ;
|
173
|
+
var colorName = colorParts[1] || colorValue ;
|
174
|
+
}
|
161
175
|
|
162
176
|
oDiv = oRow.insertCell(-1).appendChild( CreateSelectionDiv() ) ;
|
163
177
|
oDiv.innerHTML = '<div class="ColorBoxBorder"><div class="ColorBox" style="background-color: ' + colorValue + '"></div></div>' ;
|
164
178
|
|
165
|
-
|
179
|
+
if ( iCounter >= aColors.length )
|
180
|
+
oDiv.style.visibility = 'hidden' ;
|
181
|
+
else
|
182
|
+
FCKTools.AddEventListenerEx( oDiv, 'click', FCKTextColorCommand_OnClick, [ this, colorName ] ) ;
|
166
183
|
}
|
167
184
|
}
|
168
185
|
|
@@ -178,6 +195,7 @@ FCKTextColorCommand.prototype._CreatePanelBody = function( targetDocument, targe
|
|
178
195
|
FCKTools.AddEventListenerEx( oDiv, 'click', FCKTextColorCommand_MoreOnClick, this ) ;
|
179
196
|
}
|
180
197
|
|
181
|
-
|
198
|
+
// Dirty hack for Opera, Safari and Firefox 3.
|
199
|
+
if ( !FCKBrowserInfo.IsIE )
|
182
200
|
oDiv.style.width = '96%' ;
|
183
201
|
}
|