Wiki2GoEditor 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/bin/Wiki2Go_install_editor.rb +13 -0
- data/fckeditor/editor/_source/classes/fckcontextmenu.js +134 -0
- data/fckeditor/editor/_source/classes/fckdocumentfragment_gecko.js +46 -0
- data/fckeditor/editor/_source/classes/fckdocumentfragment_ie.js +58 -0
- data/fckeditor/editor/_source/classes/fckdomrange.js +452 -0
- data/fckeditor/editor/_source/classes/fckdomrange_gecko.js +71 -0
- data/fckeditor/editor/_source/classes/fckdomrange_ie.js +149 -0
- data/fckeditor/editor/_source/classes/fckeditingarea.js +253 -0
- data/fckeditor/editor/_source/classes/fckelementpath.js +66 -0
- data/fckeditor/editor/_source/classes/fckenterkey.js +556 -0
- data/fckeditor/editor/_source/classes/fckevents.js +53 -0
- data/fckeditor/editor/_source/classes/fckicon.js +98 -0
- data/fckeditor/editor/_source/classes/fckiecleanup.js +68 -0
- data/fckeditor/editor/_source/classes/fckimagepreloader.js +68 -0
- data/fckeditor/editor/_source/classes/fckkeystrokehandler.js +136 -0
- data/fckeditor/editor/_source/classes/fckmenublock.js +143 -0
- data/fckeditor/editor/_source/classes/fckmenublockpanel.js +54 -0
- data/fckeditor/editor/_source/classes/fckmenuitem.js +160 -0
- data/fckeditor/editor/_source/classes/fckpanel.js +303 -0
- data/fckeditor/editor/_source/classes/fckplugin.js +56 -0
- data/fckeditor/editor/_source/classes/fckspecialcombo.js +363 -0
- data/fckeditor/editor/_source/classes/fckstyledef.js +59 -0
- data/fckeditor/editor/_source/classes/fckstyledef_gecko.js +119 -0
- data/fckeditor/editor/_source/classes/fckstyledef_ie.js +142 -0
- data/fckeditor/editor/_source/classes/fckstylesloader.js +88 -0
- data/fckeditor/editor/_source/classes/fcktoolbar.js +120 -0
- data/fckeditor/editor/_source/classes/fcktoolbarbreak_gecko.js +36 -0
- data/fckeditor/editor/_source/classes/fcktoolbarbreak_ie.js +38 -0
- data/fckeditor/editor/_source/classes/fcktoolbarbutton.js +74 -0
- data/fckeditor/editor/_source/classes/fcktoolbarbuttonui.js +222 -0
- data/fckeditor/editor/_source/classes/fcktoolbarfontformatcombo.js +114 -0
- data/fckeditor/editor/_source/classes/fcktoolbarfontscombo.js +47 -0
- data/fckeditor/editor/_source/classes/fcktoolbarfontsizecombo.js +52 -0
- data/fckeditor/editor/_source/classes/fcktoolbarpanelbutton.js +91 -0
- data/fckeditor/editor/_source/classes/fcktoolbarspecialcombo.js +134 -0
- data/fckeditor/editor/_source/classes/fcktoolbarstylecombo.js +111 -0
- data/fckeditor/editor/_source/classes/fckw3crange.js +448 -0
- data/fckeditor/editor/_source/classes/fckxml_gecko.js +87 -0
- data/fckeditor/editor/_source/classes/fckxml_ie.js +90 -0
- data/fckeditor/editor/_source/commandclasses/fck_othercommands.js +380 -0
- data/fckeditor/editor/_source/commandclasses/fckfitwindow.js +169 -0
- data/fckeditor/editor/_source/commandclasses/fcknamedcommand.js +37 -0
- data/fckeditor/editor/_source/commandclasses/fckpasteplaintextcommand.js +38 -0
- data/fckeditor/editor/_source/commandclasses/fckpastewordcommand.js +40 -0
- data/fckeditor/editor/_source/commandclasses/fckspellcheckcommand_gecko.js +39 -0
- data/fckeditor/editor/_source/commandclasses/fckspellcheckcommand_ie.js +67 -0
- data/fckeditor/editor/_source/commandclasses/fckstylecommand.js +99 -0
- data/fckeditor/editor/_source/commandclasses/fcktablecommand.js +71 -0
- data/fckeditor/editor/_source/commandclasses/fcktextcolorcommand.js +175 -0
- data/fckeditor/editor/_source/fckconstants.js +52 -0
- data/fckeditor/editor/_source/fckeditorapi.js +161 -0
- data/fckeditor/editor/_source/fckjscoreextensions.js +152 -0
- data/fckeditor/editor/_source/fckscriptloader.js +108 -0
- data/fckeditor/editor/_source/internals/fck.js +859 -0
- data/fckeditor/editor/_source/internals/fck_contextmenu.js +307 -0
- data/fckeditor/editor/_source/internals/fck_gecko.js +254 -0
- data/fckeditor/editor/_source/internals/fck_ie.js +383 -0
- data/fckeditor/editor/_source/internals/fckbrowserinfo.js +48 -0
- data/fckeditor/editor/_source/internals/fckcodeformatter.js +100 -0
- data/fckeditor/editor/_source/internals/fckcommands.js +132 -0
- data/fckeditor/editor/_source/internals/fckconfig.js +199 -0
- data/fckeditor/editor/_source/internals/fckdebug.js +56 -0
- data/fckeditor/editor/_source/internals/fckdialog.js +38 -0
- data/fckeditor/editor/_source/internals/fckdialog_gecko.js +103 -0
- data/fckeditor/editor/_source/internals/fckdialog_ie.js +48 -0
- data/fckeditor/editor/_source/internals/fckdocumentprocessor.js +243 -0
- data/fckeditor/editor/_source/internals/fckdomtools.js +294 -0
- data/fckeditor/editor/_source/internals/fcklanguagemanager.js +161 -0
- data/fckeditor/editor/_source/internals/fcklisthandler.js +152 -0
- data/fckeditor/editor/_source/internals/fcklistslib.js +60 -0
- data/fckeditor/editor/_source/internals/fckplugins.js +46 -0
- data/fckeditor/editor/_source/internals/fckregexlib.js +95 -0
- data/fckeditor/editor/_source/internals/fckselection.js +24 -0
- data/fckeditor/editor/_source/internals/fckselection_gecko.js +151 -0
- data/fckeditor/editor/_source/internals/fckselection_ie.js +158 -0
- data/fckeditor/editor/_source/internals/fcktablehandler.js +385 -0
- data/fckeditor/editor/_source/internals/fcktablehandler_gecko.js +57 -0
- data/fckeditor/editor/_source/internals/fcktablehandler_ie.js +58 -0
- data/fckeditor/editor/_source/internals/fcktoolbaritems.js +121 -0
- data/fckeditor/editor/_source/internals/fcktoolbarset.js +357 -0
- data/fckeditor/editor/_source/internals/fcktools.js +225 -0
- data/fckeditor/editor/_source/internals/fcktools_gecko.js +235 -0
- data/fckeditor/editor/_source/internals/fcktools_ie.js +214 -0
- data/fckeditor/editor/_source/internals/fckundo_gecko.js +27 -0
- data/fckeditor/editor/_source/internals/fckundo_ie.js +123 -0
- data/fckeditor/editor/_source/internals/fckurlparams.js +39 -0
- data/fckeditor/editor/_source/internals/fckxhtml.js +466 -0
- data/fckeditor/editor/_source/internals/fckxhtml_gecko.js +66 -0
- data/fckeditor/editor/_source/internals/fckxhtml_ie.js +194 -0
- data/fckeditor/editor/_source/internals/fckxhtmlentities.js +345 -0
- data/fckeditor/editor/css/behaviors/disablehandles.htc +15 -0
- data/fckeditor/editor/css/behaviors/showtableborders.htc +36 -0
- data/fckeditor/editor/css/fck_editorarea.css +91 -0
- data/fckeditor/editor/css/fck_internal.css +111 -0
- data/fckeditor/editor/css/fck_showtableborders_gecko.css +42 -0
- data/fckeditor/editor/css/images/fck_anchor.gif +0 -0
- data/fckeditor/editor/css/images/fck_flashlogo.gif +0 -0
- data/fckeditor/editor/css/images/fck_hiddenfield.gif +0 -0
- data/fckeditor/editor/css/images/fck_pagebreak.gif +0 -0
- data/fckeditor/editor/dialog/common/fck_dialog_common.css +83 -0
- data/fckeditor/editor/dialog/common/fck_dialog_common.js +154 -0
- data/fckeditor/editor/dialog/common/fcknumericfield.htc +24 -0
- data/fckeditor/editor/dialog/common/images/locked.gif +0 -0
- data/fckeditor/editor/dialog/common/images/reset.gif +0 -0
- data/fckeditor/editor/dialog/common/images/unlocked.gif +0 -0
- data/fckeditor/editor/dialog/common/moz-bindings.xml +30 -0
- data/fckeditor/editor/dialog/fck_about.html +155 -0
- data/fckeditor/editor/dialog/fck_about/logo_fckeditor.gif +0 -0
- data/fckeditor/editor/dialog/fck_about/logo_fredck.gif +0 -0
- data/fckeditor/editor/dialog/fck_anchor.html +227 -0
- data/fckeditor/editor/dialog/fck_button.html +107 -0
- data/fckeditor/editor/dialog/fck_checkbox.html +107 -0
- data/fckeditor/editor/dialog/fck_colorselector.html +171 -0
- data/fckeditor/editor/dialog/fck_docprops.html +600 -0
- data/fckeditor/editor/dialog/fck_docprops/fck_document_preview.html +113 -0
- data/fckeditor/editor/dialog/fck_find.html +173 -0
- data/fckeditor/editor/dialog/fck_flash.html +146 -0
- data/fckeditor/editor/dialog/fck_flash/fck_flash.js +288 -0
- data/fckeditor/editor/dialog/fck_flash/fck_flash_preview.html +46 -0
- data/fckeditor/editor/dialog/fck_form.html +105 -0
- data/fckeditor/editor/dialog/fck_hiddenfield.html +116 -0
- data/fckeditor/editor/dialog/fck_image.html +252 -0
- data/fckeditor/editor/dialog/fck_image/fck_image.js +486 -0
- data/fckeditor/editor/dialog/fck_image/fck_image_preview.html +66 -0
- data/fckeditor/editor/dialog/fck_link.html +293 -0
- data/fckeditor/editor/dialog/fck_link/fck_link.js +664 -0
- data/fckeditor/editor/dialog/fck_listprop.html +116 -0
- data/fckeditor/editor/dialog/fck_paste.html +285 -0
- data/fckeditor/editor/dialog/fck_radiobutton.html +107 -0
- data/fckeditor/editor/dialog/fck_replace.html +156 -0
- data/fckeditor/editor/dialog/fck_select.html +176 -0
- data/fckeditor/editor/dialog/fck_select/fck_select.js +169 -0
- data/fckeditor/editor/dialog/fck_smiley.html +105 -0
- data/fckeditor/editor/dialog/fck_source.html +65 -0
- data/fckeditor/editor/dialog/fck_specialchar.html +113 -0
- data/fckeditor/editor/dialog/fck_spellerpages.html +64 -0
- data/fckeditor/editor/dialog/fck_spellerpages/spellerpages/blank.html +0 -0
- data/fckeditor/editor/dialog/fck_spellerpages/spellerpages/controlWindow.js +87 -0
- data/fckeditor/editor/dialog/fck_spellerpages/spellerpages/controls.html +153 -0
- data/fckeditor/editor/dialog/fck_spellerpages/spellerpages/server-scripts/spellchecker.cfm +174 -0
- data/fckeditor/editor/dialog/fck_spellerpages/spellerpages/server-scripts/spellchecker.php +196 -0
- data/fckeditor/editor/dialog/fck_spellerpages/spellerpages/server-scripts/spellchecker.pl +180 -0
- data/fckeditor/editor/dialog/fck_spellerpages/spellerpages/spellChecker.js +462 -0
- data/fckeditor/editor/dialog/fck_spellerpages/spellerpages/spellchecker.html +71 -0
- data/fckeditor/editor/dialog/fck_spellerpages/spellerpages/spellerStyle.css +49 -0
- data/fckeditor/editor/dialog/fck_spellerpages/spellerpages/wordWindow.js +272 -0
- data/fckeditor/editor/dialog/fck_table.html +286 -0
- data/fckeditor/editor/dialog/fck_tablecell.html +255 -0
- data/fckeditor/editor/dialog/fck_template.html +242 -0
- data/fckeditor/editor/dialog/fck_template/images/template1.gif +0 -0
- data/fckeditor/editor/dialog/fck_template/images/template2.gif +0 -0
- data/fckeditor/editor/dialog/fck_template/images/template3.gif +0 -0
- data/fckeditor/editor/dialog/fck_textarea.html +94 -0
- data/fckeditor/editor/dialog/fck_textfield.html +139 -0
- data/fckeditor/editor/fckdebug.html +153 -0
- data/fckeditor/editor/fckdialog.html +324 -0
- data/fckeditor/editor/fckeditor.html +227 -0
- data/fckeditor/editor/fckeditor.original.html +319 -0
- data/fckeditor/editor/filemanager/browser/default/browser.css +88 -0
- data/fckeditor/editor/filemanager/browser/default/browser.html +154 -0
- data/fckeditor/editor/filemanager/browser/default/connectors/asp/basexml.asp +62 -0
- data/fckeditor/editor/filemanager/browser/default/connectors/asp/class_upload.asp +234 -0
- data/fckeditor/editor/filemanager/browser/default/connectors/asp/commands.asp +183 -0
- data/fckeditor/editor/filemanager/browser/default/connectors/asp/config.asp +49 -0
- data/fckeditor/editor/filemanager/browser/default/connectors/asp/connector.asp +124 -0
- data/fckeditor/editor/filemanager/browser/default/connectors/asp/io.asp +89 -0
- data/fckeditor/editor/filemanager/browser/default/connectors/asp/util.asp +55 -0
- data/fckeditor/editor/filemanager/browser/default/connectors/aspx/connector.aspx +30 -0
- data/fckeditor/editor/filemanager/browser/default/connectors/cfm/config.cfm +99 -0
- data/fckeditor/editor/filemanager/browser/default/connectors/cfm/connector.cfm +363 -0
- data/fckeditor/editor/filemanager/browser/default/connectors/lasso/config.lasso +65 -0
- data/fckeditor/editor/filemanager/browser/default/connectors/lasso/connector.lasso +249 -0
- data/fckeditor/editor/filemanager/browser/default/connectors/perl/basexml.pl +63 -0
- data/fckeditor/editor/filemanager/browser/default/connectors/perl/commands.pl +158 -0
- data/fckeditor/editor/filemanager/browser/default/connectors/perl/connector.cgi +137 -0
- data/fckeditor/editor/filemanager/browser/default/connectors/perl/io.pl +131 -0
- data/fckeditor/editor/filemanager/browser/default/connectors/perl/upload_fck.pl +667 -0
- data/fckeditor/editor/filemanager/browser/default/connectors/perl/util.pl +60 -0
- data/fckeditor/editor/filemanager/browser/default/connectors/php/basexml.php +75 -0
- data/fckeditor/editor/filemanager/browser/default/connectors/php/commands.php +222 -0
- data/fckeditor/editor/filemanager/browser/default/connectors/php/config.php +56 -0
- data/fckeditor/editor/filemanager/browser/default/connectors/php/connector.php +113 -0
- data/fckeditor/editor/filemanager/browser/default/connectors/php/io.php +101 -0
- data/fckeditor/editor/filemanager/browser/default/connectors/php/util.php +41 -0
- data/fckeditor/editor/filemanager/browser/default/connectors/py/connector.py +785 -0
- data/fckeditor/editor/filemanager/browser/default/connectors/test.html +180 -0
- data/fckeditor/editor/filemanager/browser/default/frmactualfolder.html +67 -0
- data/fckeditor/editor/filemanager/browser/default/frmcreatefolder.html +113 -0
- data/fckeditor/editor/filemanager/browser/default/frmfolders.html +196 -0
- data/fckeditor/editor/filemanager/browser/default/frmresourceslist.html +160 -0
- data/fckeditor/editor/filemanager/browser/default/frmresourcetype.html +65 -0
- data/fckeditor/editor/filemanager/browser/default/frmupload.html +113 -0
- data/fckeditor/editor/filemanager/browser/default/images/ButtonArrow.gif +0 -0
- data/fckeditor/editor/filemanager/browser/default/images/Folder.gif +0 -0
- data/fckeditor/editor/filemanager/browser/default/images/Folder32.gif +0 -0
- data/fckeditor/editor/filemanager/browser/default/images/FolderOpened.gif +0 -0
- data/fckeditor/editor/filemanager/browser/default/images/FolderOpened32.gif +0 -0
- data/fckeditor/editor/filemanager/browser/default/images/FolderUp.gif +0 -0
- data/fckeditor/editor/filemanager/browser/default/images/icons/32/ai.gif +0 -0
- data/fckeditor/editor/filemanager/browser/default/images/icons/32/avi.gif +0 -0
- data/fckeditor/editor/filemanager/browser/default/images/icons/32/bmp.gif +0 -0
- data/fckeditor/editor/filemanager/browser/default/images/icons/32/cs.gif +0 -0
- data/fckeditor/editor/filemanager/browser/default/images/icons/32/default.icon.gif +0 -0
- data/fckeditor/editor/filemanager/browser/default/images/icons/32/dll.gif +0 -0
- data/fckeditor/editor/filemanager/browser/default/images/icons/32/doc.gif +0 -0
- data/fckeditor/editor/filemanager/browser/default/images/icons/32/exe.gif +0 -0
- data/fckeditor/editor/filemanager/browser/default/images/icons/32/fla.gif +0 -0
- data/fckeditor/editor/filemanager/browser/default/images/icons/32/gif.gif +0 -0
- data/fckeditor/editor/filemanager/browser/default/images/icons/32/htm.gif +0 -0
- data/fckeditor/editor/filemanager/browser/default/images/icons/32/html.gif +0 -0
- data/fckeditor/editor/filemanager/browser/default/images/icons/32/jpg.gif +0 -0
- data/fckeditor/editor/filemanager/browser/default/images/icons/32/js.gif +0 -0
- data/fckeditor/editor/filemanager/browser/default/images/icons/32/mdb.gif +0 -0
- data/fckeditor/editor/filemanager/browser/default/images/icons/32/mp3.gif +0 -0
- data/fckeditor/editor/filemanager/browser/default/images/icons/32/pdf.gif +0 -0
- data/fckeditor/editor/filemanager/browser/default/images/icons/32/png.gif +0 -0
- data/fckeditor/editor/filemanager/browser/default/images/icons/32/ppt.gif +0 -0
- data/fckeditor/editor/filemanager/browser/default/images/icons/32/rdp.gif +0 -0
- data/fckeditor/editor/filemanager/browser/default/images/icons/32/swf.gif +0 -0
- data/fckeditor/editor/filemanager/browser/default/images/icons/32/swt.gif +0 -0
- data/fckeditor/editor/filemanager/browser/default/images/icons/32/txt.gif +0 -0
- data/fckeditor/editor/filemanager/browser/default/images/icons/32/vsd.gif +0 -0
- data/fckeditor/editor/filemanager/browser/default/images/icons/32/xls.gif +0 -0
- data/fckeditor/editor/filemanager/browser/default/images/icons/32/xml.gif +0 -0
- data/fckeditor/editor/filemanager/browser/default/images/icons/32/zip.gif +0 -0
- data/fckeditor/editor/filemanager/browser/default/images/icons/ai.gif +0 -0
- data/fckeditor/editor/filemanager/browser/default/images/icons/avi.gif +0 -0
- data/fckeditor/editor/filemanager/browser/default/images/icons/bmp.gif +0 -0
- data/fckeditor/editor/filemanager/browser/default/images/icons/cs.gif +0 -0
- data/fckeditor/editor/filemanager/browser/default/images/icons/default.icon.gif +0 -0
- data/fckeditor/editor/filemanager/browser/default/images/icons/dll.gif +0 -0
- data/fckeditor/editor/filemanager/browser/default/images/icons/doc.gif +0 -0
- data/fckeditor/editor/filemanager/browser/default/images/icons/exe.gif +0 -0
- data/fckeditor/editor/filemanager/browser/default/images/icons/fla.gif +0 -0
- data/fckeditor/editor/filemanager/browser/default/images/icons/gif.gif +0 -0
- data/fckeditor/editor/filemanager/browser/default/images/icons/htm.gif +0 -0
- data/fckeditor/editor/filemanager/browser/default/images/icons/html.gif +0 -0
- data/fckeditor/editor/filemanager/browser/default/images/icons/jpg.gif +0 -0
- data/fckeditor/editor/filemanager/browser/default/images/icons/js.gif +0 -0
- data/fckeditor/editor/filemanager/browser/default/images/icons/mdb.gif +0 -0
- data/fckeditor/editor/filemanager/browser/default/images/icons/mp3.gif +0 -0
- data/fckeditor/editor/filemanager/browser/default/images/icons/pdf.gif +0 -0
- data/fckeditor/editor/filemanager/browser/default/images/icons/png.gif +0 -0
- data/fckeditor/editor/filemanager/browser/default/images/icons/ppt.gif +0 -0
- data/fckeditor/editor/filemanager/browser/default/images/icons/rdp.gif +0 -0
- data/fckeditor/editor/filemanager/browser/default/images/icons/swf.gif +0 -0
- data/fckeditor/editor/filemanager/browser/default/images/icons/swt.gif +0 -0
- data/fckeditor/editor/filemanager/browser/default/images/icons/txt.gif +0 -0
- data/fckeditor/editor/filemanager/browser/default/images/icons/vsd.gif +0 -0
- data/fckeditor/editor/filemanager/browser/default/images/icons/xls.gif +0 -0
- data/fckeditor/editor/filemanager/browser/default/images/icons/xml.gif +0 -0
- data/fckeditor/editor/filemanager/browser/default/images/icons/zip.gif +0 -0
- data/fckeditor/editor/filemanager/browser/default/images/spacer.gif +0 -0
- data/fckeditor/editor/filemanager/browser/default/js/common.js +55 -0
- data/fckeditor/editor/filemanager/browser/default/js/fckxml.js +130 -0
- data/fckeditor/editor/filemanager/upload/asp/class_upload.asp +234 -0
- data/fckeditor/editor/filemanager/upload/asp/config.asp +52 -0
- data/fckeditor/editor/filemanager/upload/asp/io.asp +29 -0
- data/fckeditor/editor/filemanager/upload/asp/upload.asp +121 -0
- data/fckeditor/editor/filemanager/upload/aspx/upload.aspx +30 -0
- data/fckeditor/editor/filemanager/upload/cfm/config.cfm +98 -0
- data/fckeditor/editor/filemanager/upload/cfm/upload.cfm +168 -0
- data/fckeditor/editor/filemanager/upload/lasso/config.lasso +65 -0
- data/fckeditor/editor/filemanager/upload/lasso/upload.lasso +157 -0
- data/fckeditor/editor/filemanager/upload/php/config.php +56 -0
- data/fckeditor/editor/filemanager/upload/php/upload.php +124 -0
- data/fckeditor/editor/filemanager/upload/php/util.php +40 -0
- data/fckeditor/editor/filemanager/upload/test.html +133 -0
- data/fckeditor/editor/images/anchor.gif +0 -0
- data/fckeditor/editor/images/arrow_ltr.gif +0 -0
- data/fckeditor/editor/images/arrow_rtl.gif +0 -0
- data/fckeditor/editor/images/smiley/msn/angel_smile.gif +0 -0
- data/fckeditor/editor/images/smiley/msn/angry_smile.gif +0 -0
- data/fckeditor/editor/images/smiley/msn/broken_heart.gif +0 -0
- data/fckeditor/editor/images/smiley/msn/cake.gif +0 -0
- data/fckeditor/editor/images/smiley/msn/confused_smile.gif +0 -0
- data/fckeditor/editor/images/smiley/msn/cry_smile.gif +0 -0
- data/fckeditor/editor/images/smiley/msn/devil_smile.gif +0 -0
- data/fckeditor/editor/images/smiley/msn/embaressed_smile.gif +0 -0
- data/fckeditor/editor/images/smiley/msn/envelope.gif +0 -0
- data/fckeditor/editor/images/smiley/msn/heart.gif +0 -0
- data/fckeditor/editor/images/smiley/msn/kiss.gif +0 -0
- data/fckeditor/editor/images/smiley/msn/lightbulb.gif +0 -0
- data/fckeditor/editor/images/smiley/msn/omg_smile.gif +0 -0
- data/fckeditor/editor/images/smiley/msn/regular_smile.gif +0 -0
- data/fckeditor/editor/images/smiley/msn/sad_smile.gif +0 -0
- data/fckeditor/editor/images/smiley/msn/shades_smile.gif +0 -0
- data/fckeditor/editor/images/smiley/msn/teeth_smile.gif +0 -0
- data/fckeditor/editor/images/smiley/msn/thumbs_down.gif +0 -0
- data/fckeditor/editor/images/smiley/msn/thumbs_up.gif +0 -0
- data/fckeditor/editor/images/smiley/msn/tounge_smile.gif +0 -0
- data/fckeditor/editor/images/smiley/msn/whatchutalkingabout_smile.gif +0 -0
- data/fckeditor/editor/images/smiley/msn/wink_smile.gif +0 -0
- data/fckeditor/editor/images/spacer.gif +0 -0
- data/fckeditor/editor/js/fckeditorcode_gecko.js +98 -0
- data/fckeditor/editor/js/fckeditorcode_ie.js +99 -0
- data/fckeditor/editor/lang/_getfontformat.html +85 -0
- data/fckeditor/editor/lang/_translationstatus.txt +76 -0
- data/fckeditor/editor/lang/af.js +504 -0
- data/fckeditor/editor/lang/ar.js +504 -0
- data/fckeditor/editor/lang/bg.js +504 -0
- data/fckeditor/editor/lang/bn.js +504 -0
- data/fckeditor/editor/lang/bs.js +504 -0
- data/fckeditor/editor/lang/ca.js +504 -0
- data/fckeditor/editor/lang/cs.js +504 -0
- data/fckeditor/editor/lang/da.js +504 -0
- data/fckeditor/editor/lang/de.js +504 -0
- data/fckeditor/editor/lang/el.js +504 -0
- data/fckeditor/editor/lang/en-au.js +504 -0
- data/fckeditor/editor/lang/en-ca.js +504 -0
- data/fckeditor/editor/lang/en-uk.js +504 -0
- data/fckeditor/editor/lang/en.js +504 -0
- data/fckeditor/editor/lang/eo.js +504 -0
- data/fckeditor/editor/lang/es.js +504 -0
- data/fckeditor/editor/lang/et.js +504 -0
- data/fckeditor/editor/lang/eu.js +505 -0
- data/fckeditor/editor/lang/fa.js +504 -0
- data/fckeditor/editor/lang/fi.js +504 -0
- data/fckeditor/editor/lang/fo.js +504 -0
- data/fckeditor/editor/lang/fr.js +504 -0
- data/fckeditor/editor/lang/gl.js +504 -0
- data/fckeditor/editor/lang/he.js +504 -0
- data/fckeditor/editor/lang/hi.js +504 -0
- data/fckeditor/editor/lang/hr.js +504 -0
- data/fckeditor/editor/lang/hu.js +504 -0
- data/fckeditor/editor/lang/it.js +504 -0
- data/fckeditor/editor/lang/ja.js +504 -0
- data/fckeditor/editor/lang/km.js +504 -0
- data/fckeditor/editor/lang/ko.js +504 -0
- data/fckeditor/editor/lang/lt.js +504 -0
- data/fckeditor/editor/lang/lv.js +504 -0
- data/fckeditor/editor/lang/mn.js +504 -0
- data/fckeditor/editor/lang/ms.js +504 -0
- data/fckeditor/editor/lang/nb.js +504 -0
- data/fckeditor/editor/lang/nl.js +504 -0
- data/fckeditor/editor/lang/no.js +504 -0
- data/fckeditor/editor/lang/pl.js +504 -0
- data/fckeditor/editor/lang/pt-br.js +504 -0
- data/fckeditor/editor/lang/pt.js +504 -0
- data/fckeditor/editor/lang/ro.js +504 -0
- data/fckeditor/editor/lang/ru.js +504 -0
- data/fckeditor/editor/lang/sk.js +504 -0
- data/fckeditor/editor/lang/sl.js +504 -0
- data/fckeditor/editor/lang/sr-latn.js +504 -0
- data/fckeditor/editor/lang/sr.js +504 -0
- data/fckeditor/editor/lang/sv.js +504 -0
- data/fckeditor/editor/lang/th.js +504 -0
- data/fckeditor/editor/lang/tr.js +504 -0
- data/fckeditor/editor/lang/uk.js +504 -0
- data/fckeditor/editor/lang/vi.js +504 -0
- data/fckeditor/editor/lang/zh-cn.js +504 -0
- data/fckeditor/editor/lang/zh.js +504 -0
- data/fckeditor/editor/plugins/autogrow/fckplugin.js +92 -0
- data/fckeditor/editor/plugins/placeholder/fck_placeholder.html +100 -0
- data/fckeditor/editor/plugins/placeholder/fckplugin.js +187 -0
- data/fckeditor/editor/plugins/placeholder/lang/de.js +27 -0
- data/fckeditor/editor/plugins/placeholder/lang/en.js +27 -0
- data/fckeditor/editor/plugins/placeholder/lang/fr.js +27 -0
- data/fckeditor/editor/plugins/placeholder/lang/it.js +27 -0
- data/fckeditor/editor/plugins/placeholder/lang/pl.js +27 -0
- data/fckeditor/editor/plugins/placeholder/placeholder.gif +0 -0
- data/fckeditor/editor/plugins/simplecommands/fckplugin.js +29 -0
- data/fckeditor/editor/plugins/tablecommands/fckplugin.js +32 -0
- data/fckeditor/editor/skins/_fckviewstrips.html +121 -0
- data/fckeditor/editor/skins/default/fck_dialog.css +137 -0
- data/fckeditor/editor/skins/default/fck_editor.css +464 -0
- data/fckeditor/editor/skins/default/fck_strip.gif +0 -0
- data/fckeditor/editor/skins/default/images/toolbar.arrowright.gif +0 -0
- data/fckeditor/editor/skins/default/images/toolbar.buttonarrow.gif +0 -0
- data/fckeditor/editor/skins/default/images/toolbar.collapse.gif +0 -0
- data/fckeditor/editor/skins/default/images/toolbar.end.gif +0 -0
- data/fckeditor/editor/skins/default/images/toolbar.expand.gif +0 -0
- data/fckeditor/editor/skins/default/images/toolbar.separator.gif +0 -0
- data/fckeditor/editor/skins/default/images/toolbar.start.gif +0 -0
- data/fckeditor/editor/skins/office2003/fck_dialog.css +138 -0
- data/fckeditor/editor/skins/office2003/fck_editor.css +476 -0
- data/fckeditor/editor/skins/office2003/fck_strip.gif +0 -0
- data/fckeditor/editor/skins/office2003/images/toolbar.arrowright.gif +0 -0
- data/fckeditor/editor/skins/office2003/images/toolbar.bg.gif +0 -0
- data/fckeditor/editor/skins/office2003/images/toolbar.buttonarrow.gif +0 -0
- data/fckeditor/editor/skins/office2003/images/toolbar.collapse.gif +0 -0
- data/fckeditor/editor/skins/office2003/images/toolbar.end.gif +0 -0
- data/fckeditor/editor/skins/office2003/images/toolbar.expand.gif +0 -0
- data/fckeditor/editor/skins/office2003/images/toolbar.separator.gif +0 -0
- data/fckeditor/editor/skins/office2003/images/toolbar.start.gif +0 -0
- data/fckeditor/editor/skins/silver/fck_dialog.css +141 -0
- data/fckeditor/editor/skins/silver/fck_editor.css +473 -0
- data/fckeditor/editor/skins/silver/fck_strip.gif +0 -0
- data/fckeditor/editor/skins/silver/images/toolbar.arrowright.gif +0 -0
- data/fckeditor/editor/skins/silver/images/toolbar.buttonarrow.gif +0 -0
- data/fckeditor/editor/skins/silver/images/toolbar.buttonbg.gif +0 -0
- data/fckeditor/editor/skins/silver/images/toolbar.collapse.gif +0 -0
- data/fckeditor/editor/skins/silver/images/toolbar.end.gif +0 -0
- data/fckeditor/editor/skins/silver/images/toolbar.expand.gif +0 -0
- data/fckeditor/editor/skins/silver/images/toolbar.separator.gif +0 -0
- data/fckeditor/editor/skins/silver/images/toolbar.start.gif +0 -0
- data/fckeditor/fckconfig.js +224 -0
- data/fckeditor/fckeditor.js +214 -0
- data/fckeditor/fckstyles.xml +53 -0
- data/fckeditor/fcktemplates.xml +103 -0
- data/lib/Wiki2GoEditor/Install/editor.rb +39 -0
- data/test/test_install.rb +40 -0
- metadata +517 -0
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
|
3
|
+
* Copyright (C) 2003-2007 Frederico Caldeira Knabben
|
|
4
|
+
*
|
|
5
|
+
* == BEGIN LICENSE ==
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the terms of any of the following licenses at your
|
|
8
|
+
* choice:
|
|
9
|
+
*
|
|
10
|
+
* - GNU General Public License Version 2 or later (the "GPL")
|
|
11
|
+
* http://www.gnu.org/licenses/gpl.html
|
|
12
|
+
*
|
|
13
|
+
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
|
|
14
|
+
* http://www.gnu.org/licenses/lgpl.html
|
|
15
|
+
*
|
|
16
|
+
* - Mozilla Public License Version 1.1 or later (the "MPL")
|
|
17
|
+
* http://www.mozilla.org/MPL/MPL-1.1.html
|
|
18
|
+
*
|
|
19
|
+
* == END LICENSE ==
|
|
20
|
+
*
|
|
21
|
+
* Defines the FCKLanguageManager object that is used for language
|
|
22
|
+
* operations.
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
var FCKLanguageManager = FCK.Language =
|
|
26
|
+
{
|
|
27
|
+
AvailableLanguages :
|
|
28
|
+
{
|
|
29
|
+
af : 'Afrikaans',
|
|
30
|
+
ar : 'Arabic',
|
|
31
|
+
bg : 'Bulgarian',
|
|
32
|
+
bn : 'Bengali/Bangla',
|
|
33
|
+
bs : 'Bosnian',
|
|
34
|
+
ca : 'Catalan',
|
|
35
|
+
cs : 'Czech',
|
|
36
|
+
da : 'Danish',
|
|
37
|
+
de : 'German',
|
|
38
|
+
el : 'Greek',
|
|
39
|
+
en : 'English',
|
|
40
|
+
'en-au' : 'English (Australia)',
|
|
41
|
+
'en-ca' : 'English (Canadian)',
|
|
42
|
+
'en-uk' : 'English (United Kingdom)',
|
|
43
|
+
eo : 'Esperanto',
|
|
44
|
+
es : 'Spanish',
|
|
45
|
+
et : 'Estonian',
|
|
46
|
+
eu : 'Basque',
|
|
47
|
+
fa : 'Persian',
|
|
48
|
+
fi : 'Finnish',
|
|
49
|
+
fo : 'Faroese',
|
|
50
|
+
fr : 'French',
|
|
51
|
+
gl : 'Galician',
|
|
52
|
+
he : 'Hebrew',
|
|
53
|
+
hi : 'Hindi',
|
|
54
|
+
hr : 'Croatian',
|
|
55
|
+
hu : 'Hungarian',
|
|
56
|
+
it : 'Italian',
|
|
57
|
+
ja : 'Japanese',
|
|
58
|
+
km : 'Khmer',
|
|
59
|
+
ko : 'Korean',
|
|
60
|
+
lt : 'Lithuanian',
|
|
61
|
+
lv : 'Latvian',
|
|
62
|
+
mn : 'Mongolian',
|
|
63
|
+
ms : 'Malay',
|
|
64
|
+
nb : 'Norwegian Bokmal',
|
|
65
|
+
nl : 'Dutch',
|
|
66
|
+
no : 'Norwegian',
|
|
67
|
+
pl : 'Polish',
|
|
68
|
+
pt : 'Portuguese (Portugal)',
|
|
69
|
+
'pt-br' : 'Portuguese (Brazil)',
|
|
70
|
+
ro : 'Romanian',
|
|
71
|
+
ru : 'Russian',
|
|
72
|
+
sk : 'Slovak',
|
|
73
|
+
sl : 'Slovenian',
|
|
74
|
+
sr : 'Serbian (Cyrillic)',
|
|
75
|
+
'sr-latn' : 'Serbian (Latin)',
|
|
76
|
+
sv : 'Swedish',
|
|
77
|
+
th : 'Thai',
|
|
78
|
+
tr : 'Turkish',
|
|
79
|
+
uk : 'Ukrainian',
|
|
80
|
+
vi : 'Vietnamese',
|
|
81
|
+
zh : 'Chinese Traditional',
|
|
82
|
+
'zh-cn' : 'Chinese Simplified'
|
|
83
|
+
},
|
|
84
|
+
|
|
85
|
+
GetActiveLanguage : function()
|
|
86
|
+
{
|
|
87
|
+
if ( FCKConfig.AutoDetectLanguage )
|
|
88
|
+
{
|
|
89
|
+
var sUserLang ;
|
|
90
|
+
|
|
91
|
+
// IE accepts "navigator.userLanguage" while Gecko "navigator.language".
|
|
92
|
+
if ( navigator.userLanguage )
|
|
93
|
+
sUserLang = navigator.userLanguage.toLowerCase() ;
|
|
94
|
+
else if ( navigator.language )
|
|
95
|
+
sUserLang = navigator.language.toLowerCase() ;
|
|
96
|
+
else
|
|
97
|
+
{
|
|
98
|
+
// Firefox 1.0 PR has a bug: it doens't support the "language" property.
|
|
99
|
+
return FCKConfig.DefaultLanguage ;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
// Some language codes are set in 5 characters,
|
|
103
|
+
// like "pt-br" for Brasilian Portuguese.
|
|
104
|
+
if ( sUserLang.length >= 5 )
|
|
105
|
+
{
|
|
106
|
+
sUserLang = sUserLang.substr(0,5) ;
|
|
107
|
+
if ( this.AvailableLanguages[sUserLang] ) return sUserLang ;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
// If the user's browser is set to, for example, "pt-br" but only the
|
|
111
|
+
// "pt" language file is available then get that file.
|
|
112
|
+
if ( sUserLang.length >= 2 )
|
|
113
|
+
{
|
|
114
|
+
sUserLang = sUserLang.substr(0,2) ;
|
|
115
|
+
if ( this.AvailableLanguages[sUserLang] ) return sUserLang ;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
return this.DefaultLanguage ;
|
|
120
|
+
},
|
|
121
|
+
|
|
122
|
+
TranslateElements : function( targetDocument, tag, propertyToSet, encode )
|
|
123
|
+
{
|
|
124
|
+
var e = targetDocument.getElementsByTagName(tag) ;
|
|
125
|
+
var sKey, s ;
|
|
126
|
+
for ( var i = 0 ; i < e.length ; i++ )
|
|
127
|
+
{
|
|
128
|
+
// The extra () is to avoid a warning with strict error checking. This is ok.
|
|
129
|
+
if ( (sKey = e[i].getAttribute( 'fckLang' )) )
|
|
130
|
+
{
|
|
131
|
+
// The extra () is to avoid a warning with strict error checking. This is ok.
|
|
132
|
+
if ( (s = FCKLang[ sKey ]) )
|
|
133
|
+
{
|
|
134
|
+
if ( encode )
|
|
135
|
+
s = FCKTools.HTMLEncode( s ) ;
|
|
136
|
+
eval( 'e[i].' + propertyToSet + ' = s' ) ;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
|
|
142
|
+
TranslatePage : function( targetDocument )
|
|
143
|
+
{
|
|
144
|
+
this.TranslateElements( targetDocument, 'INPUT', 'value' ) ;
|
|
145
|
+
this.TranslateElements( targetDocument, 'SPAN', 'innerHTML' ) ;
|
|
146
|
+
this.TranslateElements( targetDocument, 'LABEL', 'innerHTML' ) ;
|
|
147
|
+
this.TranslateElements( targetDocument, 'OPTION', 'innerHTML', true ) ;
|
|
148
|
+
},
|
|
149
|
+
|
|
150
|
+
Initialize : function()
|
|
151
|
+
{
|
|
152
|
+
if ( this.AvailableLanguages[ FCKConfig.DefaultLanguage ] )
|
|
153
|
+
this.DefaultLanguage = FCKConfig.DefaultLanguage ;
|
|
154
|
+
else
|
|
155
|
+
this.DefaultLanguage = 'en' ;
|
|
156
|
+
|
|
157
|
+
this.ActiveLanguage = new Object() ;
|
|
158
|
+
this.ActiveLanguage.Code = this.GetActiveLanguage() ;
|
|
159
|
+
this.ActiveLanguage.Name = this.AvailableLanguages[ this.ActiveLanguage.Code ] ;
|
|
160
|
+
}
|
|
161
|
+
} ;
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
|
3
|
+
* Copyright (C) 2003-2007 Frederico Caldeira Knabben
|
|
4
|
+
*
|
|
5
|
+
* == BEGIN LICENSE ==
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the terms of any of the following licenses at your
|
|
8
|
+
* choice:
|
|
9
|
+
*
|
|
10
|
+
* - GNU General Public License Version 2 or later (the "GPL")
|
|
11
|
+
* http://www.gnu.org/licenses/gpl.html
|
|
12
|
+
*
|
|
13
|
+
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
|
|
14
|
+
* http://www.gnu.org/licenses/lgpl.html
|
|
15
|
+
*
|
|
16
|
+
* - Mozilla Public License Version 1.1 or later (the "MPL")
|
|
17
|
+
* http://www.mozilla.org/MPL/MPL-1.1.html
|
|
18
|
+
*
|
|
19
|
+
* == END LICENSE ==
|
|
20
|
+
*
|
|
21
|
+
* Tool object to manage HTML lists items (UL, OL and LI).
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
var FCKListHandler =
|
|
25
|
+
{
|
|
26
|
+
OutdentListItem : function( listItem )
|
|
27
|
+
{
|
|
28
|
+
var eParent = listItem.parentNode ;
|
|
29
|
+
|
|
30
|
+
// It may happen that a LI is not in a UL or OL (Orphan).
|
|
31
|
+
if ( eParent.tagName.toUpperCase().Equals( 'UL','OL' ) )
|
|
32
|
+
{
|
|
33
|
+
var oDocument = FCKTools.GetElementDocument( listItem ) ;
|
|
34
|
+
var oDogFrag = new FCKDocumentFragment( oDocument ) ;
|
|
35
|
+
|
|
36
|
+
// All children and successive siblings will be moved to a a DocFrag.
|
|
37
|
+
var eNextSiblings = oDogFrag.RootNode ;
|
|
38
|
+
var eHasLiSibling = false ;
|
|
39
|
+
|
|
40
|
+
// If we have nested lists inside it, let's move it to the list of siblings.
|
|
41
|
+
var eChildList = FCKDomTools.GetFirstChild( listItem, ['UL','OL'] ) ;
|
|
42
|
+
if ( eChildList )
|
|
43
|
+
{
|
|
44
|
+
eHasLiSibling = true ;
|
|
45
|
+
|
|
46
|
+
var eChild ;
|
|
47
|
+
// The extra () is to avoid a warning with strict error checking. This is ok.
|
|
48
|
+
while ( (eChild = eChildList.firstChild) )
|
|
49
|
+
eNextSiblings.appendChild( eChildList.removeChild( eChild ) ) ;
|
|
50
|
+
|
|
51
|
+
FCKDomTools.RemoveNode( eChildList ) ;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
// Move all successive siblings.
|
|
55
|
+
var eSibling ;
|
|
56
|
+
var eHasSuccessiveLiSibling = false ;
|
|
57
|
+
// The extra () is to avoid a warning with strict error checking. This is ok.
|
|
58
|
+
while ( (eSibling = listItem.nextSibling) )
|
|
59
|
+
{
|
|
60
|
+
if ( !eHasLiSibling && eSibling.nodeType == 1 && eSibling.nodeName.toUpperCase() == 'LI' )
|
|
61
|
+
eHasSuccessiveLiSibling = eHasLiSibling = true ;
|
|
62
|
+
|
|
63
|
+
eNextSiblings.appendChild( eSibling.parentNode.removeChild( eSibling ) ) ;
|
|
64
|
+
|
|
65
|
+
// If a sibling is a incorrectly nested UL or OL, consider only its children.
|
|
66
|
+
if ( !eHasSuccessiveLiSibling && eSibling.nodeType == 1 && eSibling.nodeName.toUpperCase().Equals( 'UL','OL' ) )
|
|
67
|
+
FCKDomTools.RemoveNode( eSibling, true ) ;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
// If we are in a list chain.
|
|
71
|
+
var sParentParentTag = eParent.parentNode.tagName.toUpperCase() ;
|
|
72
|
+
var bWellNested = ( sParentParentTag == 'LI' ) ;
|
|
73
|
+
if ( bWellNested || sParentParentTag.Equals( 'UL','OL' ) )
|
|
74
|
+
{
|
|
75
|
+
if ( eHasLiSibling )
|
|
76
|
+
{
|
|
77
|
+
var eChildList = eParent.cloneNode( false ) ;
|
|
78
|
+
oDogFrag.AppendTo( eChildList ) ;
|
|
79
|
+
listItem.appendChild( eChildList ) ;
|
|
80
|
+
}
|
|
81
|
+
else if ( bWellNested )
|
|
82
|
+
oDogFrag.InsertAfterNode( eParent.parentNode ) ;
|
|
83
|
+
else
|
|
84
|
+
oDogFrag.InsertAfterNode( eParent ) ;
|
|
85
|
+
|
|
86
|
+
// Move the LI after its parent.parentNode (the upper LI in the hierarchy).
|
|
87
|
+
if ( bWellNested )
|
|
88
|
+
FCKDomTools.InsertAfterNode( eParent.parentNode, eParent.removeChild( listItem ) ) ;
|
|
89
|
+
else
|
|
90
|
+
FCKDomTools.InsertAfterNode( eParent, eParent.removeChild( listItem ) ) ;
|
|
91
|
+
}
|
|
92
|
+
else
|
|
93
|
+
{
|
|
94
|
+
if ( eHasLiSibling )
|
|
95
|
+
{
|
|
96
|
+
var eNextList = eParent.cloneNode( false ) ;
|
|
97
|
+
oDogFrag.AppendTo( eNextList ) ;
|
|
98
|
+
FCKDomTools.InsertAfterNode( eParent, eNextList ) ;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
var eBlock = oDocument.createElement( FCKConfig.EnterMode == 'p' ? 'p' : 'div' ) ;
|
|
102
|
+
FCKDomTools.MoveChildren( eParent.removeChild( listItem ), eBlock ) ;
|
|
103
|
+
FCKDomTools.InsertAfterNode( eParent, eBlock ) ;
|
|
104
|
+
|
|
105
|
+
if ( FCKConfig.EnterMode == 'br' )
|
|
106
|
+
{
|
|
107
|
+
// We need the bogus to make it work properly. In Gecko, we
|
|
108
|
+
// need it before the new block, on IE, after it.
|
|
109
|
+
if ( FCKBrowserInfo.IsGecko )
|
|
110
|
+
eBlock.parentNode.insertBefore( FCKTools.CreateBogusBR( oDocument ), eBlock ) ;
|
|
111
|
+
else
|
|
112
|
+
FCKDomTools.InsertAfterNode( eBlock, FCKTools.CreateBogusBR( oDocument ) ) ;
|
|
113
|
+
|
|
114
|
+
FCKDomTools.RemoveNode( eBlock, true ) ;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
if ( this.CheckEmptyList( eParent ) )
|
|
119
|
+
FCKDomTools.RemoveNode( eParent, true ) ;
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
|
|
123
|
+
CheckEmptyList : function( listElement )
|
|
124
|
+
{
|
|
125
|
+
return ( FCKDomTools.GetFirstChild( listElement, 'LI' ) == null ) ;
|
|
126
|
+
},
|
|
127
|
+
|
|
128
|
+
// Check if the list has contents (excluding nested lists).
|
|
129
|
+
CheckListHasContents : function( listElement )
|
|
130
|
+
{
|
|
131
|
+
var eChildNode = listElement.firstChild ;
|
|
132
|
+
|
|
133
|
+
while ( eChildNode )
|
|
134
|
+
{
|
|
135
|
+
switch ( eChildNode.nodeType )
|
|
136
|
+
{
|
|
137
|
+
case 1 :
|
|
138
|
+
if ( !eChildNode.nodeName.IEquals( 'UL','LI' ) )
|
|
139
|
+
return true ;
|
|
140
|
+
break ;
|
|
141
|
+
|
|
142
|
+
case 3 :
|
|
143
|
+
if ( eChildNode.nodeValue.Trim().length > 0 )
|
|
144
|
+
return true ;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
eChildNode = eChildNode.nextSibling ;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
return false ;
|
|
151
|
+
}
|
|
152
|
+
} ;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
|
3
|
+
* Copyright (C) 2003-2007 Frederico Caldeira Knabben
|
|
4
|
+
*
|
|
5
|
+
* == BEGIN LICENSE ==
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the terms of any of the following licenses at your
|
|
8
|
+
* choice:
|
|
9
|
+
*
|
|
10
|
+
* - GNU General Public License Version 2 or later (the "GPL")
|
|
11
|
+
* http://www.gnu.org/licenses/gpl.html
|
|
12
|
+
*
|
|
13
|
+
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
|
|
14
|
+
* http://www.gnu.org/licenses/lgpl.html
|
|
15
|
+
*
|
|
16
|
+
* - Mozilla Public License Version 1.1 or later (the "MPL")
|
|
17
|
+
* http://www.mozilla.org/MPL/MPL-1.1.html
|
|
18
|
+
*
|
|
19
|
+
* == END LICENSE ==
|
|
20
|
+
*
|
|
21
|
+
* Library of keys collections.
|
|
22
|
+
*
|
|
23
|
+
* Test have shown that check for the existence of a key in an object is the
|
|
24
|
+
* most efficient list entry check (10x faster that regex). Example:
|
|
25
|
+
* if ( FCKListsLib.<ListName>[key] != null )
|
|
26
|
+
*/
|
|
27
|
+
|
|
28
|
+
var FCKListsLib =
|
|
29
|
+
{
|
|
30
|
+
// We are not handling <ins> and <del> as block elements, for now.
|
|
31
|
+
BlockElements : { address:1,blockquote:1,center:1,div:1,dl:1,fieldset:1,form:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,hr:1,noscript:1,ol:1,p:1,pre:1,script:1,table:1,ul:1 },
|
|
32
|
+
|
|
33
|
+
// Block elements that may be filled with if empty.
|
|
34
|
+
NonEmptyBlockElements : { p:1,div:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,address:1,pre:1,ol:1,ul:1,li:1,td:1,th:1 },
|
|
35
|
+
|
|
36
|
+
// Inline elements which MUST have child nodes.
|
|
37
|
+
InlineChildReqElements : { abbr:1,acronym:1,b:1,bdo:1,big:1,cite:1,code:1,del:1,dfn:1,em:1,font:1,i:1,ins:1,label:1,kbd:1,q:1,samp:1,small:1,span:1,strong:1,sub:1,sup:1,tt:1,u:1,'var':1 },
|
|
38
|
+
|
|
39
|
+
// Elements marked as empty "Empty" in the XHTML DTD.
|
|
40
|
+
EmptyElements : { base:1,meta:1,link:1,hr:1,br:1,param:1,img:1,area:1,input:1 },
|
|
41
|
+
|
|
42
|
+
// Elements that may be considered the "Block boundary" in an element path.
|
|
43
|
+
PathBlockElements : { address:1,blockquote:1,dl:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,p:1,pre:1,ol:1,ul:1,li:1,dt:1,de:1 },
|
|
44
|
+
|
|
45
|
+
// Elements that may be considered the "Block limit" in an element path.
|
|
46
|
+
PathBlockLimitElements : { body:1,td:1,th:1,caption:1,form:1 },
|
|
47
|
+
|
|
48
|
+
// Final setup of FCKListsLib once the editor is loaded (at FCK.StartEditor).
|
|
49
|
+
// TODO: For v3, there should be a generic way to register to the editor
|
|
50
|
+
// startup event, so this function would not be needed to be defined here, not
|
|
51
|
+
// even be called at FCK.StartEditor.
|
|
52
|
+
Setup : function()
|
|
53
|
+
{
|
|
54
|
+
// <div> is considered a block element only if EnterMode=div, otherwise it is a block limit.
|
|
55
|
+
if ( FCKConfig.EnterMode == 'div' )
|
|
56
|
+
this.PathBlockElements.div = 1 ;
|
|
57
|
+
else
|
|
58
|
+
this.PathBlockLimitElements.div = 1 ;
|
|
59
|
+
}
|
|
60
|
+
} ;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
|
3
|
+
* Copyright (C) 2003-2007 Frederico Caldeira Knabben
|
|
4
|
+
*
|
|
5
|
+
* == BEGIN LICENSE ==
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the terms of any of the following licenses at your
|
|
8
|
+
* choice:
|
|
9
|
+
*
|
|
10
|
+
* - GNU General Public License Version 2 or later (the "GPL")
|
|
11
|
+
* http://www.gnu.org/licenses/gpl.html
|
|
12
|
+
*
|
|
13
|
+
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
|
|
14
|
+
* http://www.gnu.org/licenses/lgpl.html
|
|
15
|
+
*
|
|
16
|
+
* - Mozilla Public License Version 1.1 or later (the "MPL")
|
|
17
|
+
* http://www.mozilla.org/MPL/MPL-1.1.html
|
|
18
|
+
*
|
|
19
|
+
* == END LICENSE ==
|
|
20
|
+
*
|
|
21
|
+
* Defines the FCKPlugins object that is responsible for loading the Plugins.
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
var FCKPlugins = FCK.Plugins = new Object() ;
|
|
25
|
+
FCKPlugins.ItemsCount = 0 ;
|
|
26
|
+
FCKPlugins.Items = new Object() ;
|
|
27
|
+
|
|
28
|
+
FCKPlugins.Load = function()
|
|
29
|
+
{
|
|
30
|
+
var oItems = FCKPlugins.Items ;
|
|
31
|
+
|
|
32
|
+
// build the plugins collection.
|
|
33
|
+
for ( var i = 0 ; i < FCKConfig.Plugins.Items.length ; i++ )
|
|
34
|
+
{
|
|
35
|
+
var oItem = FCKConfig.Plugins.Items[i] ;
|
|
36
|
+
var oPlugin = oItems[ oItem[0] ] = new FCKPlugin( oItem[0], oItem[1], oItem[2] ) ;
|
|
37
|
+
FCKPlugins.ItemsCount++ ;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
// Load all items in the plugins collection.
|
|
41
|
+
for ( var s in oItems )
|
|
42
|
+
oItems[s].Load() ;
|
|
43
|
+
|
|
44
|
+
// This is a self destroyable function (must be called once).
|
|
45
|
+
FCKPlugins.Load = null ;
|
|
46
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
|
3
|
+
* Copyright (C) 2003-2007 Frederico Caldeira Knabben
|
|
4
|
+
*
|
|
5
|
+
* == BEGIN LICENSE ==
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the terms of any of the following licenses at your
|
|
8
|
+
* choice:
|
|
9
|
+
*
|
|
10
|
+
* - GNU General Public License Version 2 or later (the "GPL")
|
|
11
|
+
* http://www.gnu.org/licenses/gpl.html
|
|
12
|
+
*
|
|
13
|
+
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
|
|
14
|
+
* http://www.gnu.org/licenses/lgpl.html
|
|
15
|
+
*
|
|
16
|
+
* - Mozilla Public License Version 1.1 or later (the "MPL")
|
|
17
|
+
* http://www.mozilla.org/MPL/MPL-1.1.html
|
|
18
|
+
*
|
|
19
|
+
* == END LICENSE ==
|
|
20
|
+
*
|
|
21
|
+
* These are some Regular Expresions used by the editor.
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
var FCKRegexLib =
|
|
25
|
+
{
|
|
26
|
+
// This is the Regular expression used by the SetHTML method for the "'" entity.
|
|
27
|
+
AposEntity : /'/gi ,
|
|
28
|
+
|
|
29
|
+
// Used by the Styles combo to identify styles that can't be applied to text.
|
|
30
|
+
ObjectElements : /^(?:IMG|TABLE|TR|TD|TH|INPUT|SELECT|TEXTAREA|HR|OBJECT|A|UL|OL|LI)$/i ,
|
|
31
|
+
|
|
32
|
+
// List all named commands (commands that can be interpreted by the browser "execCommand" method.
|
|
33
|
+
NamedCommands : /^(?:Cut|Copy|Paste|Print|SelectAll|RemoveFormat|Unlink|Undo|Redo|Bold|Italic|Underline|StrikeThrough|Subscript|Superscript|JustifyLeft|JustifyCenter|JustifyRight|JustifyFull|Outdent|Indent|InsertOrderedList|InsertUnorderedList|InsertHorizontalRule)$/i ,
|
|
34
|
+
|
|
35
|
+
BodyContents : /([\s\S]*\<body[^\>]*\>)([\s\S]*)(\<\/body\>[\s\S]*)/i ,
|
|
36
|
+
|
|
37
|
+
// Temporary text used to solve some browser specific limitations.
|
|
38
|
+
ToReplace : /___fcktoreplace:([\w]+)/ig ,
|
|
39
|
+
|
|
40
|
+
// Get the META http-equiv attribute from the tag.
|
|
41
|
+
MetaHttpEquiv : /http-equiv\s*=\s*["']?([^"' ]+)/i ,
|
|
42
|
+
|
|
43
|
+
HasBaseTag : /<base /i ,
|
|
44
|
+
|
|
45
|
+
HtmlOpener : /<html\s?[^>]*>/i ,
|
|
46
|
+
HeadOpener : /<head\s?[^>]*>/i ,
|
|
47
|
+
HeadCloser : /<\/head\s*>/i ,
|
|
48
|
+
|
|
49
|
+
// Temporary classes (Tables without border, Anchors with content) used in IE
|
|
50
|
+
FCK_Class : /(\s*FCK__[A-Za-z]*\s*)/ ,
|
|
51
|
+
|
|
52
|
+
// Validate element names (it must be in lowercase).
|
|
53
|
+
ElementName : /(^[a-z_:][\w.\-:]*\w$)|(^[a-z_]$)/ ,
|
|
54
|
+
|
|
55
|
+
// Used in conjuction with the FCKConfig.ForceSimpleAmpersand configuration option.
|
|
56
|
+
ForceSimpleAmpersand : /___FCKAmp___/g ,
|
|
57
|
+
|
|
58
|
+
// Get the closing parts of the tags with no closing tags, like <br/>... gets the "/>" part.
|
|
59
|
+
SpaceNoClose : /\/>/g ,
|
|
60
|
+
|
|
61
|
+
// Empty elements may be <p></p> or even a simple opening <p> (see #211).
|
|
62
|
+
EmptyParagraph : /^<([^ >]+)[^>]*>\s*(<\/\1>)?$/ ,
|
|
63
|
+
|
|
64
|
+
EmptyOutParagraph : /^<([^ >]+)[^>]*>(?:\s*| )(<\/\1>)?$/ ,
|
|
65
|
+
|
|
66
|
+
TagBody : /></ ,
|
|
67
|
+
|
|
68
|
+
StrongOpener : /<STRONG([ \>])/gi ,
|
|
69
|
+
StrongCloser : /<\/STRONG>/gi ,
|
|
70
|
+
EmOpener : /<EM([ \>])/gi ,
|
|
71
|
+
EmCloser : /<\/EM>/gi ,
|
|
72
|
+
//AbbrOpener : /<ABBR([ \>])/gi ,
|
|
73
|
+
//AbbrCloser : /<\/ABBR>/gi ,
|
|
74
|
+
|
|
75
|
+
GeckoEntitiesMarker : /#\?-\:/g ,
|
|
76
|
+
|
|
77
|
+
// We look for the "src" and href attribute with the " or ' or whithout one of
|
|
78
|
+
// them. We have to do all in one, otherwhise we will have problems with URLs
|
|
79
|
+
// like "thumbnail.php?src=someimage.jpg" (SF-BUG 1554141).
|
|
80
|
+
ProtectUrlsImg : /<img(?=\s).*?\ssrc=((?:("|').*?\2)|(?:[^"'][^ >]+))/gi ,
|
|
81
|
+
ProtectUrlsA : /<a(?=\s).*?\shref=((?:("|').*?\2)|(?:[^"'][^ >]+))/gi ,
|
|
82
|
+
|
|
83
|
+
Html4DocType : /HTML 4\.0 Transitional/i ,
|
|
84
|
+
DocTypeTag : /<!DOCTYPE[^>]*>/i ,
|
|
85
|
+
|
|
86
|
+
// These regex are used to save the original event attributes in the HTML.
|
|
87
|
+
TagsWithEvent : /<[^\>]+ on\w+[\s\r\n]*=[\s\r\n]*?('|")[\s\S]+?\>/g ,
|
|
88
|
+
EventAttributes : /\s(on\w+)[\s\r\n]*=[\s\r\n]*?('|")([\s\S]*?)\2/g,
|
|
89
|
+
ProtectedEvents : /\s\w+_fckprotectedatt="([^"]+)"/g,
|
|
90
|
+
|
|
91
|
+
StyleProperties : /\S+\s*:/g,
|
|
92
|
+
|
|
93
|
+
// [a-zA-Z0-9:]+ seams to be more efficient than [\w:]+
|
|
94
|
+
InvalidSelfCloseTags : /(<(?!base|meta|link|hr|br|param|img|area|input)([a-zA-Z0-9:]+)[^>]*)\/>/gi
|
|
95
|
+
} ;
|