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,71 @@
|
|
|
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
|
+
* Class for working with a selection range, much like the W3C DOM Range, but
|
|
22
|
+
* it is not intented to be an implementation of the W3C interface.
|
|
23
|
+
* (Gecko Implementation)
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
FCKDomRange.prototype.MoveToSelection = function()
|
|
27
|
+
{
|
|
28
|
+
this.Release( true ) ;
|
|
29
|
+
|
|
30
|
+
var oSel = this.Window.getSelection() ;
|
|
31
|
+
|
|
32
|
+
if ( oSel.rangeCount == 1 )
|
|
33
|
+
{
|
|
34
|
+
this._Range = FCKW3CRange.CreateFromRange( this.Window.document, oSel.getRangeAt(0) ) ;
|
|
35
|
+
this._UpdateElementInfo() ;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
FCKDomRange.prototype.Select = function()
|
|
40
|
+
{
|
|
41
|
+
var oRange = this._Range ;
|
|
42
|
+
if ( oRange )
|
|
43
|
+
{
|
|
44
|
+
var oDocRange = this.Window.document.createRange() ;
|
|
45
|
+
oDocRange.setStart( oRange.startContainer, oRange.startOffset ) ;
|
|
46
|
+
|
|
47
|
+
try
|
|
48
|
+
{
|
|
49
|
+
oDocRange.setEnd( oRange.endContainer, oRange.endOffset ) ;
|
|
50
|
+
}
|
|
51
|
+
catch ( e )
|
|
52
|
+
{
|
|
53
|
+
// There is a bug in Firefox implementation (it would be too easy
|
|
54
|
+
// otherwhise). The new start can't be after the end (W3C says it can).
|
|
55
|
+
// So, let's create a new range and collapse it to the desired point.
|
|
56
|
+
if ( e.toString().Contains( 'NS_ERROR_ILLEGAL_VALUE' ) )
|
|
57
|
+
{
|
|
58
|
+
oRange.collapse( true ) ;
|
|
59
|
+
oDocRange.setEnd( oRange.endContainer, oRange.endOffset ) ;
|
|
60
|
+
}
|
|
61
|
+
else
|
|
62
|
+
throw( e ) ;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
var oSel = this.Window.getSelection() ;
|
|
66
|
+
oSel.removeAllRanges() ;
|
|
67
|
+
|
|
68
|
+
// We must add a clone otherwise Firefox will have rendering issues.
|
|
69
|
+
oSel.addRange( oDocRange ) ;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
@@ -0,0 +1,149 @@
|
|
|
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
|
+
* Class for working with a selection range, much like the W3C DOM Range, but
|
|
22
|
+
* it is not intented to be an implementation of the W3C interface.
|
|
23
|
+
* (IE Implementation)
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
FCKDomRange.prototype.MoveToSelection = function()
|
|
27
|
+
{
|
|
28
|
+
this.Release( true ) ;
|
|
29
|
+
|
|
30
|
+
this._Range = new FCKW3CRange( this.Window.document ) ;
|
|
31
|
+
|
|
32
|
+
var oSel = this.Window.document.selection ;
|
|
33
|
+
|
|
34
|
+
if ( oSel.type != 'Control' )
|
|
35
|
+
{
|
|
36
|
+
// Set the start boundary.
|
|
37
|
+
eMarker = this._GetSelectionMarkerTag( true ) ;
|
|
38
|
+
this._Range.setStart( eMarker.parentNode, FCKDomTools.GetIndexOf( eMarker ) ) ;
|
|
39
|
+
eMarker.parentNode.removeChild( eMarker ) ;
|
|
40
|
+
|
|
41
|
+
// Set the end boundary.
|
|
42
|
+
var eMarker = this._GetSelectionMarkerTag( false ) ;
|
|
43
|
+
this._Range.setEnd( eMarker.parentNode, FCKDomTools.GetIndexOf( eMarker ) ) ;
|
|
44
|
+
eMarker.parentNode.removeChild( eMarker ) ;
|
|
45
|
+
|
|
46
|
+
this._UpdateElementInfo() ;
|
|
47
|
+
}
|
|
48
|
+
else
|
|
49
|
+
{
|
|
50
|
+
var oControl = oSel.createRange().item(0) ;
|
|
51
|
+
|
|
52
|
+
if ( oControl )
|
|
53
|
+
{
|
|
54
|
+
this._Range.setStartBefore( oControl ) ;
|
|
55
|
+
this._Range.setEndAfter( oControl ) ;
|
|
56
|
+
this._UpdateElementInfo() ;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
FCKDomRange.prototype.Select = function()
|
|
62
|
+
{
|
|
63
|
+
if ( this._Range )
|
|
64
|
+
{
|
|
65
|
+
var bIsCollapsed = this.CheckIsCollapsed() ;
|
|
66
|
+
|
|
67
|
+
// Create marker tags for the start and end boundaries.
|
|
68
|
+
var eStartMarker = this._GetRangeMarkerTag( true ) ;
|
|
69
|
+
|
|
70
|
+
if ( !bIsCollapsed )
|
|
71
|
+
var eEndMarker = this._GetRangeMarkerTag( false ) ;
|
|
72
|
+
|
|
73
|
+
// Create the main range which will be used for the selection.
|
|
74
|
+
var oIERange = this.Window.document.body.createTextRange() ;
|
|
75
|
+
|
|
76
|
+
// Position the range at the start boundary.
|
|
77
|
+
oIERange.moveToElementText( eStartMarker ) ;
|
|
78
|
+
oIERange.moveStart( 'character', 1 ) ;
|
|
79
|
+
|
|
80
|
+
if ( !bIsCollapsed )
|
|
81
|
+
{
|
|
82
|
+
// Create a tool range for the end.
|
|
83
|
+
var oIERangeEnd = this.Window.document.body.createTextRange() ;
|
|
84
|
+
|
|
85
|
+
// Position the tool range at the end.
|
|
86
|
+
oIERangeEnd.moveToElementText( eEndMarker ) ;
|
|
87
|
+
|
|
88
|
+
// Move the end boundary of the main range to match the tool range.
|
|
89
|
+
oIERange.setEndPoint( 'EndToEnd', oIERangeEnd ) ;
|
|
90
|
+
oIERange.moveEnd( 'character', -1 ) ;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
// Remove the markers (reset the position, because of the changes in the DOM tree).
|
|
94
|
+
this._Range.setStartBefore( eStartMarker ) ;
|
|
95
|
+
eStartMarker.parentNode.removeChild( eStartMarker ) ;
|
|
96
|
+
|
|
97
|
+
if ( bIsCollapsed )
|
|
98
|
+
{
|
|
99
|
+
// The following trick is needed so IE makes collapsed selections
|
|
100
|
+
// inside empty blocks visible (expands the block).
|
|
101
|
+
try
|
|
102
|
+
{
|
|
103
|
+
oIERange.pasteHTML(' ') ;
|
|
104
|
+
oIERange.moveStart( 'character', -1 ) ;
|
|
105
|
+
}
|
|
106
|
+
catch (e){}
|
|
107
|
+
oIERange.select() ;
|
|
108
|
+
oIERange.pasteHTML('') ;
|
|
109
|
+
}
|
|
110
|
+
else
|
|
111
|
+
{
|
|
112
|
+
this._Range.setEndBefore( eEndMarker ) ;
|
|
113
|
+
eEndMarker.parentNode.removeChild( eEndMarker ) ;
|
|
114
|
+
oIERange.select() ;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
FCKDomRange.prototype._GetSelectionMarkerTag = function( toStart )
|
|
120
|
+
{
|
|
121
|
+
// Get a range for the start boundary.
|
|
122
|
+
var oRange = this.Window.document.selection.createRange() ;
|
|
123
|
+
oRange.collapse( toStart === true ) ;
|
|
124
|
+
|
|
125
|
+
// Paste a marker element at the collapsed range and get it from the DOM.
|
|
126
|
+
var sMarkerId = 'fck_dom_range_temp_' + (new Date()).valueOf() + '_' + Math.floor(Math.random()*1000) ;
|
|
127
|
+
oRange.pasteHTML( '<span id="' + sMarkerId + '"></span>' ) ;
|
|
128
|
+
return this.Window.document.getElementById( sMarkerId ) ;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
FCKDomRange.prototype._GetRangeMarkerTag = function( toStart )
|
|
132
|
+
{
|
|
133
|
+
// Get a range for the start boundary.
|
|
134
|
+
var oRange = this._Range ;
|
|
135
|
+
|
|
136
|
+
// insertNode() will add the node at the beginning of the Range, updating
|
|
137
|
+
// the endOffset if necessary. So, we can work with the current range in this case.
|
|
138
|
+
if ( !toStart )
|
|
139
|
+
{
|
|
140
|
+
oRange = oRange.cloneRange() ;
|
|
141
|
+
oRange.collapse( toStart === true ) ;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
var eSpan = this.Window.document.createElement( 'span' ) ;
|
|
145
|
+
eSpan.innerHTML = ' ' ;
|
|
146
|
+
oRange.insertNode( eSpan ) ;
|
|
147
|
+
|
|
148
|
+
return eSpan ;
|
|
149
|
+
}
|
|
@@ -0,0 +1,253 @@
|
|
|
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
|
+
* FCKEditingArea Class: renders an editable area.
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* @constructor
|
|
26
|
+
* @param {String} targetElement The element that will hold the editing area. Any child element present in the target will be deleted.
|
|
27
|
+
*/
|
|
28
|
+
var FCKEditingArea = function( targetElement )
|
|
29
|
+
{
|
|
30
|
+
this.TargetElement = targetElement ;
|
|
31
|
+
this.Mode = FCK_EDITMODE_WYSIWYG ;
|
|
32
|
+
|
|
33
|
+
if ( FCK.IECleanup )
|
|
34
|
+
FCK.IECleanup.AddItem( this, FCKEditingArea_Cleanup ) ;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* @param {String} html The complete HTML for the page, including DOCTYPE and the <html> tag.
|
|
40
|
+
*/
|
|
41
|
+
FCKEditingArea.prototype.Start = function( html, secondCall )
|
|
42
|
+
{
|
|
43
|
+
var eTargetElement = this.TargetElement ;
|
|
44
|
+
var oTargetDocument = FCKTools.GetElementDocument( eTargetElement ) ;
|
|
45
|
+
|
|
46
|
+
// Remove all child nodes from the target.
|
|
47
|
+
while( eTargetElement.childNodes.length > 0 )
|
|
48
|
+
eTargetElement.removeChild( eTargetElement.childNodes[0] ) ;
|
|
49
|
+
|
|
50
|
+
if ( this.Mode == FCK_EDITMODE_WYSIWYG )
|
|
51
|
+
{
|
|
52
|
+
// Create the editing area IFRAME.
|
|
53
|
+
var oIFrame = this.IFrame = oTargetDocument.createElement( 'iframe' ) ;
|
|
54
|
+
oIFrame.src = 'javascript:void(0)' ;
|
|
55
|
+
oIFrame.frameBorder = 0 ;
|
|
56
|
+
oIFrame.width = oIFrame.height = '100%' ;
|
|
57
|
+
|
|
58
|
+
// Append the new IFRAME to the target.
|
|
59
|
+
eTargetElement.appendChild( oIFrame ) ;
|
|
60
|
+
|
|
61
|
+
// IE has a bug with the <base> tag... it must have a </base> closer,
|
|
62
|
+
// otherwise the all sucessive tags will be set as children nodes of the <base>.
|
|
63
|
+
if ( FCKBrowserInfo.IsIE )
|
|
64
|
+
html = html.replace( /(<base[^>]*?)\s*\/?>(?!\s*<\/base>)/gi, '$1></base>' ) ;
|
|
65
|
+
else if ( !secondCall )
|
|
66
|
+
{
|
|
67
|
+
// If nothing in the body, place a BOGUS tag so the cursor will appear.
|
|
68
|
+
if ( FCKBrowserInfo.IsGecko )
|
|
69
|
+
html = html.replace( /(<body[^>]*>)\s*(<\/body>)/i, '$1' + GECKO_BOGUS + '$2' ) ;
|
|
70
|
+
|
|
71
|
+
// Gecko moves some tags out of the body to the head, so we must use
|
|
72
|
+
// innerHTML to set the body contents (SF BUG 1526154).
|
|
73
|
+
|
|
74
|
+
// Extract the BODY contents from the html.
|
|
75
|
+
var oMatch = html.match( FCKRegexLib.BodyContents ) ;
|
|
76
|
+
|
|
77
|
+
if ( oMatch )
|
|
78
|
+
{
|
|
79
|
+
html =
|
|
80
|
+
oMatch[1] + // This is the HTML until the <body...> tag, inclusive.
|
|
81
|
+
' ' +
|
|
82
|
+
oMatch[3] ; // This is the HTML from the </body> tag, inclusive.
|
|
83
|
+
|
|
84
|
+
this._BodyHTML = oMatch[2] ; // This is the BODY tag contents.
|
|
85
|
+
}
|
|
86
|
+
else
|
|
87
|
+
this._BodyHTML = html ; // Invalid HTML input.
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
// Get the window and document objects used to interact with the newly created IFRAME.
|
|
91
|
+
this.Window = oIFrame.contentWindow ;
|
|
92
|
+
|
|
93
|
+
// IE: Avoid JavaScript errors thrown by the editing are source (like tags events).
|
|
94
|
+
// TODO: This error handler is not being fired.
|
|
95
|
+
// this.Window.onerror = function() { alert( 'Error!' ) ; return true ; }
|
|
96
|
+
|
|
97
|
+
var oDoc = this.Document = this.Window.document ;
|
|
98
|
+
|
|
99
|
+
oDoc.open() ;
|
|
100
|
+
oDoc.write( html ) ;
|
|
101
|
+
oDoc.close() ;
|
|
102
|
+
|
|
103
|
+
// Firefox 1.0.x is buggy... ohh yes... so let's do it two times and it
|
|
104
|
+
// will magicaly work.
|
|
105
|
+
if ( FCKBrowserInfo.IsGecko10 && !secondCall )
|
|
106
|
+
{
|
|
107
|
+
this.Start( html, true ) ;
|
|
108
|
+
return ;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
this.Window._FCKEditingArea = this ;
|
|
112
|
+
|
|
113
|
+
// FF 1.0.x is buggy... we must wait a lot to enable editing because
|
|
114
|
+
// sometimes the content simply disappears, for example when pasting
|
|
115
|
+
// "bla1!<img src='some_url'>!bla2" in the source and then switching
|
|
116
|
+
// back to design.
|
|
117
|
+
if ( FCKBrowserInfo.IsGecko10 )
|
|
118
|
+
this.Window.setTimeout( FCKEditingArea_CompleteStart, 500 ) ;
|
|
119
|
+
else
|
|
120
|
+
FCKEditingArea_CompleteStart.call( this.Window ) ;
|
|
121
|
+
}
|
|
122
|
+
else
|
|
123
|
+
{
|
|
124
|
+
var eTextarea = this.Textarea = oTargetDocument.createElement( 'textarea' ) ;
|
|
125
|
+
eTextarea.className = 'SourceField' ;
|
|
126
|
+
eTextarea.dir = 'ltr' ;
|
|
127
|
+
eTextarea.style.width = eTextarea.style.height = '100%' ;
|
|
128
|
+
eTextarea.style.border = 'none' ;
|
|
129
|
+
eTargetElement.appendChild( eTextarea ) ;
|
|
130
|
+
|
|
131
|
+
eTextarea.value = html ;
|
|
132
|
+
|
|
133
|
+
// Fire the "OnLoad" event.
|
|
134
|
+
FCKTools.RunFunction( this.OnLoad ) ;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
// "this" here is FCKEditingArea.Window
|
|
139
|
+
function FCKEditingArea_CompleteStart()
|
|
140
|
+
{
|
|
141
|
+
// Of Firefox, the DOM takes a little to become available. So we must wait for it in a loop.
|
|
142
|
+
if ( !this.document.body )
|
|
143
|
+
{
|
|
144
|
+
this.setTimeout( FCKEditingArea_CompleteStart, 50 ) ;
|
|
145
|
+
return ;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
var oEditorArea = this._FCKEditingArea ;
|
|
149
|
+
oEditorArea.MakeEditable() ;
|
|
150
|
+
|
|
151
|
+
// Fire the "OnLoad" event.
|
|
152
|
+
FCKTools.RunFunction( oEditorArea.OnLoad ) ;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
FCKEditingArea.prototype.MakeEditable = function()
|
|
156
|
+
{
|
|
157
|
+
var oDoc = this.Document ;
|
|
158
|
+
|
|
159
|
+
if ( FCKBrowserInfo.IsIE )
|
|
160
|
+
{
|
|
161
|
+
oDoc.body.contentEditable = true ;
|
|
162
|
+
|
|
163
|
+
/* The following commands don't throw errors, but have no effect.
|
|
164
|
+
oDoc.execCommand( 'AutoDetect', false, false ) ;
|
|
165
|
+
oDoc.execCommand( 'KeepSelection', false, true ) ;
|
|
166
|
+
*/
|
|
167
|
+
}
|
|
168
|
+
else
|
|
169
|
+
{
|
|
170
|
+
try
|
|
171
|
+
{
|
|
172
|
+
// Disable Firefox 2 Spell Checker.
|
|
173
|
+
oDoc.body.spellcheck = ( this.FFSpellChecker !== false ) ;
|
|
174
|
+
|
|
175
|
+
if ( this._BodyHTML )
|
|
176
|
+
{
|
|
177
|
+
oDoc.body.innerHTML = this._BodyHTML ;
|
|
178
|
+
this._BodyHTML = null ;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
oDoc.designMode = 'on' ;
|
|
182
|
+
|
|
183
|
+
// Tell Gecko to use or not the <SPAN> tag for the bold, italic and underline.
|
|
184
|
+
try
|
|
185
|
+
{
|
|
186
|
+
oDoc.execCommand( 'styleWithCSS', false, FCKConfig.GeckoUseSPAN ) ;
|
|
187
|
+
}
|
|
188
|
+
catch (e)
|
|
189
|
+
{
|
|
190
|
+
// As evidenced here, useCSS is deprecated in favor of styleWithCSS:
|
|
191
|
+
// http://www.mozilla.org/editor/midas-spec.html
|
|
192
|
+
oDoc.execCommand( 'useCSS', false, !FCKConfig.GeckoUseSPAN ) ;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
// Analysing Firefox 1.5 source code, it seams that there is support for a
|
|
196
|
+
// "insertBrOnReturn" command. Applying it gives no error, but it doesn't
|
|
197
|
+
// gives the same behavior that you have with IE. It works only if you are
|
|
198
|
+
// already inside a paragraph and it doesn't render correctly in the first enter.
|
|
199
|
+
// oDoc.execCommand( 'insertBrOnReturn', false, false ) ;
|
|
200
|
+
|
|
201
|
+
// Tell Gecko (Firefox 1.5+) to enable or not live resizing of objects (by Alfonso Martinez)
|
|
202
|
+
oDoc.execCommand( 'enableObjectResizing', false, !FCKConfig.DisableObjectResizing ) ;
|
|
203
|
+
|
|
204
|
+
// Disable the standard table editing features of Firefox.
|
|
205
|
+
oDoc.execCommand( 'enableInlineTableEditing', false, !FCKConfig.DisableFFTableHandles ) ;
|
|
206
|
+
}
|
|
207
|
+
catch (e) {}
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
FCKEditingArea.prototype.Focus = function()
|
|
212
|
+
{
|
|
213
|
+
try
|
|
214
|
+
{
|
|
215
|
+
if ( this.Mode == FCK_EDITMODE_WYSIWYG )
|
|
216
|
+
{
|
|
217
|
+
// The following check is important to avoid IE entering in a focus loop. Ref:
|
|
218
|
+
// http://sourceforge.net/tracker/index.php?func=detail&aid=1567060&group_id=75348&atid=543653
|
|
219
|
+
if ( FCKBrowserInfo.IsIE && this.Document.hasFocus() )
|
|
220
|
+
return ;
|
|
221
|
+
|
|
222
|
+
if ( FCKBrowserInfo.IsSafari )
|
|
223
|
+
this.IFrame.focus() ;
|
|
224
|
+
else
|
|
225
|
+
{
|
|
226
|
+
this.Window.focus() ;
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
else
|
|
230
|
+
{
|
|
231
|
+
var oDoc = FCKTools.GetElementDocument( this.Textarea ) ;
|
|
232
|
+
if ( (!oDoc.hasFocus || oDoc.hasFocus() ) && oDoc.activeElement == this.Textarea )
|
|
233
|
+
return ;
|
|
234
|
+
|
|
235
|
+
this.Textarea.focus() ;
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
catch(e) {}
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
function FCKEditingArea_Cleanup()
|
|
242
|
+
{
|
|
243
|
+
this.TargetElement = null ;
|
|
244
|
+
this.IFrame = null ;
|
|
245
|
+
this.Document = null ;
|
|
246
|
+
this.Textarea = null ;
|
|
247
|
+
|
|
248
|
+
if ( this.Window )
|
|
249
|
+
{
|
|
250
|
+
this.Window._FCKEditingArea = null ;
|
|
251
|
+
this.Window = null ;
|
|
252
|
+
}
|
|
253
|
+
}
|