forge-cli 0.1.1 → 0.1.2
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.
- checksums.yaml +7 -0
- data/lib/forge-cli/modules/base/manifest.yml +1 -1
- data/lib/forge-cli/modules/base/routes.rb +1 -1
- data/lib/forge-cli/modules/posts/routes.rb +3 -1
- data/lib/forge-cli/version.rb +1 -1
- data/lib/forge/Gemfile +1 -0
- data/lib/forge/app/assets/javascripts/ckeditor/config.js +35 -0
- data/lib/forge/{public → app/assets}/javascripts/ckeditor/contents.css +0 -0
- data/lib/forge/{public → app/assets}/javascripts/ckeditor/plugins/a11yhelp/dialogs/a11yhelp.js +0 -0
- data/lib/forge/{public → app/assets}/javascripts/ckeditor/plugins/a11yhelp/lang/en.js +0 -0
- data/lib/forge/{public → app/assets}/javascripts/ckeditor/plugins/a11yhelp/lang/he.js +0 -0
- data/lib/forge/{public → app/assets}/javascripts/ckeditor/plugins/about/dialogs/about.js +0 -0
- data/lib/forge/{public/javascripts/ckeditor/_source → app/assets/javascripts/ckeditor}/plugins/about/dialogs/logo_ckeditor.png +0 -0
- data/lib/forge/{public → app/assets}/javascripts/ckeditor/plugins/ajax_save/plugin.js +0 -0
- data/lib/forge/{public → app/assets}/javascripts/ckeditor/plugins/attachment/dialogs/attachment.js +0 -0
- data/lib/forge/{public/javascripts/ckeditor/_source → app/assets/javascripts/ckeditor}/plugins/attachment/images/attachment.png +0 -0
- data/lib/forge/{public/javascripts/ckeditor/_source → app/assets/javascripts/ckeditor}/plugins/attachment/lang/en.js +0 -0
- data/lib/forge/{public/javascripts/ckeditor/_source → app/assets/javascripts/ckeditor}/plugins/attachment/lang/ru.js +0 -0
- data/lib/forge/{public/javascripts/ckeditor/_source → app/assets/javascripts/ckeditor}/plugins/attachment/lang/uk.js +0 -0
- data/lib/forge/{public → app/assets}/javascripts/ckeditor/plugins/attachment/plugin.js +0 -0
- data/lib/forge/{public → app/assets}/javascripts/ckeditor/plugins/autogrow/plugin.js +0 -0
- data/lib/forge/{public → app/assets}/javascripts/ckeditor/plugins/clipboard/dialogs/paste.js +0 -0
- data/lib/forge/{public → app/assets}/javascripts/ckeditor/plugins/colordialog/dialogs/colordialog.js +0 -0
- data/lib/forge/{public → app/assets}/javascripts/ckeditor/plugins/dialog/dialogDefinition.js +0 -0
- data/lib/forge/{public → app/assets}/javascripts/ckeditor/plugins/div/dialogs/div.js +0 -0
- data/lib/forge/{public → app/assets}/javascripts/ckeditor/plugins/embed/dialogs/embed.js +0 -0
- data/lib/forge/{public/javascripts/ckeditor/_source → app/assets/javascripts/ckeditor}/plugins/embed/images/embed.png +0 -0
- data/lib/forge/{public/javascripts/ckeditor/_source → app/assets/javascripts/ckeditor}/plugins/embed/lang/en.js +0 -0
- data/lib/forge/{public/javascripts/ckeditor/_source → app/assets/javascripts/ckeditor}/plugins/embed/lang/ru.js +0 -0
- data/lib/forge/{public/javascripts/ckeditor/_source → app/assets/javascripts/ckeditor}/plugins/embed/lang/uk.js +0 -0
- data/lib/forge/{public → app/assets}/javascripts/ckeditor/plugins/embed/plugin.js +0 -0
- data/lib/forge/{public → app/assets}/javascripts/ckeditor/plugins/find/dialogs/find.js +0 -0
- data/lib/forge/{public → app/assets}/javascripts/ckeditor/plugins/flash/dialogs/flash.js +0 -0
- data/lib/forge/{public/javascripts/ckeditor/_source → app/assets/javascripts/ckeditor}/plugins/flash/images/placeholder.png +0 -0
- data/lib/forge/{public → app/assets}/javascripts/ckeditor/plugins/forge_assets/plugin.js +2 -2
- data/lib/forge/{public → app/assets}/javascripts/ckeditor/plugins/forms/dialogs/button.js +0 -0
- data/lib/forge/{public → app/assets}/javascripts/ckeditor/plugins/forms/dialogs/checkbox.js +0 -0
- data/lib/forge/{public → app/assets}/javascripts/ckeditor/plugins/forms/dialogs/form.js +0 -0
- data/lib/forge/{public → app/assets}/javascripts/ckeditor/plugins/forms/dialogs/hiddenfield.js +0 -0
- data/lib/forge/{public → app/assets}/javascripts/ckeditor/plugins/forms/dialogs/radio.js +0 -0
- data/lib/forge/{public → app/assets}/javascripts/ckeditor/plugins/forms/dialogs/select.js +0 -0
- data/lib/forge/{public → app/assets}/javascripts/ckeditor/plugins/forms/dialogs/textarea.js +0 -0
- data/lib/forge/{public → app/assets}/javascripts/ckeditor/plugins/forms/dialogs/textfield.js +0 -0
- data/lib/forge/{public/javascripts/ckeditor/_source → app/assets/javascripts/ckeditor}/plugins/forms/images/hiddenfield.gif +0 -0
- data/lib/forge/{public → app/assets}/javascripts/ckeditor/plugins/iframedialog/plugin.js +0 -0
- data/lib/forge/{public → app/assets}/javascripts/ckeditor/plugins/image/dialogs/image.js +0 -0
- data/lib/forge/{public → app/assets}/javascripts/ckeditor/plugins/link/dialogs/anchor.js +0 -0
- data/lib/forge/{public → app/assets}/javascripts/ckeditor/plugins/link/dialogs/link.js +0 -0
- data/lib/forge/{public/javascripts/ckeditor/_source → app/assets/javascripts/ckeditor}/plugins/link/images/anchor.gif +0 -0
- data/lib/forge/{public → app/assets}/javascripts/ckeditor/plugins/liststyle/dialogs/liststyle.js +0 -0
- data/lib/forge/app/assets/javascripts/ckeditor/plugins/mediaembed/icons/hidpi/mediaembed.png +0 -0
- data/lib/forge/app/assets/javascripts/ckeditor/plugins/mediaembed/icons/mediaembed.png +0 -0
- data/lib/forge/app/assets/javascripts/ckeditor/plugins/mediaembed/plugin.js +64 -0
- data/lib/forge/{public/javascripts/ckeditor/_source → app/assets/javascripts/ckeditor}/plugins/pagebreak/images/pagebreak.gif +0 -0
- data/lib/forge/{public → app/assets}/javascripts/ckeditor/plugins/pastefromword/filter/default.js +0 -0
- data/lib/forge/{public → app/assets}/javascripts/ckeditor/plugins/pastetext/dialogs/pastetext.js +0 -0
- data/lib/forge/{public → app/assets}/javascripts/ckeditor/plugins/scayt/dialogs/options.js +0 -0
- data/lib/forge/{public → app/assets}/javascripts/ckeditor/plugins/scayt/dialogs/toolbar.css +0 -0
- data/lib/forge/{public/javascripts/ckeditor/_source → app/assets/javascripts/ckeditor}/plugins/showblocks/images/block_address.png +0 -0
- data/lib/forge/{public/javascripts/ckeditor/_source → app/assets/javascripts/ckeditor}/plugins/showblocks/images/block_blockquote.png +0 -0
- data/lib/forge/{public/javascripts/ckeditor/_source → app/assets/javascripts/ckeditor}/plugins/showblocks/images/block_div.png +0 -0
- data/lib/forge/{public/javascripts/ckeditor/_source → app/assets/javascripts/ckeditor}/plugins/showblocks/images/block_h1.png +0 -0
- data/lib/forge/{public/javascripts/ckeditor/_source → app/assets/javascripts/ckeditor}/plugins/showblocks/images/block_h2.png +0 -0
- data/lib/forge/{public/javascripts/ckeditor/_source → app/assets/javascripts/ckeditor}/plugins/showblocks/images/block_h3.png +0 -0
- data/lib/forge/{public/javascripts/ckeditor/_source → app/assets/javascripts/ckeditor}/plugins/showblocks/images/block_h4.png +0 -0
- data/lib/forge/{public/javascripts/ckeditor/_source → app/assets/javascripts/ckeditor}/plugins/showblocks/images/block_h5.png +0 -0
- data/lib/forge/{public/javascripts/ckeditor/_source → app/assets/javascripts/ckeditor}/plugins/showblocks/images/block_h6.png +0 -0
- data/lib/forge/{public/javascripts/ckeditor/_source → app/assets/javascripts/ckeditor}/plugins/showblocks/images/block_p.png +0 -0
- data/lib/forge/{public/javascripts/ckeditor/_source → app/assets/javascripts/ckeditor}/plugins/showblocks/images/block_pre.png +0 -0
- data/lib/forge/{public → app/assets}/javascripts/ckeditor/plugins/smiley/dialogs/smiley.js +0 -0
- data/lib/forge/{public/javascripts/ckeditor/_source → app/assets/javascripts/ckeditor}/plugins/smiley/images/angel_smile.gif +0 -0
- data/lib/forge/{public/javascripts/ckeditor/_source → app/assets/javascripts/ckeditor}/plugins/smiley/images/angry_smile.gif +0 -0
- data/lib/forge/{public/javascripts/ckeditor/_source → app/assets/javascripts/ckeditor}/plugins/smiley/images/broken_heart.gif +0 -0
- data/lib/forge/{public/javascripts/ckeditor/_source → app/assets/javascripts/ckeditor}/plugins/smiley/images/confused_smile.gif +0 -0
- data/lib/forge/{public/javascripts/ckeditor/_source → app/assets/javascripts/ckeditor}/plugins/smiley/images/cry_smile.gif +0 -0
- data/lib/forge/{public/javascripts/ckeditor/_source → app/assets/javascripts/ckeditor}/plugins/smiley/images/devil_smile.gif +0 -0
- data/lib/forge/{public/javascripts/ckeditor/_source → app/assets/javascripts/ckeditor}/plugins/smiley/images/embaressed_smile.gif +0 -0
- data/lib/forge/{public/javascripts/ckeditor/_source → app/assets/javascripts/ckeditor}/plugins/smiley/images/envelope.gif +0 -0
- data/lib/forge/{public/javascripts/ckeditor/_source → app/assets/javascripts/ckeditor}/plugins/smiley/images/heart.gif +0 -0
- data/lib/forge/{public/javascripts/ckeditor/_source → app/assets/javascripts/ckeditor}/plugins/smiley/images/kiss.gif +0 -0
- data/lib/forge/{public/javascripts/ckeditor/_source → app/assets/javascripts/ckeditor}/plugins/smiley/images/lightbulb.gif +0 -0
- data/lib/forge/{public/javascripts/ckeditor/_source → app/assets/javascripts/ckeditor}/plugins/smiley/images/omg_smile.gif +0 -0
- data/lib/forge/{public/javascripts/ckeditor/_source → app/assets/javascripts/ckeditor}/plugins/smiley/images/regular_smile.gif +0 -0
- data/lib/forge/{public/javascripts/ckeditor/_source → app/assets/javascripts/ckeditor}/plugins/smiley/images/sad_smile.gif +0 -0
- data/lib/forge/{public/javascripts/ckeditor/_source → app/assets/javascripts/ckeditor}/plugins/smiley/images/shades_smile.gif +0 -0
- data/lib/forge/{public/javascripts/ckeditor/_source → app/assets/javascripts/ckeditor}/plugins/smiley/images/teeth_smile.gif +0 -0
- data/lib/forge/{public/javascripts/ckeditor/_source → app/assets/javascripts/ckeditor}/plugins/smiley/images/thumbs_down.gif +0 -0
- data/lib/forge/{public/javascripts/ckeditor/_source → app/assets/javascripts/ckeditor}/plugins/smiley/images/thumbs_up.gif +0 -0
- data/lib/forge/{public/javascripts/ckeditor/_source → app/assets/javascripts/ckeditor}/plugins/smiley/images/tounge_smile.gif +0 -0
- data/lib/forge/{public/javascripts/ckeditor/_source → app/assets/javascripts/ckeditor}/plugins/smiley/images/whatchutalkingabout_smile.gif +0 -0
- data/lib/forge/{public/javascripts/ckeditor/_source → app/assets/javascripts/ckeditor}/plugins/smiley/images/wink_smile.gif +0 -0
- data/lib/forge/{public → app/assets}/javascripts/ckeditor/plugins/specialchar/dialogs/specialchar.js +0 -0
- data/lib/forge/{public → app/assets}/javascripts/ckeditor/plugins/styles/styles/default.js +0 -0
- data/lib/forge/{public → app/assets}/javascripts/ckeditor/plugins/table/dialogs/table.js +0 -0
- data/lib/forge/{public → app/assets}/javascripts/ckeditor/plugins/tableresize/plugin.js +0 -0
- data/lib/forge/{public → app/assets}/javascripts/ckeditor/plugins/tabletools/dialogs/tableCell.js +0 -0
- data/lib/forge/{public → app/assets}/javascripts/ckeditor/plugins/templates/dialogs/templates.js +0 -0
- data/lib/forge/{public → app/assets}/javascripts/ckeditor/plugins/templates/templates/default.js +0 -0
- data/lib/forge/{public/javascripts/ckeditor/_source → app/assets/javascripts/ckeditor}/plugins/templates/templates/images/template1.gif +0 -0
- data/lib/forge/{public/javascripts/ckeditor/_source → app/assets/javascripts/ckeditor}/plugins/templates/templates/images/template2.gif +0 -0
- data/lib/forge/{public/javascripts/ckeditor/_source → app/assets/javascripts/ckeditor}/plugins/templates/templates/images/template3.gif +0 -0
- data/lib/forge/{public → app/assets}/javascripts/ckeditor/plugins/uicolor/dialogs/uicolor.js +0 -0
- data/lib/forge/{public → app/assets}/javascripts/ckeditor/plugins/uicolor/lang/en.js +0 -0
- data/lib/forge/{public → app/assets}/javascripts/ckeditor/plugins/uicolor/plugin.js +0 -0
- data/lib/forge/{public/javascripts/ckeditor/_source → app/assets/javascripts/ckeditor}/plugins/uicolor/uicolor.gif +0 -0
- data/lib/forge/{public/javascripts/ckeditor/_source → app/assets/javascripts/ckeditor}/plugins/uicolor/yui/assets/hue_bg.png +0 -0
- data/lib/forge/{public/javascripts/ckeditor/_source → app/assets/javascripts/ckeditor}/plugins/uicolor/yui/assets/hue_thumb.png +0 -0
- data/lib/forge/{public/javascripts/ckeditor/_source → app/assets/javascripts/ckeditor}/plugins/uicolor/yui/assets/picker_mask.png +0 -0
- data/lib/forge/{public/javascripts/ckeditor/_source → app/assets/javascripts/ckeditor}/plugins/uicolor/yui/assets/picker_thumb.png +0 -0
- data/lib/forge/{public → app/assets}/javascripts/ckeditor/plugins/uicolor/yui/assets/yui.css +0 -0
- data/lib/forge/{public → app/assets}/javascripts/ckeditor/plugins/uicolor/yui/yui.js +0 -0
- data/lib/forge/{public/javascripts/ckeditor/_source → app/assets/javascripts/ckeditor}/plugins/wsc/dialogs/ciframe.html +0 -0
- data/lib/forge/{public/javascripts/ckeditor/_source → app/assets/javascripts/ckeditor}/plugins/wsc/dialogs/tmpFrameset.html +0 -0
- data/lib/forge/{public → app/assets}/javascripts/ckeditor/plugins/wsc/dialogs/wsc.css +0 -0
- data/lib/forge/{public → app/assets}/javascripts/ckeditor/plugins/wsc/dialogs/wsc.js +0 -0
- data/lib/forge/app/models/asset.rb +2 -1
- data/lib/forge/app/views/forge/pages/_form.html.haml +12 -5
- data/lib/forge/app/views/forge/posts/_form.html.haml +12 -6
- data/lib/forge/app/views/layouts/forge.html.haml +0 -3
- data/lib/forge/config/routes.rb +4 -2
- data/lib/forge/lib/assets/javascripts/forge/features/asset_dialog.js.erb +1 -1
- data/lib/forge/lib/assets/javascripts/forge/features/asset_drawer.js.erb +4 -4
- data/lib/forge/lib/assets/javascripts/forge/forge_manifest.js.erb +1 -0
- data/lib/forge/lib/generators/forge/scaffold/scaffold_generator.rb +1 -0
- data/lib/forge/lib/templates/active_record/model/model.rb +4 -1
- data/lib/forge/public/images/image_new.png +0 -0
- metadata +207 -699
- data/lib/forge/public/javascripts/ckeditor/CHANGES.html +0 -923
- data/lib/forge/public/javascripts/ckeditor/INSTALL.html +0 -92
- data/lib/forge/public/javascripts/ckeditor/LICENSE.html +0 -1334
- data/lib/forge/public/javascripts/ckeditor/_source/adapters/jquery.js +0 -297
- data/lib/forge/public/javascripts/ckeditor/_source/core/_bootstrap.js +0 -91
- data/lib/forge/public/javascripts/ckeditor/_source/core/ajax.js +0 -143
- data/lib/forge/public/javascripts/ckeditor/_source/core/ckeditor.js +0 -113
- data/lib/forge/public/javascripts/ckeditor/_source/core/ckeditor_base.js +0 -193
- data/lib/forge/public/javascripts/ckeditor/_source/core/ckeditor_basic.js +0 -242
- data/lib/forge/public/javascripts/ckeditor/_source/core/command.js +0 -73
- data/lib/forge/public/javascripts/ckeditor/_source/core/commanddefinition.js +0 -102
- data/lib/forge/public/javascripts/ckeditor/_source/core/config.js +0 -405
- data/lib/forge/public/javascripts/ckeditor/_source/core/dataprocessor.js +0 -66
- data/lib/forge/public/javascripts/ckeditor/_source/core/dom.js +0 -21
- data/lib/forge/public/javascripts/ckeditor/_source/core/dom/comment.js +0 -32
- data/lib/forge/public/javascripts/ckeditor/_source/core/dom/document.js +0 -224
- data/lib/forge/public/javascripts/ckeditor/_source/core/dom/documentfragment.js +0 -49
- data/lib/forge/public/javascripts/ckeditor/_source/core/dom/domobject.js +0 -251
- data/lib/forge/public/javascripts/ckeditor/_source/core/dom/element.js +0 -1556
- data/lib/forge/public/javascripts/ckeditor/_source/core/dom/elementpath.js +0 -116
- data/lib/forge/public/javascripts/ckeditor/_source/core/dom/event.js +0 -142
- data/lib/forge/public/javascripts/ckeditor/_source/core/dom/node.js +0 -683
- data/lib/forge/public/javascripts/ckeditor/_source/core/dom/nodelist.js +0 -23
- data/lib/forge/public/javascripts/ckeditor/_source/core/dom/range.js +0 -1880
- data/lib/forge/public/javascripts/ckeditor/_source/core/dom/rangelist.js +0 -163
- data/lib/forge/public/javascripts/ckeditor/_source/core/dom/text.js +0 -123
- data/lib/forge/public/javascripts/ckeditor/_source/core/dom/walker.js +0 -445
- data/lib/forge/public/javascripts/ckeditor/_source/core/dom/window.js +0 -96
- data/lib/forge/public/javascripts/ckeditor/_source/core/dtd.js +0 -233
- data/lib/forge/public/javascripts/ckeditor/_source/core/editor.js +0 -759
- data/lib/forge/public/javascripts/ckeditor/_source/core/editor_basic.js +0 -182
- data/lib/forge/public/javascripts/ckeditor/_source/core/env.js +0 -229
- data/lib/forge/public/javascripts/ckeditor/_source/core/event.js +0 -336
- data/lib/forge/public/javascripts/ckeditor/_source/core/eventInfo.js +0 -120
- data/lib/forge/public/javascripts/ckeditor/_source/core/focusmanager.js +0 -137
- data/lib/forge/public/javascripts/ckeditor/_source/core/htmlparser.js +0 -218
- data/lib/forge/public/javascripts/ckeditor/_source/core/htmlparser/basicwriter.js +0 -145
- data/lib/forge/public/javascripts/ckeditor/_source/core/htmlparser/cdata.js +0 -43
- data/lib/forge/public/javascripts/ckeditor/_source/core/htmlparser/comment.js +0 -60
- data/lib/forge/public/javascripts/ckeditor/_source/core/htmlparser/element.js +0 -240
- data/lib/forge/public/javascripts/ckeditor/_source/core/htmlparser/filter.js +0 -288
- data/lib/forge/public/javascripts/ckeditor/_source/core/htmlparser/fragment.js +0 -497
- data/lib/forge/public/javascripts/ckeditor/_source/core/htmlparser/text.js +0 -55
- data/lib/forge/public/javascripts/ckeditor/_source/core/imagecacher.js +0 -59
- data/lib/forge/public/javascripts/ckeditor/_source/core/lang.js +0 -152
- data/lib/forge/public/javascripts/ckeditor/_source/core/loader.js +0 -243
- data/lib/forge/public/javascripts/ckeditor/_source/core/plugindefinition.js +0 -66
- data/lib/forge/public/javascripts/ckeditor/_source/core/plugins.js +0 -85
- data/lib/forge/public/javascripts/ckeditor/_source/core/resourcemanager.js +0 -238
- data/lib/forge/public/javascripts/ckeditor/_source/core/scriptloader.js +0 -198
- data/lib/forge/public/javascripts/ckeditor/_source/core/skins.js +0 -204
- data/lib/forge/public/javascripts/ckeditor/_source/core/themes.js +0 -19
- data/lib/forge/public/javascripts/ckeditor/_source/core/tools.js +0 -747
- data/lib/forge/public/javascripts/ckeditor/_source/core/ui.js +0 -116
- data/lib/forge/public/javascripts/ckeditor/_source/core/xml.js +0 -165
- data/lib/forge/public/javascripts/ckeditor/_source/lang/_languages.js +0 -83
- data/lib/forge/public/javascripts/ckeditor/_source/lang/_translationstatus.txt +0 -60
- data/lib/forge/public/javascripts/ckeditor/_source/lang/af.js +0 -758
- data/lib/forge/public/javascripts/ckeditor/_source/lang/ar.js +0 -758
- data/lib/forge/public/javascripts/ckeditor/_source/lang/bg.js +0 -758
- data/lib/forge/public/javascripts/ckeditor/_source/lang/bn.js +0 -758
- data/lib/forge/public/javascripts/ckeditor/_source/lang/bs.js +0 -758
- data/lib/forge/public/javascripts/ckeditor/_source/lang/ca.js +0 -758
- data/lib/forge/public/javascripts/ckeditor/_source/lang/cs.js +0 -758
- data/lib/forge/public/javascripts/ckeditor/_source/lang/cy.js +0 -758
- data/lib/forge/public/javascripts/ckeditor/_source/lang/da.js +0 -758
- data/lib/forge/public/javascripts/ckeditor/_source/lang/de.js +0 -758
- data/lib/forge/public/javascripts/ckeditor/_source/lang/el.js +0 -758
- data/lib/forge/public/javascripts/ckeditor/_source/lang/en-au.js +0 -758
- data/lib/forge/public/javascripts/ckeditor/_source/lang/en-ca.js +0 -758
- data/lib/forge/public/javascripts/ckeditor/_source/lang/en-gb.js +0 -758
- data/lib/forge/public/javascripts/ckeditor/_source/lang/en.js +0 -758
- data/lib/forge/public/javascripts/ckeditor/_source/lang/eo.js +0 -758
- data/lib/forge/public/javascripts/ckeditor/_source/lang/es.js +0 -758
- data/lib/forge/public/javascripts/ckeditor/_source/lang/et.js +0 -758
- data/lib/forge/public/javascripts/ckeditor/_source/lang/eu.js +0 -758
- data/lib/forge/public/javascripts/ckeditor/_source/lang/fa.js +0 -758
- data/lib/forge/public/javascripts/ckeditor/_source/lang/fi.js +0 -758
- data/lib/forge/public/javascripts/ckeditor/_source/lang/fo.js +0 -758
- data/lib/forge/public/javascripts/ckeditor/_source/lang/fr-ca.js +0 -758
- data/lib/forge/public/javascripts/ckeditor/_source/lang/fr.js +0 -758
- data/lib/forge/public/javascripts/ckeditor/_source/lang/gl.js +0 -758
- data/lib/forge/public/javascripts/ckeditor/_source/lang/gu.js +0 -758
- data/lib/forge/public/javascripts/ckeditor/_source/lang/he.js +0 -758
- data/lib/forge/public/javascripts/ckeditor/_source/lang/hi.js +0 -758
- data/lib/forge/public/javascripts/ckeditor/_source/lang/hr.js +0 -758
- data/lib/forge/public/javascripts/ckeditor/_source/lang/hu.js +0 -758
- data/lib/forge/public/javascripts/ckeditor/_source/lang/is.js +0 -758
- data/lib/forge/public/javascripts/ckeditor/_source/lang/it.js +0 -758
- data/lib/forge/public/javascripts/ckeditor/_source/lang/ja.js +0 -758
- data/lib/forge/public/javascripts/ckeditor/_source/lang/km.js +0 -758
- data/lib/forge/public/javascripts/ckeditor/_source/lang/ko.js +0 -758
- data/lib/forge/public/javascripts/ckeditor/_source/lang/lt.js +0 -758
- data/lib/forge/public/javascripts/ckeditor/_source/lang/lv.js +0 -758
- data/lib/forge/public/javascripts/ckeditor/_source/lang/mn.js +0 -758
- data/lib/forge/public/javascripts/ckeditor/_source/lang/ms.js +0 -758
- data/lib/forge/public/javascripts/ckeditor/_source/lang/nb.js +0 -758
- data/lib/forge/public/javascripts/ckeditor/_source/lang/nl.js +0 -758
- data/lib/forge/public/javascripts/ckeditor/_source/lang/no.js +0 -758
- data/lib/forge/public/javascripts/ckeditor/_source/lang/pl.js +0 -758
- data/lib/forge/public/javascripts/ckeditor/_source/lang/pt-br.js +0 -757
- data/lib/forge/public/javascripts/ckeditor/_source/lang/pt.js +0 -758
- data/lib/forge/public/javascripts/ckeditor/_source/lang/ro.js +0 -758
- data/lib/forge/public/javascripts/ckeditor/_source/lang/ru.js +0 -758
- data/lib/forge/public/javascripts/ckeditor/_source/lang/sk.js +0 -758
- data/lib/forge/public/javascripts/ckeditor/_source/lang/sl.js +0 -758
- data/lib/forge/public/javascripts/ckeditor/_source/lang/sr-latn.js +0 -758
- data/lib/forge/public/javascripts/ckeditor/_source/lang/sr.js +0 -758
- data/lib/forge/public/javascripts/ckeditor/_source/lang/sv.js +0 -758
- data/lib/forge/public/javascripts/ckeditor/_source/lang/th.js +0 -758
- data/lib/forge/public/javascripts/ckeditor/_source/lang/tr.js +0 -757
- data/lib/forge/public/javascripts/ckeditor/_source/lang/uk.js +0 -758
- data/lib/forge/public/javascripts/ckeditor/_source/lang/vi.js +0 -758
- data/lib/forge/public/javascripts/ckeditor/_source/lang/zh-cn.js +0 -758
- data/lib/forge/public/javascripts/ckeditor/_source/lang/zh.js +0 -758
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/a11yhelp/dialogs/a11yhelp.js +0 -211
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/a11yhelp/lang/en.js +0 -108
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/a11yhelp/lang/he.js +0 -216
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/a11yhelp/plugin.js +0 -46
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/about/dialogs/about.js +0 -73
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/about/plugin.js +0 -23
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/ajax_save/plugin.js +0 -43
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/attachment/dialogs/attachment.js +0 -384
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/attachment/plugin.js +0 -44
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/autogrow/plugin.js +0 -79
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/basicstyles/plugin.js +0 -101
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/bidi/plugin.js +0 -247
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/blockquote/plugin.js +0 -301
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/button/plugin.js +0 -277
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/clipboard/dialogs/paste.js +0 -205
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/clipboard/plugin.js +0 -412
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/colorbutton/plugin.js +0 -251
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/colordialog/dialogs/colordialog.js +0 -340
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/colordialog/plugin.js +0 -13
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/contextmenu/plugin.js +0 -276
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/dialog/dialogDefinition.js +0 -315
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/dialog/plugin.js +0 -3016
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/dialogadvtab/plugin.js +0 -207
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/dialogui/plugin.js +0 -1522
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/div/dialogs/div.js +0 -535
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/div/plugin.js +0 -121
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/domiterator/plugin.js +0 -350
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/editingblock/plugin.js +0 -230
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/elementspath/plugin.js +0 -206
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/embed/dialogs/embed.js +0 -65
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/embed/plugin.js +0 -43
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/enterkey/plugin.js +0 -363
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/entities/plugin.js +0 -227
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/fakeobjects/plugin.js +0 -122
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/filebrowser/plugin.js +0 -491
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/find/dialogs/find.js +0 -885
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/find/plugin.js +0 -46
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/flash/dialogs/flash.js +0 -698
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/flash/plugin.js +0 -174
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/floatpanel/plugin.js +0 -398
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/font/plugin.js +0 -234
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/format/plugin.js +0 -194
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/forms/dialogs/button.js +0 -135
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/forms/dialogs/checkbox.js +0 -155
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/forms/dialogs/form.js +0 -177
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/forms/dialogs/hiddenfield.js +0 -98
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/forms/dialogs/radio.js +0 -135
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/forms/dialogs/select.js +0 -556
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/forms/dialogs/textarea.js +0 -114
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/forms/dialogs/textfield.js +0 -199
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/forms/plugin.js +0 -281
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/horizontalrule/plugin.js +0 -36
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/htmldataprocessor/plugin.js +0 -494
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/htmlwriter/plugin.js +0 -314
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/iframedialog/plugin.js +0 -136
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/image/dialogs/image.js +0 -1396
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/image/plugin.js +0 -81
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/indent/plugin.js +0 -447
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/justify/plugin.js +0 -190
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/keystrokes/plugin.js +0 -229
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/link/dialogs/anchor.js +0 -99
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/link/dialogs/link.js +0 -1420
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/link/plugin.js +0 -238
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/list/plugin.js +0 -683
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/listblock/plugin.js +0 -257
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/liststyle/dialogs/liststyle.js +0 -203
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/liststyle/plugin.js +0 -66
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/maximize/plugin.js +0 -343
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/menu/plugin.js +0 -409
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/menubutton/plugin.js +0 -94
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/newpage/plugin.js +0 -54
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/pagebreak/plugin.js +0 -121
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/panel/plugin.js +0 -398
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/panelbutton/plugin.js +0 -147
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/pastefromword/filter/default.js +0 -1170
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/pastefromword/plugin.js +0 -122
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/pastetext/dialogs/pastetext.js +0 -70
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/pastetext/plugin.js +0 -145
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/popup/plugin.js +0 -64
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/preview/plugin.js +0 -108
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/print/plugin.js +0 -41
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/removeformat/plugin.js +0 -184
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/resize/plugin.js +0 -157
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/richcombo/plugin.js +0 -370
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/save/plugin.js +0 -55
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/scayt/dialogs/options.js +0 -533
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/scayt/dialogs/toolbar.css +0 -71
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/scayt/plugin.js +0 -943
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/selection/plugin.js +0 -1367
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/showblocks/plugin.js +0 -156
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/showborders/plugin.js +0 -201
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/smiley/dialogs/smiley.js +0 -216
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/smiley/plugin.js +0 -94
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/sourcearea/plugin.js +0 -207
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/specialchar/dialogs/specialchar.js +0 -409
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/specialchar/plugin.js +0 -29
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/styles/plugin.js +0 -1445
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/styles/styles/default.js +0 -88
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/stylescombo/plugin.js +0 -207
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/tab/plugin.js +0 -367
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/table/dialogs/table.js +0 -673
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/table/plugin.js +0 -78
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/tableresize/plugin.js +0 -450
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/tabletools/dialogs/tableCell.js +0 -533
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/tabletools/plugin.js +0 -1120
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/templates/dialogs/templates.js +0 -231
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/templates/plugin.js +0 -100
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/templates/templates/default.js +0 -94
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/toolbar/plugin.js +0 -481
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/uicolor/dialogs/uicolor.js +0 -205
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/uicolor/lang/en.js +0 -15
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/uicolor/plugin.js +0 -37
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/uicolor/yui/assets/yui.css +0 -15
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/uicolor/yui/yui.js +0 -71
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/undo/plugin.js +0 -555
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/wsc/dialogs/wsc.css +0 -82
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/wsc/dialogs/wsc.js +0 -176
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/wsc/plugin.js +0 -33
- data/lib/forge/public/javascripts/ckeditor/_source/plugins/wysiwygarea/plugin.js +0 -1126
- data/lib/forge/public/javascripts/ckeditor/_source/skins/kama/dialog.css +0 -856
- data/lib/forge/public/javascripts/ckeditor/_source/skins/kama/editor.css +0 -25
- data/lib/forge/public/javascripts/ckeditor/_source/skins/kama/elementspath.css +0 -73
- data/lib/forge/public/javascripts/ckeditor/_source/skins/kama/icons.css +0 -357
- data/lib/forge/public/javascripts/ckeditor/_source/skins/kama/icons.png +0 -0
- data/lib/forge/public/javascripts/ckeditor/_source/skins/kama/icons_rtl.png +0 -0
- data/lib/forge/public/javascripts/ckeditor/_source/skins/kama/images/dialog_sides.gif +0 -0
- data/lib/forge/public/javascripts/ckeditor/_source/skins/kama/images/dialog_sides.png +0 -0
- data/lib/forge/public/javascripts/ckeditor/_source/skins/kama/images/dialog_sides_rtl.png +0 -0
- data/lib/forge/public/javascripts/ckeditor/_source/skins/kama/images/mini.gif +0 -0
- data/lib/forge/public/javascripts/ckeditor/_source/skins/kama/images/noimage.png +0 -0
- data/lib/forge/public/javascripts/ckeditor/_source/skins/kama/images/sprites.png +0 -0
- data/lib/forge/public/javascripts/ckeditor/_source/skins/kama/images/sprites_ie6.png +0 -0
- data/lib/forge/public/javascripts/ckeditor/_source/skins/kama/images/toolbar_start.gif +0 -0
- data/lib/forge/public/javascripts/ckeditor/_source/skins/kama/mainui.css +0 -195
- data/lib/forge/public/javascripts/ckeditor/_source/skins/kama/menu.css +0 -202
- data/lib/forge/public/javascripts/ckeditor/_source/skins/kama/panel.css +0 -217
- data/lib/forge/public/javascripts/ckeditor/_source/skins/kama/presets.css +0 -49
- data/lib/forge/public/javascripts/ckeditor/_source/skins/kama/reset.css +0 -84
- data/lib/forge/public/javascripts/ckeditor/_source/skins/kama/richcombo.css +0 -277
- data/lib/forge/public/javascripts/ckeditor/_source/skins/kama/skin.js +0 -268
- data/lib/forge/public/javascripts/ckeditor/_source/skins/kama/templates.css +0 -88
- data/lib/forge/public/javascripts/ckeditor/_source/skins/kama/toolbar.css +0 -409
- data/lib/forge/public/javascripts/ckeditor/_source/skins/office2003/dialog.css +0 -765
- data/lib/forge/public/javascripts/ckeditor/_source/skins/office2003/editor.css +0 -25
- data/lib/forge/public/javascripts/ckeditor/_source/skins/office2003/elementspath.css +0 -74
- data/lib/forge/public/javascripts/ckeditor/_source/skins/office2003/icons.css +0 -354
- data/lib/forge/public/javascripts/ckeditor/_source/skins/office2003/icons.png +0 -0
- data/lib/forge/public/javascripts/ckeditor/_source/skins/office2003/icons_rtl.png +0 -0
- data/lib/forge/public/javascripts/ckeditor/_source/skins/office2003/images/dialog_sides.gif +0 -0
- data/lib/forge/public/javascripts/ckeditor/_source/skins/office2003/images/dialog_sides.png +0 -0
- data/lib/forge/public/javascripts/ckeditor/_source/skins/office2003/images/dialog_sides_rtl.png +0 -0
- data/lib/forge/public/javascripts/ckeditor/_source/skins/office2003/images/mini.gif +0 -0
- data/lib/forge/public/javascripts/ckeditor/_source/skins/office2003/images/noimage.png +0 -0
- data/lib/forge/public/javascripts/ckeditor/_source/skins/office2003/images/sprites.png +0 -0
- data/lib/forge/public/javascripts/ckeditor/_source/skins/office2003/images/sprites_ie6.png +0 -0
- data/lib/forge/public/javascripts/ckeditor/_source/skins/office2003/mainui.css +0 -145
- data/lib/forge/public/javascripts/ckeditor/_source/skins/office2003/menu.css +0 -199
- data/lib/forge/public/javascripts/ckeditor/_source/skins/office2003/panel.css +0 -212
- data/lib/forge/public/javascripts/ckeditor/_source/skins/office2003/presets.css +0 -49
- data/lib/forge/public/javascripts/ckeditor/_source/skins/office2003/reset.css +0 -84
- data/lib/forge/public/javascripts/ckeditor/_source/skins/office2003/richcombo.css +0 -297
- data/lib/forge/public/javascripts/ckeditor/_source/skins/office2003/skin.js +0 -81
- data/lib/forge/public/javascripts/ckeditor/_source/skins/office2003/templates.css +0 -87
- data/lib/forge/public/javascripts/ckeditor/_source/skins/office2003/toolbar.css +0 -470
- data/lib/forge/public/javascripts/ckeditor/_source/skins/v2/dialog.css +0 -780
- data/lib/forge/public/javascripts/ckeditor/_source/skins/v2/editor.css +0 -25
- data/lib/forge/public/javascripts/ckeditor/_source/skins/v2/elementspath.css +0 -74
- data/lib/forge/public/javascripts/ckeditor/_source/skins/v2/icons.css +0 -354
- data/lib/forge/public/javascripts/ckeditor/_source/skins/v2/icons.png +0 -0
- data/lib/forge/public/javascripts/ckeditor/_source/skins/v2/icons_rtl.png +0 -0
- data/lib/forge/public/javascripts/ckeditor/_source/skins/v2/images/dialog_sides.gif +0 -0
- data/lib/forge/public/javascripts/ckeditor/_source/skins/v2/images/dialog_sides.png +0 -0
- data/lib/forge/public/javascripts/ckeditor/_source/skins/v2/images/dialog_sides_rtl.png +0 -0
- data/lib/forge/public/javascripts/ckeditor/_source/skins/v2/images/mini.gif +0 -0
- data/lib/forge/public/javascripts/ckeditor/_source/skins/v2/images/noimage.png +0 -0
- data/lib/forge/public/javascripts/ckeditor/_source/skins/v2/images/sprites.png +0 -0
- data/lib/forge/public/javascripts/ckeditor/_source/skins/v2/images/sprites_ie6.png +0 -0
- data/lib/forge/public/javascripts/ckeditor/_source/skins/v2/images/toolbar_start.gif +0 -0
- data/lib/forge/public/javascripts/ckeditor/_source/skins/v2/mainui.css +0 -154
- data/lib/forge/public/javascripts/ckeditor/_source/skins/v2/menu.css +0 -201
- data/lib/forge/public/javascripts/ckeditor/_source/skins/v2/panel.css +0 -212
- data/lib/forge/public/javascripts/ckeditor/_source/skins/v2/presets.css +0 -50
- data/lib/forge/public/javascripts/ckeditor/_source/skins/v2/reset.css +0 -84
- data/lib/forge/public/javascripts/ckeditor/_source/skins/v2/richcombo.css +0 -297
- data/lib/forge/public/javascripts/ckeditor/_source/skins/v2/skin.js +0 -77
- data/lib/forge/public/javascripts/ckeditor/_source/skins/v2/templates.css +0 -87
- data/lib/forge/public/javascripts/ckeditor/_source/skins/v2/toolbar.css +0 -423
- data/lib/forge/public/javascripts/ckeditor/_source/themes/default/theme.js +0 -356
- data/lib/forge/public/javascripts/ckeditor/adapters/jquery.js +0 -6
- data/lib/forge/public/javascripts/ckeditor/ckeditor.js +0 -135
- data/lib/forge/public/javascripts/ckeditor/ckeditor.pack +0 -211
- data/lib/forge/public/javascripts/ckeditor/ckeditor_basic.js +0 -8
- data/lib/forge/public/javascripts/ckeditor/ckeditor_basic_source.js +0 -20
- data/lib/forge/public/javascripts/ckeditor/ckeditor_source.js +0 -25
- data/lib/forge/public/javascripts/ckeditor/config.js +0 -47
- data/lib/forge/public/javascripts/ckeditor/css/ckfinder.css +0 -299
- data/lib/forge/public/javascripts/ckeditor/css/fck_dialog.css +0 -119
- data/lib/forge/public/javascripts/ckeditor/css/fck_editor.css +0 -448
- data/lib/forge/public/javascripts/ckeditor/css/swfupload.css +0 -94
- data/lib/forge/public/javascripts/ckeditor/images/add.gif +0 -0
- data/lib/forge/public/javascripts/ckeditor/images/cancelbutton.gif +0 -0
- data/lib/forge/public/javascripts/ckeditor/images/ckfnothumb.gif +0 -0
- data/lib/forge/public/javascripts/ckeditor/images/doc.gif +0 -0
- data/lib/forge/public/javascripts/ckeditor/images/image_new.gif +0 -0
- data/lib/forge/public/javascripts/ckeditor/images/mp3.gif +0 -0
- data/lib/forge/public/javascripts/ckeditor/images/pdf.gif +0 -0
- data/lib/forge/public/javascripts/ckeditor/images/rar.gif +0 -0
- data/lib/forge/public/javascripts/ckeditor/images/refresh.gif +0 -0
- data/lib/forge/public/javascripts/ckeditor/images/select_files.png +0 -0
- data/lib/forge/public/javascripts/ckeditor/images/spacer.gif +0 -0
- data/lib/forge/public/javascripts/ckeditor/images/swf.gif +0 -0
- data/lib/forge/public/javascripts/ckeditor/images/toolbar.start.gif +0 -0
- data/lib/forge/public/javascripts/ckeditor/images/xls.gif +0 -0
- data/lib/forge/public/javascripts/ckeditor/lang/_languages.js +0 -6
- data/lib/forge/public/javascripts/ckeditor/lang/_translationstatus.txt +0 -60
- data/lib/forge/public/javascripts/ckeditor/lang/af.js +0 -6
- data/lib/forge/public/javascripts/ckeditor/lang/ar.js +0 -6
- data/lib/forge/public/javascripts/ckeditor/lang/bg.js +0 -6
- data/lib/forge/public/javascripts/ckeditor/lang/bn.js +0 -6
- data/lib/forge/public/javascripts/ckeditor/lang/bs.js +0 -6
- data/lib/forge/public/javascripts/ckeditor/lang/ca.js +0 -6
- data/lib/forge/public/javascripts/ckeditor/lang/cs.js +0 -6
- data/lib/forge/public/javascripts/ckeditor/lang/cy.js +0 -6
- data/lib/forge/public/javascripts/ckeditor/lang/da.js +0 -6
- data/lib/forge/public/javascripts/ckeditor/lang/de.js +0 -6
- data/lib/forge/public/javascripts/ckeditor/lang/el.js +0 -6
- data/lib/forge/public/javascripts/ckeditor/lang/en-au.js +0 -6
- data/lib/forge/public/javascripts/ckeditor/lang/en-ca.js +0 -6
- data/lib/forge/public/javascripts/ckeditor/lang/en-gb.js +0 -6
- data/lib/forge/public/javascripts/ckeditor/lang/en.js +0 -6
- data/lib/forge/public/javascripts/ckeditor/lang/eo.js +0 -6
- data/lib/forge/public/javascripts/ckeditor/lang/es.js +0 -6
- data/lib/forge/public/javascripts/ckeditor/lang/et.js +0 -6
- data/lib/forge/public/javascripts/ckeditor/lang/eu.js +0 -6
- data/lib/forge/public/javascripts/ckeditor/lang/fa.js +0 -6
- data/lib/forge/public/javascripts/ckeditor/lang/fi.js +0 -6
- data/lib/forge/public/javascripts/ckeditor/lang/fo.js +0 -6
- data/lib/forge/public/javascripts/ckeditor/lang/fr-ca.js +0 -6
- data/lib/forge/public/javascripts/ckeditor/lang/fr.js +0 -6
- data/lib/forge/public/javascripts/ckeditor/lang/gl.js +0 -6
- data/lib/forge/public/javascripts/ckeditor/lang/gu.js +0 -6
- data/lib/forge/public/javascripts/ckeditor/lang/he.js +0 -6
- data/lib/forge/public/javascripts/ckeditor/lang/hi.js +0 -6
- data/lib/forge/public/javascripts/ckeditor/lang/hr.js +0 -6
- data/lib/forge/public/javascripts/ckeditor/lang/hu.js +0 -6
- data/lib/forge/public/javascripts/ckeditor/lang/is.js +0 -6
- data/lib/forge/public/javascripts/ckeditor/lang/it.js +0 -6
- data/lib/forge/public/javascripts/ckeditor/lang/ja.js +0 -6
- data/lib/forge/public/javascripts/ckeditor/lang/km.js +0 -6
- data/lib/forge/public/javascripts/ckeditor/lang/ko.js +0 -6
- data/lib/forge/public/javascripts/ckeditor/lang/lt.js +0 -6
- data/lib/forge/public/javascripts/ckeditor/lang/lv.js +0 -6
- data/lib/forge/public/javascripts/ckeditor/lang/mn.js +0 -6
- data/lib/forge/public/javascripts/ckeditor/lang/ms.js +0 -6
- data/lib/forge/public/javascripts/ckeditor/lang/nb.js +0 -6
- data/lib/forge/public/javascripts/ckeditor/lang/nl.js +0 -6
- data/lib/forge/public/javascripts/ckeditor/lang/no.js +0 -6
- data/lib/forge/public/javascripts/ckeditor/lang/pl.js +0 -6
- data/lib/forge/public/javascripts/ckeditor/lang/pt-br.js +0 -6
- data/lib/forge/public/javascripts/ckeditor/lang/pt.js +0 -6
- data/lib/forge/public/javascripts/ckeditor/lang/ro.js +0 -6
- data/lib/forge/public/javascripts/ckeditor/lang/ru.js +0 -6
- data/lib/forge/public/javascripts/ckeditor/lang/sk.js +0 -6
- data/lib/forge/public/javascripts/ckeditor/lang/sl.js +0 -6
- data/lib/forge/public/javascripts/ckeditor/lang/sr-latn.js +0 -6
- data/lib/forge/public/javascripts/ckeditor/lang/sr.js +0 -6
- data/lib/forge/public/javascripts/ckeditor/lang/sv.js +0 -6
- data/lib/forge/public/javascripts/ckeditor/lang/th.js +0 -6
- data/lib/forge/public/javascripts/ckeditor/lang/tr.js +0 -6
- data/lib/forge/public/javascripts/ckeditor/lang/uk.js +0 -6
- data/lib/forge/public/javascripts/ckeditor/lang/vi.js +0 -6
- data/lib/forge/public/javascripts/ckeditor/lang/zh-cn.js +0 -6
- data/lib/forge/public/javascripts/ckeditor/lang/zh.js +0 -6
- data/lib/forge/public/javascripts/ckeditor/plugins/about/dialogs/logo_ckeditor.png +0 -0
- data/lib/forge/public/javascripts/ckeditor/plugins/attachment/images/attachment.png +0 -0
- data/lib/forge/public/javascripts/ckeditor/plugins/attachment/lang/en.js +0 -10
- data/lib/forge/public/javascripts/ckeditor/plugins/attachment/lang/ru.js +0 -10
- data/lib/forge/public/javascripts/ckeditor/plugins/attachment/lang/uk.js +0 -10
- data/lib/forge/public/javascripts/ckeditor/plugins/embed/images/embed.png +0 -0
- data/lib/forge/public/javascripts/ckeditor/plugins/embed/lang/en.js +0 -9
- data/lib/forge/public/javascripts/ckeditor/plugins/embed/lang/ru.js +0 -9
- data/lib/forge/public/javascripts/ckeditor/plugins/embed/lang/uk.js +0 -9
- data/lib/forge/public/javascripts/ckeditor/plugins/flash/images/placeholder.png +0 -0
- data/lib/forge/public/javascripts/ckeditor/plugins/forms/images/hiddenfield.gif +0 -0
- data/lib/forge/public/javascripts/ckeditor/plugins/link/images/anchor.gif +0 -0
- data/lib/forge/public/javascripts/ckeditor/plugins/pagebreak/images/pagebreak.gif +0 -0
- data/lib/forge/public/javascripts/ckeditor/plugins/showblocks/images/block_address.png +0 -0
- data/lib/forge/public/javascripts/ckeditor/plugins/showblocks/images/block_blockquote.png +0 -0
- data/lib/forge/public/javascripts/ckeditor/plugins/showblocks/images/block_div.png +0 -0
- data/lib/forge/public/javascripts/ckeditor/plugins/showblocks/images/block_h1.png +0 -0
- data/lib/forge/public/javascripts/ckeditor/plugins/showblocks/images/block_h2.png +0 -0
- data/lib/forge/public/javascripts/ckeditor/plugins/showblocks/images/block_h3.png +0 -0
- data/lib/forge/public/javascripts/ckeditor/plugins/showblocks/images/block_h4.png +0 -0
- data/lib/forge/public/javascripts/ckeditor/plugins/showblocks/images/block_h5.png +0 -0
- data/lib/forge/public/javascripts/ckeditor/plugins/showblocks/images/block_h6.png +0 -0
- data/lib/forge/public/javascripts/ckeditor/plugins/showblocks/images/block_p.png +0 -0
- data/lib/forge/public/javascripts/ckeditor/plugins/showblocks/images/block_pre.png +0 -0
- data/lib/forge/public/javascripts/ckeditor/plugins/smiley/images/angel_smile.gif +0 -0
- data/lib/forge/public/javascripts/ckeditor/plugins/smiley/images/angry_smile.gif +0 -0
- data/lib/forge/public/javascripts/ckeditor/plugins/smiley/images/broken_heart.gif +0 -0
- data/lib/forge/public/javascripts/ckeditor/plugins/smiley/images/confused_smile.gif +0 -0
- data/lib/forge/public/javascripts/ckeditor/plugins/smiley/images/cry_smile.gif +0 -0
- data/lib/forge/public/javascripts/ckeditor/plugins/smiley/images/devil_smile.gif +0 -0
- data/lib/forge/public/javascripts/ckeditor/plugins/smiley/images/embaressed_smile.gif +0 -0
- data/lib/forge/public/javascripts/ckeditor/plugins/smiley/images/envelope.gif +0 -0
- data/lib/forge/public/javascripts/ckeditor/plugins/smiley/images/heart.gif +0 -0
- data/lib/forge/public/javascripts/ckeditor/plugins/smiley/images/kiss.gif +0 -0
- data/lib/forge/public/javascripts/ckeditor/plugins/smiley/images/lightbulb.gif +0 -0
- data/lib/forge/public/javascripts/ckeditor/plugins/smiley/images/omg_smile.gif +0 -0
- data/lib/forge/public/javascripts/ckeditor/plugins/smiley/images/regular_smile.gif +0 -0
- data/lib/forge/public/javascripts/ckeditor/plugins/smiley/images/sad_smile.gif +0 -0
- data/lib/forge/public/javascripts/ckeditor/plugins/smiley/images/shades_smile.gif +0 -0
- data/lib/forge/public/javascripts/ckeditor/plugins/smiley/images/teeth_smile.gif +0 -0
- data/lib/forge/public/javascripts/ckeditor/plugins/smiley/images/thumbs_down.gif +0 -0
- data/lib/forge/public/javascripts/ckeditor/plugins/smiley/images/thumbs_up.gif +0 -0
- data/lib/forge/public/javascripts/ckeditor/plugins/smiley/images/tounge_smile.gif +0 -0
- data/lib/forge/public/javascripts/ckeditor/plugins/smiley/images/whatchutalkingabout_smile.gif +0 -0
- data/lib/forge/public/javascripts/ckeditor/plugins/smiley/images/wink_smile.gif +0 -0
- data/lib/forge/public/javascripts/ckeditor/plugins/templates/templates/images/template1.gif +0 -0
- data/lib/forge/public/javascripts/ckeditor/plugins/templates/templates/images/template2.gif +0 -0
- data/lib/forge/public/javascripts/ckeditor/plugins/templates/templates/images/template3.gif +0 -0
- data/lib/forge/public/javascripts/ckeditor/plugins/uicolor/uicolor.gif +0 -0
- data/lib/forge/public/javascripts/ckeditor/plugins/uicolor/yui/assets/hue_bg.png +0 -0
- data/lib/forge/public/javascripts/ckeditor/plugins/uicolor/yui/assets/hue_thumb.png +0 -0
- data/lib/forge/public/javascripts/ckeditor/plugins/uicolor/yui/assets/picker_mask.png +0 -0
- data/lib/forge/public/javascripts/ckeditor/plugins/uicolor/yui/assets/picker_thumb.png +0 -0
- data/lib/forge/public/javascripts/ckeditor/plugins/wsc/dialogs/ciframe.html +0 -49
- data/lib/forge/public/javascripts/ckeditor/plugins/wsc/dialogs/tmpFrameset.html +0 -52
- data/lib/forge/public/javascripts/ckeditor/skins/kama/dialog.css +0 -9
- data/lib/forge/public/javascripts/ckeditor/skins/kama/editor.css +0 -12
- data/lib/forge/public/javascripts/ckeditor/skins/kama/icons.png +0 -0
- data/lib/forge/public/javascripts/ckeditor/skins/kama/icons_rtl.png +0 -0
- data/lib/forge/public/javascripts/ckeditor/skins/kama/images/dialog_sides.gif +0 -0
- data/lib/forge/public/javascripts/ckeditor/skins/kama/images/dialog_sides.png +0 -0
- data/lib/forge/public/javascripts/ckeditor/skins/kama/images/dialog_sides_rtl.png +0 -0
- data/lib/forge/public/javascripts/ckeditor/skins/kama/images/mini.gif +0 -0
- data/lib/forge/public/javascripts/ckeditor/skins/kama/images/noimage.png +0 -0
- data/lib/forge/public/javascripts/ckeditor/skins/kama/images/sprites.png +0 -0
- data/lib/forge/public/javascripts/ckeditor/skins/kama/images/sprites_ie6.png +0 -0
- data/lib/forge/public/javascripts/ckeditor/skins/kama/images/toolbar_start.gif +0 -0
- data/lib/forge/public/javascripts/ckeditor/skins/kama/skin.js +0 -7
- data/lib/forge/public/javascripts/ckeditor/skins/kama/templates.css +0 -6
- data/lib/forge/public/javascripts/ckeditor/skins/office2003/dialog.css +0 -9
- data/lib/forge/public/javascripts/ckeditor/skins/office2003/editor.css +0 -13
- data/lib/forge/public/javascripts/ckeditor/skins/office2003/icons.png +0 -0
- data/lib/forge/public/javascripts/ckeditor/skins/office2003/icons_rtl.png +0 -0
- data/lib/forge/public/javascripts/ckeditor/skins/office2003/images/dialog_sides.gif +0 -0
- data/lib/forge/public/javascripts/ckeditor/skins/office2003/images/dialog_sides.png +0 -0
- data/lib/forge/public/javascripts/ckeditor/skins/office2003/images/dialog_sides_rtl.png +0 -0
- data/lib/forge/public/javascripts/ckeditor/skins/office2003/images/mini.gif +0 -0
- data/lib/forge/public/javascripts/ckeditor/skins/office2003/images/noimage.png +0 -0
- data/lib/forge/public/javascripts/ckeditor/skins/office2003/images/sprites.png +0 -0
- data/lib/forge/public/javascripts/ckeditor/skins/office2003/images/sprites_ie6.png +0 -0
- data/lib/forge/public/javascripts/ckeditor/skins/office2003/skin.js +0 -6
- data/lib/forge/public/javascripts/ckeditor/skins/office2003/templates.css +0 -6
- data/lib/forge/public/javascripts/ckeditor/skins/v2/dialog.css +0 -8
- data/lib/forge/public/javascripts/ckeditor/skins/v2/editor.css +0 -12
- data/lib/forge/public/javascripts/ckeditor/skins/v2/icons.png +0 -0
- data/lib/forge/public/javascripts/ckeditor/skins/v2/icons_rtl.png +0 -0
- data/lib/forge/public/javascripts/ckeditor/skins/v2/images/dialog_sides.gif +0 -0
- data/lib/forge/public/javascripts/ckeditor/skins/v2/images/dialog_sides.png +0 -0
- data/lib/forge/public/javascripts/ckeditor/skins/v2/images/dialog_sides_rtl.png +0 -0
- data/lib/forge/public/javascripts/ckeditor/skins/v2/images/mini.gif +0 -0
- data/lib/forge/public/javascripts/ckeditor/skins/v2/images/noimage.png +0 -0
- data/lib/forge/public/javascripts/ckeditor/skins/v2/images/sprites.png +0 -0
- data/lib/forge/public/javascripts/ckeditor/skins/v2/images/sprites_ie6.png +0 -0
- data/lib/forge/public/javascripts/ckeditor/skins/v2/images/toolbar_start.gif +0 -0
- data/lib/forge/public/javascripts/ckeditor/skins/v2/skin.js +0 -6
- data/lib/forge/public/javascripts/ckeditor/skins/v2/templates.css +0 -6
- data/lib/forge/public/javascripts/ckeditor/swfupload/fileprogress.js +0 -275
- data/lib/forge/public/javascripts/ckeditor/swfupload/handlers.js +0 -170
- data/lib/forge/public/javascripts/ckeditor/swfupload/mootools-1.2.3-core-yc.js +0 -356
- data/lib/forge/public/javascripts/ckeditor/swfupload/querystring.js +0 -40
- data/lib/forge/public/javascripts/ckeditor/swfupload/swfupload.js +0 -1
- data/lib/forge/public/javascripts/ckeditor/swfupload/swfupload.queue.js +0 -1
- data/lib/forge/public/javascripts/ckeditor/swfupload/swfupload.swf +0 -0
- data/lib/forge/public/javascripts/ckeditor/swfupload/swfupload.swfobject.js +0 -111
- data/lib/forge/public/javascripts/ckeditor/themes/default/theme.js +0 -8
@@ -1,182 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
|
3
|
-
For licensing, see LICENSE.html or http://ckeditor.com/license
|
4
|
-
*/
|
5
|
-
|
6
|
-
if ( !CKEDITOR.editor )
|
7
|
-
{
|
8
|
-
/**
|
9
|
-
* No element is linked to the editor instance.
|
10
|
-
* @constant
|
11
|
-
* @example
|
12
|
-
*/
|
13
|
-
CKEDITOR.ELEMENT_MODE_NONE = 0;
|
14
|
-
|
15
|
-
/**
|
16
|
-
* The element is to be replaced by the editor instance.
|
17
|
-
* @constant
|
18
|
-
* @example
|
19
|
-
*/
|
20
|
-
CKEDITOR.ELEMENT_MODE_REPLACE = 1;
|
21
|
-
|
22
|
-
/**
|
23
|
-
* The editor is to be created inside the element.
|
24
|
-
* @constant
|
25
|
-
* @example
|
26
|
-
*/
|
27
|
-
CKEDITOR.ELEMENT_MODE_APPENDTO = 2;
|
28
|
-
|
29
|
-
/**
|
30
|
-
* Represents an editor instance. This constructor should be rarely used,
|
31
|
-
* being the {@link CKEDITOR} methods preferible.
|
32
|
-
* @constructor
|
33
|
-
* @param {Object} instanceConfig Configuration values for this specific
|
34
|
-
* instance.
|
35
|
-
* @param {CKEDITOR.dom.element} [element] The element linked to this
|
36
|
-
* instance.
|
37
|
-
* @param {Number} [mode] The mode in which the element is linked to this
|
38
|
-
* instance.
|
39
|
-
* @param {String} [data] Since 3.3. Initial value for the instance.
|
40
|
-
* @augments CKEDITOR.event
|
41
|
-
* @example
|
42
|
-
*/
|
43
|
-
CKEDITOR.editor = function( instanceConfig, element, mode, data )
|
44
|
-
{
|
45
|
-
this._ =
|
46
|
-
{
|
47
|
-
// Save the config to be processed later by the full core code.
|
48
|
-
instanceConfig : instanceConfig,
|
49
|
-
element : element,
|
50
|
-
data : data
|
51
|
-
};
|
52
|
-
|
53
|
-
/**
|
54
|
-
* The mode in which the {@link #element} is linked to this editor
|
55
|
-
* instance. It can be any of the following values:
|
56
|
-
* <ul>
|
57
|
-
* <li><b>CKEDITOR.ELEMENT_MODE_NONE</b>: No element is linked to the
|
58
|
-
* editor instance.</li>
|
59
|
-
* <li><b>CKEDITOR.ELEMENT_MODE_REPLACE</b>: The element is to be
|
60
|
-
* replaced by the editor instance.</li>
|
61
|
-
* <li><b>CKEDITOR.ELEMENT_MODE_APPENDTO</b>: The editor is to be
|
62
|
-
* created inside the element.</li>
|
63
|
-
* </ul>
|
64
|
-
* @name CKEDITOR.editor.prototype.elementMode
|
65
|
-
* @type Number
|
66
|
-
* @example
|
67
|
-
* var editor = CKEDITOR.replace( 'editor1' );
|
68
|
-
* alert( <b>editor.elementMode</b> ); "1"
|
69
|
-
*/
|
70
|
-
this.elementMode = mode || CKEDITOR.ELEMENT_MODE_NONE;
|
71
|
-
|
72
|
-
// Call the CKEDITOR.event constructor to initialize this instance.
|
73
|
-
CKEDITOR.event.call( this );
|
74
|
-
|
75
|
-
this._init();
|
76
|
-
};
|
77
|
-
|
78
|
-
/**
|
79
|
-
* Replaces a <textarea> or a DOM element (DIV) with a CKEditor
|
80
|
-
* instance. For textareas, the initial value in the editor will be the
|
81
|
-
* textarea value. For DOM elements, their innerHTML will be used
|
82
|
-
* instead. We recommend using TEXTAREA and DIV elements only. Do not use
|
83
|
-
* this function directly. Use {@link CKEDITOR.replace} instead.
|
84
|
-
* @param {Object|String} elementOrIdOrName The DOM element (textarea), its
|
85
|
-
* ID or name.
|
86
|
-
* @param {Object} [config] The specific configurations to apply to this
|
87
|
-
* editor instance. Configurations set here will override global CKEditor
|
88
|
-
* settings.
|
89
|
-
* @returns {CKEDITOR.editor} The editor instance created.
|
90
|
-
* @example
|
91
|
-
*/
|
92
|
-
CKEDITOR.editor.replace = function( elementOrIdOrName, config )
|
93
|
-
{
|
94
|
-
var element = elementOrIdOrName;
|
95
|
-
|
96
|
-
if ( typeof element != 'object' )
|
97
|
-
{
|
98
|
-
// Look for the element by id. We accept any kind of element here.
|
99
|
-
element = document.getElementById( elementOrIdOrName );
|
100
|
-
|
101
|
-
// If not found, look for elements by name. In this case we accept only
|
102
|
-
// textareas.
|
103
|
-
if ( !element )
|
104
|
-
{
|
105
|
-
var i = 0,
|
106
|
-
textareasByName = document.getElementsByName( elementOrIdOrName );
|
107
|
-
|
108
|
-
while ( ( element = textareasByName[ i++ ] ) && element.tagName.toLowerCase() != 'textarea' )
|
109
|
-
{ /*jsl:pass*/ }
|
110
|
-
}
|
111
|
-
|
112
|
-
if ( !element )
|
113
|
-
throw '[CKEDITOR.editor.replace] The element with id or name "' + elementOrIdOrName + '" was not found.';
|
114
|
-
}
|
115
|
-
|
116
|
-
// Do not replace the textarea right now, just hide it. The effective
|
117
|
-
// replacement will be done by the _init function.
|
118
|
-
element.style.visibility = 'hidden';
|
119
|
-
|
120
|
-
// Create the editor instance.
|
121
|
-
return new CKEDITOR.editor( config, element, CKEDITOR.ELEMENT_MODE_REPLACE );
|
122
|
-
};
|
123
|
-
|
124
|
-
/**
|
125
|
-
* Creates a new editor instance inside a specific DOM element. Do not use
|
126
|
-
* this function directly. Use {@link CKEDITOR.appendTo} instead.
|
127
|
-
* @param {Object|String} elementOrId The DOM element or its ID.
|
128
|
-
* @param {Object} [config] The specific configurations to apply to this
|
129
|
-
* editor instance. Configurations set here will override global CKEditor
|
130
|
-
* settings.
|
131
|
-
* @param {String} [data] Since 3.3. Initial value for the instance.
|
132
|
-
* @returns {CKEDITOR.editor} The editor instance created.
|
133
|
-
* @example
|
134
|
-
*/
|
135
|
-
CKEDITOR.editor.appendTo = function( elementOrId, config, data )
|
136
|
-
{
|
137
|
-
var element = elementOrId;
|
138
|
-
if ( typeof element != 'object' )
|
139
|
-
{
|
140
|
-
element = document.getElementById( elementOrId );
|
141
|
-
|
142
|
-
if ( !element )
|
143
|
-
throw '[CKEDITOR.editor.appendTo] The element with id "' + elementOrId + '" was not found.';
|
144
|
-
}
|
145
|
-
|
146
|
-
// Create the editor instance.
|
147
|
-
return new CKEDITOR.editor( config, element, CKEDITOR.ELEMENT_MODE_APPENDTO, data );
|
148
|
-
};
|
149
|
-
|
150
|
-
CKEDITOR.editor.prototype =
|
151
|
-
{
|
152
|
-
/**
|
153
|
-
* Initializes the editor instance. This function will be overriden by the
|
154
|
-
* full CKEDITOR.editor implementation (editor.js).
|
155
|
-
* @private
|
156
|
-
*/
|
157
|
-
_init : function()
|
158
|
-
{
|
159
|
-
var pending = CKEDITOR.editor._pending || ( CKEDITOR.editor._pending = [] );
|
160
|
-
pending.push( this );
|
161
|
-
},
|
162
|
-
|
163
|
-
// Both fire and fireOnce will always pass this editor instance as the
|
164
|
-
// "editor" param in CKEDITOR.event.fire. So, we override it to do that
|
165
|
-
// automaticaly.
|
166
|
-
|
167
|
-
/** @ignore */
|
168
|
-
fire : function( eventName, data )
|
169
|
-
{
|
170
|
-
return CKEDITOR.event.prototype.fire.call( this, eventName, data, this );
|
171
|
-
},
|
172
|
-
|
173
|
-
/** @ignore */
|
174
|
-
fireOnce : function( eventName, data )
|
175
|
-
{
|
176
|
-
return CKEDITOR.event.prototype.fireOnce.call( this, eventName, data, this );
|
177
|
-
}
|
178
|
-
};
|
179
|
-
|
180
|
-
// "Inherit" (copy actually) from CKEDITOR.event.
|
181
|
-
CKEDITOR.event.implementOn( CKEDITOR.editor.prototype, true );
|
182
|
-
}
|
@@ -1,229 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
|
3
|
-
For licensing, see LICENSE.html or http://ckeditor.com/license
|
4
|
-
*/
|
5
|
-
|
6
|
-
/**
|
7
|
-
* @fileOverview Defines the {@link CKEDITOR.env} object, which constains
|
8
|
-
* environment and browser information.
|
9
|
-
*/
|
10
|
-
|
11
|
-
if ( !CKEDITOR.env )
|
12
|
-
{
|
13
|
-
/**
|
14
|
-
* Environment and browser information.
|
15
|
-
* @namespace
|
16
|
-
* @example
|
17
|
-
*/
|
18
|
-
CKEDITOR.env = (function()
|
19
|
-
{
|
20
|
-
var agent = navigator.userAgent.toLowerCase();
|
21
|
-
var opera = window.opera;
|
22
|
-
|
23
|
-
var env =
|
24
|
-
/** @lends CKEDITOR.env */
|
25
|
-
{
|
26
|
-
/**
|
27
|
-
* Indicates that CKEditor is running on Internet Explorer.
|
28
|
-
* @type Boolean
|
29
|
-
* @example
|
30
|
-
* if ( CKEDITOR.env.ie )
|
31
|
-
* alert( "I'm on IE!" );
|
32
|
-
*/
|
33
|
-
ie : /*@cc_on!@*/false,
|
34
|
-
|
35
|
-
/**
|
36
|
-
* Indicates that CKEditor is running on Opera.
|
37
|
-
* @type Boolean
|
38
|
-
* @example
|
39
|
-
* if ( CKEDITOR.env.opera )
|
40
|
-
* alert( "I'm on Opera!" );
|
41
|
-
*/
|
42
|
-
opera : ( !!opera && opera.version ),
|
43
|
-
|
44
|
-
/**
|
45
|
-
* Indicates that CKEditor is running on a WebKit based browser, like
|
46
|
-
* Safari.
|
47
|
-
* @type Boolean
|
48
|
-
* @example
|
49
|
-
* if ( CKEDITOR.env.webkit )
|
50
|
-
* alert( "I'm on WebKit!" );
|
51
|
-
*/
|
52
|
-
webkit : ( agent.indexOf( ' applewebkit/' ) > -1 ),
|
53
|
-
|
54
|
-
/**
|
55
|
-
* Indicates that CKEditor is running on Adobe AIR.
|
56
|
-
* @type Boolean
|
57
|
-
* @example
|
58
|
-
* if ( CKEDITOR.env.air )
|
59
|
-
* alert( "I'm on AIR!" );
|
60
|
-
*/
|
61
|
-
air : ( agent.indexOf( ' adobeair/' ) > -1 ),
|
62
|
-
|
63
|
-
/**
|
64
|
-
* Indicates that CKEditor is running on Macintosh.
|
65
|
-
* @type Boolean
|
66
|
-
* @example
|
67
|
-
* if ( CKEDITOR.env.mac )
|
68
|
-
* alert( "I love apples!" );
|
69
|
-
*/
|
70
|
-
mac : ( agent.indexOf( 'macintosh' ) > -1 ),
|
71
|
-
|
72
|
-
quirks : ( document.compatMode == 'BackCompat' ),
|
73
|
-
|
74
|
-
mobile : ( agent.indexOf( 'mobile' ) > -1 ),
|
75
|
-
|
76
|
-
isCustomDomain : function()
|
77
|
-
{
|
78
|
-
if ( !this.ie )
|
79
|
-
return false;
|
80
|
-
|
81
|
-
var domain = document.domain,
|
82
|
-
hostname = window.location.hostname;
|
83
|
-
|
84
|
-
return domain != hostname &&
|
85
|
-
domain != ( '[' + hostname + ']' ); // IPv6 IP support (#5434)
|
86
|
-
}
|
87
|
-
};
|
88
|
-
|
89
|
-
/**
|
90
|
-
* Indicates that CKEditor is running on a Gecko based browser, like
|
91
|
-
* Firefox.
|
92
|
-
* @name CKEDITOR.env.gecko
|
93
|
-
* @type Boolean
|
94
|
-
* @example
|
95
|
-
* if ( CKEDITOR.env.gecko )
|
96
|
-
* alert( "I'm riding a gecko!" );
|
97
|
-
*/
|
98
|
-
env.gecko = ( navigator.product == 'Gecko' && !env.webkit && !env.opera );
|
99
|
-
|
100
|
-
var version = 0;
|
101
|
-
|
102
|
-
// Internet Explorer 6.0+
|
103
|
-
if ( env.ie )
|
104
|
-
{
|
105
|
-
version = parseFloat( agent.match( /msie (\d+)/ )[1] );
|
106
|
-
|
107
|
-
/**
|
108
|
-
* Indicate IE8 browser.
|
109
|
-
*/
|
110
|
-
env.ie8 = !!document.documentMode;
|
111
|
-
|
112
|
-
/**
|
113
|
-
* Indicte IE8 document mode.
|
114
|
-
*/
|
115
|
-
env.ie8Compat = document.documentMode == 8;
|
116
|
-
|
117
|
-
/**
|
118
|
-
* Indicates that CKEditor is running on an IE7-like environment, which
|
119
|
-
* includes IE7 itself and IE8's IE7 document mode.
|
120
|
-
* @type Boolean
|
121
|
-
*/
|
122
|
-
env.ie7Compat = ( ( version == 7 && !document.documentMode )
|
123
|
-
|| document.documentMode == 7 );
|
124
|
-
|
125
|
-
/**
|
126
|
-
* Indicates that CKEditor is running on an IE6-like environment, which
|
127
|
-
* includes IE6 itself and IE7 and IE8 quirks mode.
|
128
|
-
* @type Boolean
|
129
|
-
* @example
|
130
|
-
* if ( CKEDITOR.env.ie6Compat )
|
131
|
-
* alert( "I'm on IE6 or quirks mode!" );
|
132
|
-
*/
|
133
|
-
env.ie6Compat = ( version < 7 || env.quirks );
|
134
|
-
|
135
|
-
}
|
136
|
-
|
137
|
-
// Gecko.
|
138
|
-
if ( env.gecko )
|
139
|
-
{
|
140
|
-
var geckoRelease = agent.match( /rv:([\d\.]+)/ );
|
141
|
-
if ( geckoRelease )
|
142
|
-
{
|
143
|
-
geckoRelease = geckoRelease[1].split( '.' );
|
144
|
-
version = geckoRelease[0] * 10000 + ( geckoRelease[1] || 0 ) * 100 + ( geckoRelease[2] || 0 ) * 1;
|
145
|
-
}
|
146
|
-
}
|
147
|
-
|
148
|
-
// Opera 9.50+
|
149
|
-
if ( env.opera )
|
150
|
-
version = parseFloat( opera.version() );
|
151
|
-
|
152
|
-
// Adobe AIR 1.0+
|
153
|
-
// Checked before Safari because AIR have the WebKit rich text editor
|
154
|
-
// features from Safari 3.0.4, but the version reported is 420.
|
155
|
-
if ( env.air )
|
156
|
-
version = parseFloat( agent.match( / adobeair\/(\d+)/ )[1] );
|
157
|
-
|
158
|
-
// WebKit 522+ (Safari 3+)
|
159
|
-
if ( env.webkit )
|
160
|
-
version = parseFloat( agent.match( / applewebkit\/(\d+)/ )[1] );
|
161
|
-
|
162
|
-
/**
|
163
|
-
* Contains the browser version.
|
164
|
-
*
|
165
|
-
* For gecko based browsers (like Firefox) it contains the revision
|
166
|
-
* number with first three parts concatenated with a padding zero
|
167
|
-
* (e.g. for revision 1.9.0.2 we have 10900).
|
168
|
-
*
|
169
|
-
* For webkit based browser (like Safari and Chrome) it contains the
|
170
|
-
* WebKit build version (e.g. 522).
|
171
|
-
* @name CKEDITOR.env.version
|
172
|
-
* @type Boolean
|
173
|
-
* @example
|
174
|
-
* if ( CKEDITOR.env.ie && <b>CKEDITOR.env.version</b> <= 6 )
|
175
|
-
* alert( "Ouch!" );
|
176
|
-
*/
|
177
|
-
env.version = version;
|
178
|
-
|
179
|
-
/**
|
180
|
-
* Indicates that CKEditor is running on a compatible browser.
|
181
|
-
* @name CKEDITOR.env.isCompatible
|
182
|
-
* @type Boolean
|
183
|
-
* @example
|
184
|
-
* if ( CKEDITOR.env.isCompatible )
|
185
|
-
* alert( "Your browser is pretty cool!" );
|
186
|
-
*/
|
187
|
-
env.isCompatible =
|
188
|
-
!env.mobile && (
|
189
|
-
( env.ie && version >= 6 ) ||
|
190
|
-
( env.gecko && version >= 10801 ) ||
|
191
|
-
( env.opera && version >= 9.5 ) ||
|
192
|
-
( env.air && version >= 1 ) ||
|
193
|
-
( env.webkit && version >= 522 ) ||
|
194
|
-
false );
|
195
|
-
|
196
|
-
// The CSS class to be appended on the main UI containers, making it
|
197
|
-
// easy to apply browser specific styles to it.
|
198
|
-
env.cssClass =
|
199
|
-
'cke_browser_' + (
|
200
|
-
env.ie ? 'ie' :
|
201
|
-
env.gecko ? 'gecko' :
|
202
|
-
env.opera ? 'opera' :
|
203
|
-
env.air ? 'air' :
|
204
|
-
env.webkit ? 'webkit' :
|
205
|
-
'unknown' );
|
206
|
-
|
207
|
-
if ( env.quirks )
|
208
|
-
env.cssClass += ' cke_browser_quirks';
|
209
|
-
|
210
|
-
if ( env.ie )
|
211
|
-
{
|
212
|
-
env.cssClass += ' cke_browser_ie' + (
|
213
|
-
env.version < 7 ? '6' :
|
214
|
-
env.version >= 8 ? '8' :
|
215
|
-
'7' );
|
216
|
-
|
217
|
-
if ( env.quirks )
|
218
|
-
env.cssClass += ' cke_browser_iequirks';
|
219
|
-
}
|
220
|
-
|
221
|
-
if ( env.gecko && version < 10900 )
|
222
|
-
env.cssClass += ' cke_browser_gecko18';
|
223
|
-
|
224
|
-
return env;
|
225
|
-
})();
|
226
|
-
}
|
227
|
-
|
228
|
-
// PACKAGER_RENAME( CKEDITOR.env )
|
229
|
-
// PACKAGER_RENAME( CKEDITOR.env.ie )
|
@@ -1,336 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
|
3
|
-
For licensing, see LICENSE.html or http://ckeditor.com/license
|
4
|
-
*/
|
5
|
-
|
6
|
-
/**
|
7
|
-
* @fileOverview Defines the {@link CKEDITOR.event} class, which serves as the
|
8
|
-
* base for classes and objects that require event handling features.
|
9
|
-
*/
|
10
|
-
|
11
|
-
if ( !CKEDITOR.event )
|
12
|
-
{
|
13
|
-
/**
|
14
|
-
* This is a base class for classes and objects that require event handling
|
15
|
-
* features.
|
16
|
-
* @constructor
|
17
|
-
* @example
|
18
|
-
*/
|
19
|
-
CKEDITOR.event = function()
|
20
|
-
{};
|
21
|
-
|
22
|
-
/**
|
23
|
-
* Implements the {@link CKEDITOR.event} features in an object.
|
24
|
-
* @param {Object} targetObject The object in which implement the features.
|
25
|
-
* @example
|
26
|
-
* var myObject = { message : 'Example' };
|
27
|
-
* <b>CKEDITOR.event.implementOn( myObject }</b>;
|
28
|
-
* myObject.on( 'testEvent', function()
|
29
|
-
* {
|
30
|
-
* alert( this.message ); // "Example"
|
31
|
-
* });
|
32
|
-
* myObject.fire( 'testEvent' );
|
33
|
-
*/
|
34
|
-
CKEDITOR.event.implementOn = function( targetObject, isTargetPrototype )
|
35
|
-
{
|
36
|
-
var eventProto = CKEDITOR.event.prototype;
|
37
|
-
|
38
|
-
for ( var prop in eventProto )
|
39
|
-
{
|
40
|
-
if ( targetObject[ prop ] == undefined )
|
41
|
-
targetObject[ prop ] = eventProto[ prop ];
|
42
|
-
}
|
43
|
-
};
|
44
|
-
|
45
|
-
CKEDITOR.event.prototype = (function()
|
46
|
-
{
|
47
|
-
// Returns the private events object for a given object.
|
48
|
-
var getPrivate = function( obj )
|
49
|
-
{
|
50
|
-
var _ = ( obj.getPrivate && obj.getPrivate() ) || obj._ || ( obj._ = {} );
|
51
|
-
return _.events || ( _.events = {} );
|
52
|
-
};
|
53
|
-
|
54
|
-
var eventEntry = function( eventName )
|
55
|
-
{
|
56
|
-
this.name = eventName;
|
57
|
-
this.listeners = [];
|
58
|
-
};
|
59
|
-
|
60
|
-
eventEntry.prototype =
|
61
|
-
{
|
62
|
-
// Get the listener index for a specified function.
|
63
|
-
// Returns -1 if not found.
|
64
|
-
getListenerIndex : function( listenerFunction )
|
65
|
-
{
|
66
|
-
for ( var i = 0, listeners = this.listeners ; i < listeners.length ; i++ )
|
67
|
-
{
|
68
|
-
if ( listeners[i].fn == listenerFunction )
|
69
|
-
return i;
|
70
|
-
}
|
71
|
-
return -1;
|
72
|
-
}
|
73
|
-
};
|
74
|
-
|
75
|
-
return /** @lends CKEDITOR.event.prototype */ {
|
76
|
-
/**
|
77
|
-
* Registers a listener to a specific event in the current object.
|
78
|
-
* @param {String} eventName The event name to which listen.
|
79
|
-
* @param {Function} listenerFunction The function listening to the
|
80
|
-
* event. A single {@link CKEDITOR.eventInfo} object instanced
|
81
|
-
* is passed to this function containing all the event data.
|
82
|
-
* @param {Object} [scopeObj] The object used to scope the listener
|
83
|
-
* call (the this object. If omitted, the current object is used.
|
84
|
-
* @param {Object} [listenerData] Data to be sent as the
|
85
|
-
* {@link CKEDITOR.eventInfo#listenerData} when calling the
|
86
|
-
* listener.
|
87
|
-
* @param {Number} [priority] The listener priority. Lower priority
|
88
|
-
* listeners are called first. Listeners with the same priority
|
89
|
-
* value are called in registration order. Defaults to 10.
|
90
|
-
* @example
|
91
|
-
* someObject.on( 'someEvent', function()
|
92
|
-
* {
|
93
|
-
* alert( this == someObject ); // "true"
|
94
|
-
* });
|
95
|
-
* @example
|
96
|
-
* someObject.on( 'someEvent', function()
|
97
|
-
* {
|
98
|
-
* alert( this == anotherObject ); // "true"
|
99
|
-
* }
|
100
|
-
* , anotherObject );
|
101
|
-
* @example
|
102
|
-
* someObject.on( 'someEvent', function( event )
|
103
|
-
* {
|
104
|
-
* alert( event.listenerData ); // "Example"
|
105
|
-
* }
|
106
|
-
* , null, 'Example' );
|
107
|
-
* @example
|
108
|
-
* someObject.on( 'someEvent', function() { ... } ); // 2nd called
|
109
|
-
* someObject.on( 'someEvent', function() { ... }, null, null, 100 ); // 3rd called
|
110
|
-
* someObject.on( 'someEvent', function() { ... }, null, null, 1 ); // 1st called
|
111
|
-
*/
|
112
|
-
on : function( eventName, listenerFunction, scopeObj, listenerData, priority )
|
113
|
-
{
|
114
|
-
// Get the event entry (create it if needed).
|
115
|
-
var events = getPrivate( this ),
|
116
|
-
event = events[ eventName ] || ( events[ eventName ] = new eventEntry( eventName ) );
|
117
|
-
|
118
|
-
if ( event.getListenerIndex( listenerFunction ) < 0 )
|
119
|
-
{
|
120
|
-
// Get the listeners.
|
121
|
-
var listeners = event.listeners;
|
122
|
-
|
123
|
-
// Fill the scope.
|
124
|
-
if ( !scopeObj )
|
125
|
-
scopeObj = this;
|
126
|
-
|
127
|
-
// Default the priority, if needed.
|
128
|
-
if ( isNaN( priority ) )
|
129
|
-
priority = 10;
|
130
|
-
|
131
|
-
var me = this;
|
132
|
-
|
133
|
-
// Create the function to be fired for this listener.
|
134
|
-
var listenerFirer = function( editor, publisherData, stopFn, cancelFn )
|
135
|
-
{
|
136
|
-
var ev =
|
137
|
-
{
|
138
|
-
name : eventName,
|
139
|
-
sender : this,
|
140
|
-
editor : editor,
|
141
|
-
data : publisherData,
|
142
|
-
listenerData : listenerData,
|
143
|
-
stop : stopFn,
|
144
|
-
cancel : cancelFn,
|
145
|
-
removeListener : function()
|
146
|
-
{
|
147
|
-
me.removeListener( eventName, listenerFunction );
|
148
|
-
}
|
149
|
-
};
|
150
|
-
|
151
|
-
listenerFunction.call( scopeObj, ev );
|
152
|
-
|
153
|
-
return ev.data;
|
154
|
-
};
|
155
|
-
listenerFirer.fn = listenerFunction;
|
156
|
-
listenerFirer.priority = priority;
|
157
|
-
|
158
|
-
// Search for the right position for this new listener, based on its
|
159
|
-
// priority.
|
160
|
-
for ( var i = listeners.length - 1 ; i >= 0 ; i-- )
|
161
|
-
{
|
162
|
-
// Find the item which should be before the new one.
|
163
|
-
if ( listeners[ i ].priority <= priority )
|
164
|
-
{
|
165
|
-
// Insert the listener in the array.
|
166
|
-
listeners.splice( i + 1, 0, listenerFirer );
|
167
|
-
return;
|
168
|
-
}
|
169
|
-
}
|
170
|
-
|
171
|
-
// If no position has been found (or zero length), put it in
|
172
|
-
// the front of list.
|
173
|
-
listeners.unshift( listenerFirer );
|
174
|
-
}
|
175
|
-
},
|
176
|
-
|
177
|
-
/**
|
178
|
-
* Fires an specific event in the object. All registered listeners are
|
179
|
-
* called at this point.
|
180
|
-
* @function
|
181
|
-
* @param {String} eventName The event name to fire.
|
182
|
-
* @param {Object} [data] Data to be sent as the
|
183
|
-
* {@link CKEDITOR.eventInfo#data} when calling the
|
184
|
-
* listeners.
|
185
|
-
* @param {CKEDITOR.editor} [editor] The editor instance to send as the
|
186
|
-
* {@link CKEDITOR.eventInfo#editor} when calling the
|
187
|
-
* listener.
|
188
|
-
* @returns {Boolean|Object} A booloan indicating that the event is to be
|
189
|
-
* canceled, or data returned by one of the listeners.
|
190
|
-
* @example
|
191
|
-
* someObject.on( 'someEvent', function() { ... } );
|
192
|
-
* someObject.on( 'someEvent', function() { ... } );
|
193
|
-
* <b>someObject.fire( 'someEvent' )</b>; // both listeners are called
|
194
|
-
* @example
|
195
|
-
* someObject.on( 'someEvent', function( event )
|
196
|
-
* {
|
197
|
-
* alert( event.data ); // "Example"
|
198
|
-
* });
|
199
|
-
* <b>someObject.fire( 'someEvent', 'Example' )</b>;
|
200
|
-
*/
|
201
|
-
fire : (function()
|
202
|
-
{
|
203
|
-
// Create the function that marks the event as stopped.
|
204
|
-
var stopped = false;
|
205
|
-
var stopEvent = function()
|
206
|
-
{
|
207
|
-
stopped = true;
|
208
|
-
};
|
209
|
-
|
210
|
-
// Create the function that marks the event as canceled.
|
211
|
-
var canceled = false;
|
212
|
-
var cancelEvent = function()
|
213
|
-
{
|
214
|
-
canceled = true;
|
215
|
-
};
|
216
|
-
|
217
|
-
return function( eventName, data, editor )
|
218
|
-
{
|
219
|
-
// Get the event entry.
|
220
|
-
var event = getPrivate( this )[ eventName ];
|
221
|
-
|
222
|
-
// Save the previous stopped and cancelled states. We may
|
223
|
-
// be nesting fire() calls.
|
224
|
-
var previousStopped = stopped,
|
225
|
-
previousCancelled = canceled;
|
226
|
-
|
227
|
-
// Reset the stopped and canceled flags.
|
228
|
-
stopped = canceled = false;
|
229
|
-
|
230
|
-
if ( event )
|
231
|
-
{
|
232
|
-
var listeners = event.listeners;
|
233
|
-
|
234
|
-
if ( listeners.length )
|
235
|
-
{
|
236
|
-
// As some listeners may remove themselves from the
|
237
|
-
// event, the original array length is dinamic. So,
|
238
|
-
// let's make a copy of all listeners, so we are
|
239
|
-
// sure we'll call all of them.
|
240
|
-
listeners = listeners.slice( 0 );
|
241
|
-
|
242
|
-
// Loop through all listeners.
|
243
|
-
for ( var i = 0 ; i < listeners.length ; i++ )
|
244
|
-
{
|
245
|
-
// Call the listener, passing the event data.
|
246
|
-
var retData = listeners[i].call( this, editor, data, stopEvent, cancelEvent );
|
247
|
-
|
248
|
-
if ( typeof retData != 'undefined' )
|
249
|
-
data = retData;
|
250
|
-
|
251
|
-
// No further calls is stopped or canceled.
|
252
|
-
if ( stopped || canceled )
|
253
|
-
break;
|
254
|
-
}
|
255
|
-
}
|
256
|
-
}
|
257
|
-
|
258
|
-
var ret = canceled || ( typeof data == 'undefined' ? false : data );
|
259
|
-
|
260
|
-
// Restore the previous stopped and canceled states.
|
261
|
-
stopped = previousStopped;
|
262
|
-
canceled = previousCancelled;
|
263
|
-
|
264
|
-
return ret;
|
265
|
-
};
|
266
|
-
})(),
|
267
|
-
|
268
|
-
/**
|
269
|
-
* Fires an specific event in the object, releasing all listeners
|
270
|
-
* registered to that event. The same listeners are not called again on
|
271
|
-
* successive calls of it or of {@link #fire}.
|
272
|
-
* @param {String} eventName The event name to fire.
|
273
|
-
* @param {Object} [data] Data to be sent as the
|
274
|
-
* {@link CKEDITOR.eventInfo#data} when calling the
|
275
|
-
* listeners.
|
276
|
-
* @param {CKEDITOR.editor} [editor] The editor instance to send as the
|
277
|
-
* {@link CKEDITOR.eventInfo#editor} when calling the
|
278
|
-
* listener.
|
279
|
-
* @returns {Boolean|Object} A booloan indicating that the event is to be
|
280
|
-
* canceled, or data returned by one of the listeners.
|
281
|
-
* @example
|
282
|
-
* someObject.on( 'someEvent', function() { ... } );
|
283
|
-
* someObject.fire( 'someEvent' ); // above listener called
|
284
|
-
* <b>someObject.fireOnce( 'someEvent' )</b>; // above listener called
|
285
|
-
* someObject.fire( 'someEvent' ); // no listeners called
|
286
|
-
*/
|
287
|
-
fireOnce : function( eventName, data, editor )
|
288
|
-
{
|
289
|
-
var ret = this.fire( eventName, data, editor );
|
290
|
-
delete getPrivate( this )[ eventName ];
|
291
|
-
return ret;
|
292
|
-
},
|
293
|
-
|
294
|
-
/**
|
295
|
-
* Unregisters a listener function from being called at the specified
|
296
|
-
* event. No errors are thrown if the listener has not been
|
297
|
-
* registered previously.
|
298
|
-
* @param {String} eventName The event name.
|
299
|
-
* @param {Function} listenerFunction The listener function to unregister.
|
300
|
-
* @example
|
301
|
-
* var myListener = function() { ... };
|
302
|
-
* someObject.on( 'someEvent', myListener );
|
303
|
-
* someObject.fire( 'someEvent' ); // myListener called
|
304
|
-
* <b>someObject.removeListener( 'someEvent', myListener )</b>;
|
305
|
-
* someObject.fire( 'someEvent' ); // myListener not called
|
306
|
-
*/
|
307
|
-
removeListener : function( eventName, listenerFunction )
|
308
|
-
{
|
309
|
-
// Get the event entry.
|
310
|
-
var event = getPrivate( this )[ eventName ];
|
311
|
-
|
312
|
-
if ( event )
|
313
|
-
{
|
314
|
-
var index = event.getListenerIndex( listenerFunction );
|
315
|
-
if ( index >= 0 )
|
316
|
-
event.listeners.splice( index, 1 );
|
317
|
-
}
|
318
|
-
},
|
319
|
-
|
320
|
-
/**
|
321
|
-
* Checks if there is any listener registered to a given event.
|
322
|
-
* @param {String} eventName The event name.
|
323
|
-
* @example
|
324
|
-
* var myListener = function() { ... };
|
325
|
-
* someObject.on( 'someEvent', myListener );
|
326
|
-
* alert( someObject.<b>hasListeners( 'someEvent' )</b> ); // "true"
|
327
|
-
* alert( someObject.<b>hasListeners( 'noEvent' )</b> ); // "false"
|
328
|
-
*/
|
329
|
-
hasListeners : function( eventName )
|
330
|
-
{
|
331
|
-
var event = getPrivate( this )[ eventName ];
|
332
|
-
return ( event && event.listeners.length > 0 ) ;
|
333
|
-
}
|
334
|
-
};
|
335
|
-
})();
|
336
|
-
}
|