esp-ckeditor 0.1.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/MIT-LICENSE +20 -0
- data/README.rdoc +32 -0
- data/Rakefile +28 -0
- data/app/assets/javascripts/esp-ckeditor/_source/core/_bootstrap.js +87 -0
- data/app/assets/javascripts/esp-ckeditor/_source/core/ckeditor.js +141 -0
- data/app/assets/javascripts/esp-ckeditor/_source/core/ckeditor_base.js +227 -0
- data/app/assets/javascripts/esp-ckeditor/_source/core/ckeditor_basic.js +238 -0
- data/app/assets/javascripts/esp-ckeditor/_source/core/command.js +209 -0
- data/app/assets/javascripts/esp-ckeditor/_source/core/commanddefinition.js +129 -0
- data/app/assets/javascripts/esp-ckeditor/_source/core/config.js +423 -0
- data/app/assets/javascripts/esp-ckeditor/_source/core/dataprocessor.js +65 -0
- data/app/assets/javascripts/esp-ckeditor/_source/core/dom/comment.js +32 -0
- data/app/assets/javascripts/esp-ckeditor/_source/core/dom/document.js +251 -0
- data/app/assets/javascripts/esp-ckeditor/_source/core/dom/documentfragment.js +49 -0
- data/app/assets/javascripts/esp-ckeditor/_source/core/dom/domobject.js +258 -0
- data/app/assets/javascripts/esp-ckeditor/_source/core/dom/element.js +1691 -0
- data/app/assets/javascripts/esp-ckeditor/_source/core/dom/elementpath.js +119 -0
- data/app/assets/javascripts/esp-ckeditor/_source/core/dom/event.js +145 -0
- data/app/assets/javascripts/esp-ckeditor/_source/core/dom/node.js +696 -0
- data/app/assets/javascripts/esp-ckeditor/_source/core/dom/nodelist.js +26 -0
- data/app/assets/javascripts/esp-ckeditor/_source/core/dom/range.js +2054 -0
- data/app/assets/javascripts/esp-ckeditor/_source/core/dom/rangelist.js +213 -0
- data/app/assets/javascripts/esp-ckeditor/_source/core/dom/text.js +128 -0
- data/app/assets/javascripts/esp-ckeditor/_source/core/dom/walker.js +462 -0
- data/app/assets/javascripts/esp-ckeditor/_source/core/dom/window.js +96 -0
- data/app/assets/javascripts/esp-ckeditor/_source/core/dom.js +20 -0
- data/app/assets/javascripts/esp-ckeditor/_source/core/dtd.js +266 -0
- data/app/assets/javascripts/esp-ckeditor/_source/core/editor.js +1060 -0
- data/app/assets/javascripts/esp-ckeditor/_source/core/editor_basic.js +186 -0
- data/app/assets/javascripts/esp-ckeditor/_source/core/env.js +305 -0
- data/app/assets/javascripts/esp-ckeditor/_source/core/event.js +342 -0
- data/app/assets/javascripts/esp-ckeditor/_source/core/eventInfo.js +120 -0
- data/app/assets/javascripts/esp-ckeditor/_source/core/focusmanager.js +152 -0
- data/app/assets/javascripts/esp-ckeditor/_source/core/htmlparser/basicwriter.js +145 -0
- data/app/assets/javascripts/esp-ckeditor/_source/core/htmlparser/cdata.js +43 -0
- data/app/assets/javascripts/esp-ckeditor/_source/core/htmlparser/comment.js +60 -0
- data/app/assets/javascripts/esp-ckeditor/_source/core/htmlparser/element.js +308 -0
- data/app/assets/javascripts/esp-ckeditor/_source/core/htmlparser/filter.js +288 -0
- data/app/assets/javascripts/esp-ckeditor/_source/core/htmlparser/fragment.js +518 -0
- data/app/assets/javascripts/esp-ckeditor/_source/core/htmlparser/text.js +53 -0
- data/app/assets/javascripts/esp-ckeditor/_source/core/htmlparser.js +224 -0
- data/app/assets/javascripts/esp-ckeditor/_source/core/lang.js +157 -0
- data/app/assets/javascripts/esp-ckeditor/_source/core/loader.js +240 -0
- data/app/assets/javascripts/esp-ckeditor/_source/core/plugindefinition.js +83 -0
- data/app/assets/javascripts/esp-ckeditor/_source/core/plugins.js +103 -0
- data/app/assets/javascripts/esp-ckeditor/_source/core/resourcemanager.js +238 -0
- data/app/assets/javascripts/esp-ckeditor/_source/core/scriptloader.js +180 -0
- data/app/assets/javascripts/esp-ckeditor/_source/core/skins.js +184 -0
- data/app/assets/javascripts/esp-ckeditor/_source/core/themes.js +19 -0
- data/app/assets/javascripts/esp-ckeditor/_source/core/tools.js +763 -0
- data/app/assets/javascripts/esp-ckeditor/_source/core/ui.js +128 -0
- data/app/assets/javascripts/esp-ckeditor/_source/lang/_languages.js +27 -0
- data/app/assets/javascripts/esp-ckeditor/_source/lang/en.js +815 -0
- data/app/assets/javascripts/esp-ckeditor/_source/lang/ru.js +815 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/a11yhelp/dialogs/a11yhelp.js +222 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/a11yhelp/lang/en.js +108 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/a11yhelp/lang/he.js +216 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/a11yhelp/plugin.js +47 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/basicstyles/plugin.js +129 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/button/plugin.js +290 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/clipboard/dialogs/paste.js +223 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/clipboard/plugin.js +453 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/contextmenu/plugin.js +179 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/dialog/dialogDefinition.js +1166 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/dialog/plugin.js +3308 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/dialogadvtab/plugin.js +208 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/dialogui/plugin.js +1541 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/domiterator/plugin.js +361 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/editingblock/plugin.js +278 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/elementspath/plugin.js +218 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/enterkey/plugin.js +433 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/entities/plugin.js +250 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_attachment/dialogs/esp_attachment.js +234 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_attachment/images/esp_attachment.png +0 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_attachment/lang/en.js +22 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_attachment/lang/ru.js +22 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_attachment/lang/uk.js +22 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_attachment/plugin.js +23 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_audio/dialogs/esp_audio.js +207 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_audio/images/esp_audio.png +0 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_audio/images/placeholder.png +0 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_audio/lang/en.js +18 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_audio/lang/ru.js +18 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_audio/lang/uk.js +18 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_audio/plugin.js +182 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_blockquote/dialogs/esp_blockquote.js +132 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_blockquote/plugin.js +235 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_image/dialogs/esp_image.js +1414 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_image/images/esp_image.png +0 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_image/lang/en.js +9 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_image/lang/ru.js +9 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_image/lang/uk.js +9 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_image/plugin.js +80 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_link/dialogs/esp_anchor.js +145 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_link/dialogs/esp_link.js +1396 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_link/images/anchor.png +0 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_link/images/esp_anchor.png +0 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_link/images/esp_link.png +0 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_link/images/esp_unlink.png +0 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_link/lang/en.js +8 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_link/lang/ru.js +8 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_link/lang/uk.js +8 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_link/plugin.js +379 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_showblocks/images/block_address.png +0 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_showblocks/images/block_blockquote.png +0 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_showblocks/images/block_div.png +0 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_showblocks/images/block_h1.png +0 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_showblocks/images/block_h2.png +0 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_showblocks/images/block_h3.png +0 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_showblocks/images/block_h4.png +0 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_showblocks/images/block_h5.png +0 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_showblocks/images/block_h6.png +0 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_showblocks/images/block_p.png +0 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_showblocks/images/block_pre.png +0 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_showblocks/images/esp_showblocks.png +0 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_showblocks/plugin.js +163 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_video/dialogs/esp_video.js +277 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_video/images/esp_video.png +0 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_video/images/placeholder.png +0 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_video/lang/en.js +19 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_video/lang/ru.js +19 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_video/lang/uk.js +19 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_video/plugin.js +182 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/fakeobjects/plugin.js +175 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/filebrowser/plugin.js +534 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/find/dialogs/find.js +915 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/find/plugin.js +47 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/floatpanel/plugin.js +428 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/format/plugin.js +197 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/htmldataprocessor/plugin.js +596 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/htmlwriter/plugin.js +319 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/image/dialogs/image.js +1407 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/image/plugin.js +81 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/indent/plugin.js +461 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/justify/plugin.js +253 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/keystrokes/plugin.js +225 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/list/plugin.js +774 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/listblock/plugin.js +266 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/liststyle/dialogs/liststyle.js +225 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/liststyle/plugin.js +66 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/maximize/plugin.js +353 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/menu/plugin.js +541 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/panel/plugin.js +400 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/pastefromword/filter/default.js +1367 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/pastefromword/plugin.js +141 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/pastetext/dialogs/pastetext.js +67 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/pastetext/plugin.js +98 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/popup/plugin.js +64 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/removeformat/plugin.js +185 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/resize/plugin.js +168 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/richcombo/plugin.js +381 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/selection/plugin.js +1729 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/showborders/plugin.js +207 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/sourcearea/plugin.js +209 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/styles/plugin.js +1700 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/styles/styles/default.js +88 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/stylescombo/plugin.js +218 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/tab/plugin.js +367 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/table/dialogs/table.js +623 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/table/plugin.js +78 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/tabletools/dialogs/tableCell.js +525 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/tabletools/plugin.js +1194 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/toolbar/plugin.js +545 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/undo/plugin.js +578 -0
- data/app/assets/javascripts/esp-ckeditor/_source/plugins/wysiwygarea/plugin.js +1347 -0
- data/app/assets/javascripts/esp-ckeditor/_source/skins/kama/dialog.css +988 -0
- data/app/assets/javascripts/esp-ckeditor/_source/skins/kama/editor.css +25 -0
- data/app/assets/javascripts/esp-ckeditor/_source/skins/kama/elementspath.css +73 -0
- data/app/assets/javascripts/esp-ckeditor/_source/skins/kama/icons.css +367 -0
- data/app/assets/javascripts/esp-ckeditor/_source/skins/kama/icons.png +0 -0
- data/app/assets/javascripts/esp-ckeditor/_source/skins/kama/icons_rtl.png +0 -0
- data/app/assets/javascripts/esp-ckeditor/_source/skins/kama/images/dialog_sides.gif +0 -0
- data/app/assets/javascripts/esp-ckeditor/_source/skins/kama/images/dialog_sides.png +0 -0
- data/app/assets/javascripts/esp-ckeditor/_source/skins/kama/images/dialog_sides_rtl.png +0 -0
- data/app/assets/javascripts/esp-ckeditor/_source/skins/kama/images/mini.gif +0 -0
- data/app/assets/javascripts/esp-ckeditor/_source/skins/kama/images/noimage.png +0 -0
- data/app/assets/javascripts/esp-ckeditor/_source/skins/kama/images/sprites.png +0 -0
- data/app/assets/javascripts/esp-ckeditor/_source/skins/kama/images/sprites_ie6.png +0 -0
- data/app/assets/javascripts/esp-ckeditor/_source/skins/kama/images/toolbar_start.gif +0 -0
- data/app/assets/javascripts/esp-ckeditor/_source/skins/kama/mainui.css +209 -0
- data/app/assets/javascripts/esp-ckeditor/_source/skins/kama/menu.css +232 -0
- data/app/assets/javascripts/esp-ckeditor/_source/skins/kama/panel.css +227 -0
- data/app/assets/javascripts/esp-ckeditor/_source/skins/kama/presets.css +49 -0
- data/app/assets/javascripts/esp-ckeditor/_source/skins/kama/reset.css +85 -0
- data/app/assets/javascripts/esp-ckeditor/_source/skins/kama/richcombo.css +287 -0
- data/app/assets/javascripts/esp-ckeditor/_source/skins/kama/skin.js +236 -0
- data/app/assets/javascripts/esp-ckeditor/_source/skins/kama/templates.css +88 -0
- data/app/assets/javascripts/esp-ckeditor/_source/skins/kama/toolbar.css +412 -0
- data/app/assets/javascripts/esp-ckeditor/_source/themes/default/theme.js +407 -0
- data/app/assets/javascripts/esp-ckeditor/application.js +8 -0
- data/app/assets/javascripts/esp-ckeditor/ckeditor.js +137 -0
- data/app/assets/javascripts/esp-ckeditor/ckeditor.pack +194 -0
- data/app/assets/javascripts/esp-ckeditor/ckeditor_source.js +35 -0
- data/app/assets/javascripts/esp-ckeditor/ckpackager.jar +0 -0
- data/app/assets/javascripts/esp-ckeditor/ckpackager.txt +2 -0
- data/app/assets/javascripts/esp-ckeditor/config.js +147 -0
- data/app/assets/javascripts/esp-ckeditor/contents.css +38 -0
- data/app/assets/javascripts/esp-ckeditor/images/spacer.gif +0 -0
- data/app/assets/javascripts/esp-ckeditor/init_ckeditor.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/a11yhelp/dialogs/a11yhelp.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/a11yhelp/lang/en.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/a11yhelp/lang/he.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/a11yhelp/plugin.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/basicstyles/plugin.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/button/plugin.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/clipboard/dialogs/paste.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/clipboard/plugin.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/contextmenu/plugin.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/dialog/dialogDefinition.js +0 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/dialog/plugin.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/dialogadvtab/plugin.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/dialogui/plugin.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/domiterator/plugin.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/editingblock/plugin.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/elementspath/plugin.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/enterkey/plugin.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/entities/plugin.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/esp_attachment/dialogs/esp_attachment.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/esp_attachment/images/esp_attachment.png +0 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/esp_attachment/lang/en.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/esp_attachment/lang/ru.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/esp_attachment/lang/uk.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/esp_attachment/plugin.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/esp_audio/dialogs/esp_audio.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/esp_audio/images/esp_audio.png +0 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/esp_audio/images/placeholder.png +0 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/esp_audio/lang/en.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/esp_audio/lang/ru.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/esp_audio/lang/uk.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/esp_audio/plugin.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/esp_blockquote/dialogs/esp_blockquote.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/esp_blockquote/plugin.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/esp_image/dialogs/esp_image.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/esp_image/images/esp_image.png +0 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/esp_image/lang/en.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/esp_image/lang/ru.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/esp_image/lang/uk.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/esp_image/plugin.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/esp_link/dialogs/esp_anchor.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/esp_link/dialogs/esp_link.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/esp_link/images/anchor.png +0 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/esp_link/images/esp_anchor.png +0 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/esp_link/images/esp_link.png +0 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/esp_link/images/esp_unlink.png +0 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/esp_link/lang/en.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/esp_link/lang/ru.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/esp_link/lang/uk.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/esp_link/plugin.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/esp_showblocks/images/block_address.png +0 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/esp_showblocks/images/block_blockquote.png +0 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/esp_showblocks/images/block_div.png +0 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/esp_showblocks/images/block_h1.png +0 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/esp_showblocks/images/block_h2.png +0 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/esp_showblocks/images/block_h3.png +0 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/esp_showblocks/images/block_h4.png +0 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/esp_showblocks/images/block_h5.png +0 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/esp_showblocks/images/block_h6.png +0 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/esp_showblocks/images/block_p.png +0 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/esp_showblocks/images/block_pre.png +0 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/esp_showblocks/images/esp_showblocks.png +0 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/esp_showblocks/plugin.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/esp_video/dialogs/esp_video.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/esp_video/images/esp_video.png +0 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/esp_video/images/placeholder.png +0 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/esp_video/lang/en.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/esp_video/lang/ru.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/esp_video/lang/uk.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/esp_video/plugin.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/fakeobjects/plugin.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/filebrowser/plugin.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/find/dialogs/find.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/find/plugin.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/floatpanel/plugin.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/format/plugin.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/htmldataprocessor/plugin.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/htmlwriter/plugin.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/image/dialogs/image.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/image/plugin.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/indent/plugin.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/justify/plugin.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/keystrokes/plugin.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/list/plugin.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/listblock/plugin.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/liststyle/dialogs/liststyle.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/liststyle/plugin.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/maximize/plugin.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/menu/plugin.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/panel/plugin.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/pastefromword/filter/default.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/pastefromword/plugin.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/pastetext/dialogs/pastetext.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/pastetext/plugin.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/popup/plugin.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/removeformat/plugin.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/resize/plugin.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/richcombo/plugin.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/selection/plugin.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/showborders/plugin.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/sourcearea/plugin.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/styles/plugin.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/styles/styles/default.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/stylescombo/plugin.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/tab/plugin.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/table/dialogs/table.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/table/plugin.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/tabletools/dialogs/tableCell.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/tabletools/plugin.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/toolbar/plugin.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/undo/plugin.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/plugins/wysiwygarea/plugin.js +1 -0
- data/app/assets/javascripts/esp-ckeditor/skins/kama/dialog.css +988 -0
- data/app/assets/javascripts/esp-ckeditor/skins/kama/editor.css +25 -0
- data/app/assets/javascripts/esp-ckeditor/skins/kama/elementspath.css +73 -0
- data/app/assets/javascripts/esp-ckeditor/skins/kama/icons.css +367 -0
- data/app/assets/javascripts/esp-ckeditor/skins/kama/icons.png +0 -0
- data/app/assets/javascripts/esp-ckeditor/skins/kama/icons_rtl.png +0 -0
- data/app/assets/javascripts/esp-ckeditor/skins/kama/images/dialog_sides.gif +0 -0
- data/app/assets/javascripts/esp-ckeditor/skins/kama/images/dialog_sides.png +0 -0
- data/app/assets/javascripts/esp-ckeditor/skins/kama/images/dialog_sides_rtl.png +0 -0
- data/app/assets/javascripts/esp-ckeditor/skins/kama/images/mini.gif +0 -0
- data/app/assets/javascripts/esp-ckeditor/skins/kama/images/noimage.png +0 -0
- data/app/assets/javascripts/esp-ckeditor/skins/kama/images/sprites.png +0 -0
- data/app/assets/javascripts/esp-ckeditor/skins/kama/images/sprites_ie6.png +0 -0
- data/app/assets/javascripts/esp-ckeditor/skins/kama/images/toolbar_start.gif +0 -0
- data/app/assets/javascripts/esp-ckeditor/skins/kama/mainui.css +209 -0
- data/app/assets/javascripts/esp-ckeditor/skins/kama/menu.css +232 -0
- data/app/assets/javascripts/esp-ckeditor/skins/kama/panel.css +227 -0
- data/app/assets/javascripts/esp-ckeditor/skins/kama/presets.css +49 -0
- data/app/assets/javascripts/esp-ckeditor/skins/kama/reset.css +85 -0
- data/app/assets/javascripts/esp-ckeditor/skins/kama/richcombo.css +287 -0
- data/app/assets/javascripts/esp-ckeditor/skins/kama/skin.js +236 -0
- data/app/assets/javascripts/esp-ckeditor/skins/kama/templates.css +88 -0
- data/app/assets/javascripts/esp-ckeditor/skins/kama/toolbar.css +412 -0
- data/app/inputs/ckeditor_input.rb +42 -0
- data/config/routes.rb +2 -0
- data/lib/esp-ckeditor/engine.rb +9 -0
- data/lib/esp-ckeditor/version.rb +3 -0
- data/lib/esp-ckeditor.rb +17 -0
- data/lib/tasks/esp-ckeditor_tasks.rake +4 -0
- metadata +434 -0
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
CKEDITOR.dialog.add( 'esp_video', function ( editor )
|
|
2
|
+
{
|
|
3
|
+
var lang = editor.lang.esp_video;
|
|
4
|
+
|
|
5
|
+
function commitValue( videoNode, extraStyles )
|
|
6
|
+
{
|
|
7
|
+
var value=this.getValue();
|
|
8
|
+
|
|
9
|
+
if ( !value && this.id=='id' )
|
|
10
|
+
value = generateId();
|
|
11
|
+
|
|
12
|
+
videoNode.setAttribute( this.id, value);
|
|
13
|
+
|
|
14
|
+
if ( !value )
|
|
15
|
+
return;
|
|
16
|
+
switch( this.id )
|
|
17
|
+
{
|
|
18
|
+
case 'poster':
|
|
19
|
+
extraStyles.backgroundImage = 'url(' + value + ')';
|
|
20
|
+
break;
|
|
21
|
+
case 'width':
|
|
22
|
+
extraStyles.width = value + 'px';
|
|
23
|
+
break;
|
|
24
|
+
case 'height':
|
|
25
|
+
extraStyles.height = value + 'px';
|
|
26
|
+
break;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
function commitSrc( videoNode, extraStyles, videos )
|
|
31
|
+
{
|
|
32
|
+
var match = this.id.match(/(\w+)(\d)/),
|
|
33
|
+
id = match[1],
|
|
34
|
+
number = parseInt(match[2], 10);
|
|
35
|
+
|
|
36
|
+
var video = videos[number] || (videos[number]={});
|
|
37
|
+
video[id] = this.getValue();
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
function loadValue( videoNode )
|
|
41
|
+
{
|
|
42
|
+
if ( videoNode )
|
|
43
|
+
this.setValue( videoNode.getAttribute( this.id ) );
|
|
44
|
+
else
|
|
45
|
+
{
|
|
46
|
+
if ( this.id == 'id')
|
|
47
|
+
this.setValue( generateId() );
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
function loadSrc( videoNode, videos )
|
|
52
|
+
{
|
|
53
|
+
var match = this.id.match(/(\w+)(\d)/),
|
|
54
|
+
id = match[1],
|
|
55
|
+
number = parseInt(match[2], 10);
|
|
56
|
+
|
|
57
|
+
var video = videos[number];
|
|
58
|
+
if (!video)
|
|
59
|
+
return;
|
|
60
|
+
this.setValue( video[ id ] );
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
function generateId()
|
|
64
|
+
{
|
|
65
|
+
var now = new Date();
|
|
66
|
+
return 'video' + now.getFullYear() + now.getMonth() + now.getDate() + now.getHours() + now.getMinutes() + now.getSeconds();
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
// To automatically get the dimensions of the poster image
|
|
70
|
+
var onImgLoadEvent = function()
|
|
71
|
+
{
|
|
72
|
+
// Image is ready.
|
|
73
|
+
var preview = this.previewImage;
|
|
74
|
+
preview.removeListener( 'load', onImgLoadEvent );
|
|
75
|
+
preview.removeListener( 'error', onImgLoadErrorEvent );
|
|
76
|
+
preview.removeListener( 'abort', onImgLoadErrorEvent );
|
|
77
|
+
|
|
78
|
+
this.setValueOf( 'info', 'width', preview.$.width );
|
|
79
|
+
this.setValueOf( 'info', 'height', preview.$.height );
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
var onImgLoadErrorEvent = function()
|
|
83
|
+
{
|
|
84
|
+
// Error. Image is not loaded.
|
|
85
|
+
var preview = this.previewImage;
|
|
86
|
+
preview.removeListener( 'load', onImgLoadEvent );
|
|
87
|
+
preview.removeListener( 'error', onImgLoadErrorEvent );
|
|
88
|
+
preview.removeListener( 'abort', onImgLoadErrorEvent );
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
return {
|
|
92
|
+
title : lang.dialogTitle,
|
|
93
|
+
minWidth : 400,
|
|
94
|
+
minHeight : 140,
|
|
95
|
+
|
|
96
|
+
onShow : function()
|
|
97
|
+
{
|
|
98
|
+
// Clear previously saved elements.
|
|
99
|
+
this.fakeImage = this.videoNode = null;
|
|
100
|
+
// To get dimensions of poster image
|
|
101
|
+
this.previewImage = editor.document.createElement( 'img' );
|
|
102
|
+
|
|
103
|
+
var fakeImage = this.getSelectedElement();
|
|
104
|
+
if ( fakeImage && fakeImage.data( 'cke-real-element-type' ) && fakeImage.data( 'cke-real-element-type' ) == 'video' )
|
|
105
|
+
{
|
|
106
|
+
this.fakeImage = fakeImage;
|
|
107
|
+
|
|
108
|
+
var videoNode = editor.restoreRealElement( fakeImage ),
|
|
109
|
+
videos = [];
|
|
110
|
+
|
|
111
|
+
videos.push( {src : videoNode.getAttribute( 'src' )} );
|
|
112
|
+
|
|
113
|
+
this.videoNode = videoNode;
|
|
114
|
+
|
|
115
|
+
this.setupContent( videoNode, videos );
|
|
116
|
+
}
|
|
117
|
+
else
|
|
118
|
+
this.setupContent( null, [] );
|
|
119
|
+
},
|
|
120
|
+
|
|
121
|
+
onOk : function()
|
|
122
|
+
{
|
|
123
|
+
// If there's no selected element create one. Otherwise, reuse it
|
|
124
|
+
var videoNode = null;
|
|
125
|
+
if ( !this.fakeImage )
|
|
126
|
+
{
|
|
127
|
+
videoNode = CKEDITOR.dom.element.createFromHtml( '<cke:video></cke:video>', editor.document );
|
|
128
|
+
videoNode.setAttributes(
|
|
129
|
+
{
|
|
130
|
+
controls : 'controls',
|
|
131
|
+
src: this.getValueOf( 'info', 'src0')
|
|
132
|
+
} );
|
|
133
|
+
}
|
|
134
|
+
else
|
|
135
|
+
{
|
|
136
|
+
videoNode = this.videoNode;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
var extraStyles = {}, videos = [];
|
|
140
|
+
this.commitContent( videoNode, extraStyles, videos );
|
|
141
|
+
|
|
142
|
+
var innerHtml = '', links = '',
|
|
143
|
+
link = lang.linkTemplate || '',
|
|
144
|
+
fallbackTemplate = lang.fallbackTemplate || '';
|
|
145
|
+
|
|
146
|
+
links = link.replace('%src%', this.getValueOf('info', 'src0')).replace('%type%', this.getValueOf('info', 'src0').split('/').pop());
|
|
147
|
+
videoNode.setHtml( innerHtml + fallbackTemplate.replace( '%links%', links ) );
|
|
148
|
+
|
|
149
|
+
// Refresh the fake image.
|
|
150
|
+
var newFakeImage = editor.createFakeElement( videoNode, 'cke_video', 'video', false );
|
|
151
|
+
newFakeImage.setStyles( extraStyles );
|
|
152
|
+
if ( this.fakeImage )
|
|
153
|
+
{
|
|
154
|
+
newFakeImage.replace( this.fakeImage );
|
|
155
|
+
editor.getSelection().selectElement( newFakeImage );
|
|
156
|
+
}
|
|
157
|
+
else
|
|
158
|
+
editor.insertElement( newFakeImage );
|
|
159
|
+
},
|
|
160
|
+
onHide : function()
|
|
161
|
+
{
|
|
162
|
+
if ( this.previewImage )
|
|
163
|
+
{
|
|
164
|
+
this.previewImage.removeListener( 'load', onImgLoadEvent );
|
|
165
|
+
this.previewImage.removeListener( 'error', onImgLoadErrorEvent );
|
|
166
|
+
this.previewImage.removeListener( 'abort', onImgLoadErrorEvent );
|
|
167
|
+
this.previewImage.remove();
|
|
168
|
+
this.previewImage = null; // Dialog is closed.
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
|
|
172
|
+
contents :
|
|
173
|
+
[
|
|
174
|
+
{
|
|
175
|
+
id : 'info',
|
|
176
|
+
elements :
|
|
177
|
+
[
|
|
178
|
+
{
|
|
179
|
+
type : 'hbox',
|
|
180
|
+
widths: [ '320px', '80px'],
|
|
181
|
+
children : [
|
|
182
|
+
{
|
|
183
|
+
type : 'text',
|
|
184
|
+
id : 'src0',
|
|
185
|
+
label : lang.sourceVideo,
|
|
186
|
+
commit : commitSrc,
|
|
187
|
+
setup : loadSrc
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
type : 'button',
|
|
191
|
+
id : 'browse',
|
|
192
|
+
hidden : 'true',
|
|
193
|
+
style : 'display:inline-block;margin-top:10px;',
|
|
194
|
+
filebrowser :
|
|
195
|
+
{
|
|
196
|
+
action : 'Browse',
|
|
197
|
+
target: 'info:src0',
|
|
198
|
+
url: editor.config.filebrowserVideoBrowseUrl || editor.config.filebrowserBrowseUrl
|
|
199
|
+
},
|
|
200
|
+
label : editor.lang.esp_video.browseServer
|
|
201
|
+
}
|
|
202
|
+
]
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
type : 'hbox',
|
|
206
|
+
widths: [ '50%', '50%'],
|
|
207
|
+
children : [
|
|
208
|
+
{
|
|
209
|
+
type : 'text',
|
|
210
|
+
id : 'width',
|
|
211
|
+
label : editor.lang.common.width,
|
|
212
|
+
'default' : 512,
|
|
213
|
+
validate : CKEDITOR.dialog.validate.notEmpty( lang.widthRequired ),
|
|
214
|
+
commit : commitValue,
|
|
215
|
+
setup : loadValue
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
type : 'text',
|
|
219
|
+
id : 'height',
|
|
220
|
+
label : editor.lang.common.height,
|
|
221
|
+
'default' : 410,
|
|
222
|
+
validate : CKEDITOR.dialog.validate.notEmpty(lang.heightRequired ),
|
|
223
|
+
commit : commitValue,
|
|
224
|
+
setup : loadValue
|
|
225
|
+
}
|
|
226
|
+
]
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
type : 'hbox',
|
|
230
|
+
widths: [ '320px', '80px'],
|
|
231
|
+
children : [
|
|
232
|
+
{
|
|
233
|
+
type : 'text',
|
|
234
|
+
id : 'poster',
|
|
235
|
+
label : lang.poster,
|
|
236
|
+
commit : commitValue,
|
|
237
|
+
setup : loadValue,
|
|
238
|
+
onChange : function()
|
|
239
|
+
{
|
|
240
|
+
var dialog = this.getDialog(),
|
|
241
|
+
newUrl = this.getValue();
|
|
242
|
+
|
|
243
|
+
//Update preview image
|
|
244
|
+
if ( newUrl.length > 0 ) //Prevent from load before onShow
|
|
245
|
+
{
|
|
246
|
+
dialog = this.getDialog();
|
|
247
|
+
var preview = dialog.previewImage;
|
|
248
|
+
|
|
249
|
+
preview.on( 'load', onImgLoadEvent, dialog );
|
|
250
|
+
preview.on( 'error', onImgLoadErrorEvent, dialog );
|
|
251
|
+
preview.on( 'abort', onImgLoadErrorEvent, dialog );
|
|
252
|
+
preview.setAttribute( 'src', newUrl );
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
type : 'button',
|
|
258
|
+
id : 'browse',
|
|
259
|
+
hidden : 'true',
|
|
260
|
+
style : 'display:inline-block;margin-top:10px;',
|
|
261
|
+
filebrowser :
|
|
262
|
+
{
|
|
263
|
+
action : 'Browse',
|
|
264
|
+
target: 'info:poster',
|
|
265
|
+
url: editor.config.filebrowserImageBrowseUrl || editor.config.filebrowserBrowseUrl
|
|
266
|
+
},
|
|
267
|
+
label : editor.lang.esp_video.browseServer
|
|
268
|
+
}
|
|
269
|
+
]
|
|
270
|
+
}
|
|
271
|
+
]
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
]
|
|
275
|
+
};
|
|
276
|
+
} );
|
|
277
|
+
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
CKEDITOR.plugins.setLang( 'esp_video', 'en',
|
|
2
|
+
{
|
|
3
|
+
esp_video:
|
|
4
|
+
{
|
|
5
|
+
toolbar: 'Video',
|
|
6
|
+
dialogTitle: 'Video properties',
|
|
7
|
+
browseServer: 'Browse',
|
|
8
|
+
fakeObject: 'Video',
|
|
9
|
+
properties: 'Edit video',
|
|
10
|
+
widthRequired: 'Width field cannot be empty',
|
|
11
|
+
heightRequired: 'Height field cannot be empty',
|
|
12
|
+
poster: 'Poster image',
|
|
13
|
+
sourceVideo: 'Source video',
|
|
14
|
+
sourceType: 'Video type',
|
|
15
|
+
linkTemplate: '<a href="%src%">%type%</a> ',
|
|
16
|
+
fallbackTemplate: 'Your browser doesn\'t support video. Please download the file: %links%'
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
CKEDITOR.plugins.setLang( 'esp_video', 'ru',
|
|
2
|
+
{
|
|
3
|
+
esp_video:
|
|
4
|
+
{
|
|
5
|
+
toolbar: 'Видео',
|
|
6
|
+
dialogTitle: 'Параметры видео',
|
|
7
|
+
browseServer: 'Выбор',
|
|
8
|
+
fakeObject: 'Видео',
|
|
9
|
+
properties: 'Редактировать видео',
|
|
10
|
+
widthRequired: 'Поле "ширина" не может быть пустым',
|
|
11
|
+
heightRequired: 'Поле "высота" не может быть пустым',
|
|
12
|
+
poster: 'Скриншот',
|
|
13
|
+
sourceVideo: 'Источник',
|
|
14
|
+
sourceType: 'Тип источника',
|
|
15
|
+
linkTemplate: '<a href="%src%">%type%</a> ',
|
|
16
|
+
fallbackTemplate: 'Ваш браузер не поддерживает тэг video. Вы можете скачать файл: %links%'
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
CKEDITOR.plugins.setLang( 'esp_video', 'uk',
|
|
2
|
+
{
|
|
3
|
+
esp_video:
|
|
4
|
+
{
|
|
5
|
+
toolbar: 'Відео',
|
|
6
|
+
dialogTitle: 'Параметри відео',
|
|
7
|
+
browseServer: 'Вибір',
|
|
8
|
+
fakeObject: 'Відео',
|
|
9
|
+
properties: 'Редагувати відео',
|
|
10
|
+
widthRequired: 'Поле "ширина" не може бути порожнім',
|
|
11
|
+
heightRequired: 'Поле "висота" не може бути порожнім',
|
|
12
|
+
poster: 'Скріншот',
|
|
13
|
+
sourceVideo: 'Джерело',
|
|
14
|
+
sourceType: 'Тип джерела',
|
|
15
|
+
linkTemplate: '<a href="%src%">%type%</a> ',
|
|
16
|
+
fallbackTemplate: 'Ваш браузер не підтримує тег video. Ви можете завантажити файл: %links%'
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @file Esp_video plugin for CKEditor
|
|
3
|
+
* Copyright (C) 2011 Alfonso Martínez de Lizarrondo
|
|
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
|
+
*/
|
|
22
|
+
|
|
23
|
+
CKEDITOR.plugins.add( 'esp_video',
|
|
24
|
+
{
|
|
25
|
+
// Translations, available at the end of this file, without extra requests
|
|
26
|
+
lang: ['en', 'ru', 'uk'],
|
|
27
|
+
init : function( editor )
|
|
28
|
+
{
|
|
29
|
+
var lang = editor.lang.esp_video;
|
|
30
|
+
|
|
31
|
+
// Check for CKEditor 3.5
|
|
32
|
+
if (typeof editor.element.data == 'undefined')
|
|
33
|
+
{
|
|
34
|
+
alert('The "video" plugin requires CKEditor 3.5 or newer');
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
CKEDITOR.dialog.add( 'esp_video', this.path + 'dialogs/esp_video.js' );
|
|
39
|
+
|
|
40
|
+
editor.addCommand( 'esp_video', new CKEDITOR.dialogCommand( 'esp_video' ) );
|
|
41
|
+
editor.ui.addButton( 'Esp_video',
|
|
42
|
+
{
|
|
43
|
+
label : lang.toolbar,
|
|
44
|
+
command : 'esp_video',
|
|
45
|
+
icon : this.path + 'images/esp_video.png'
|
|
46
|
+
} );
|
|
47
|
+
|
|
48
|
+
editor.addCss(
|
|
49
|
+
'img.cke_video' +
|
|
50
|
+
'{' +
|
|
51
|
+
'background-image: url(' + CKEDITOR.getUrl( this.path + 'images/placeholder.png' ) + ');' +
|
|
52
|
+
'background-position: center center;' +
|
|
53
|
+
'background-repeat: no-repeat;' +
|
|
54
|
+
'background-color:gray;'+
|
|
55
|
+
'border: 1px solid #a9a9a9;' +
|
|
56
|
+
'width: 80px;' +
|
|
57
|
+
'height: 80px;' +
|
|
58
|
+
'}');
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
// If the "menu" plugin is loaded, register the menu items.
|
|
62
|
+
if ( editor.addMenuItems )
|
|
63
|
+
{
|
|
64
|
+
editor.addMenuItems(
|
|
65
|
+
{
|
|
66
|
+
video :
|
|
67
|
+
{
|
|
68
|
+
label : lang.properties,
|
|
69
|
+
command : 'video',
|
|
70
|
+
group : 'flash'
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
editor.on( 'doubleclick', function( evt )
|
|
76
|
+
{
|
|
77
|
+
var element = evt.data.element;
|
|
78
|
+
|
|
79
|
+
if ( element.is( 'img' ) && element.data( 'cke-real-element-type' ) == 'video' )
|
|
80
|
+
evt.data.dialog = 'video';
|
|
81
|
+
});
|
|
82
|
+
|
|
83
|
+
// If the "contextmenu" plugin is loaded, register the listeners.
|
|
84
|
+
if ( editor.contextMenu )
|
|
85
|
+
{
|
|
86
|
+
editor.contextMenu.addListener( function( element, selection )
|
|
87
|
+
{
|
|
88
|
+
if ( element && element.is( 'img' ) && !element.isReadOnly()
|
|
89
|
+
&& element.data( 'cke-real-element-type' ) == 'video' )
|
|
90
|
+
return { video : CKEDITOR.TRISTATE_OFF };
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
// Add special handling for these items
|
|
95
|
+
CKEDITOR.dtd.$empty['cke:source']=1;
|
|
96
|
+
CKEDITOR.dtd.$empty['source']=1;
|
|
97
|
+
|
|
98
|
+
editor.lang.fakeobjects.video = lang.fakeObject;
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
}, //Init
|
|
102
|
+
|
|
103
|
+
afterInit: function( editor )
|
|
104
|
+
{
|
|
105
|
+
|
|
106
|
+
var dataProcessor = editor.dataProcessor,
|
|
107
|
+
htmlFilter = dataProcessor && dataProcessor.htmlFilter,
|
|
108
|
+
dataFilter = dataProcessor && dataProcessor.dataFilter;
|
|
109
|
+
var handler = editor.plugins.googleMapsHandler;
|
|
110
|
+
|
|
111
|
+
// dataFilter : conversion from html input to internal data
|
|
112
|
+
dataFilter.addRules(
|
|
113
|
+
{
|
|
114
|
+
|
|
115
|
+
elements : {
|
|
116
|
+
$ : function( realElement )
|
|
117
|
+
{
|
|
118
|
+
if ( realElement.name == 'video' )
|
|
119
|
+
{
|
|
120
|
+
realElement.name = 'cke:video';
|
|
121
|
+
var fakeElement = editor.createFakeParserElement( realElement, 'cke_video', 'video', false ),
|
|
122
|
+
fakeStyle = fakeElement.attributes.style || '';
|
|
123
|
+
|
|
124
|
+
var width = realElement.attributes.width,
|
|
125
|
+
height = realElement.attributes.height,
|
|
126
|
+
poster = realElement.attributes.poster;
|
|
127
|
+
|
|
128
|
+
if ( typeof width != 'undefined' )
|
|
129
|
+
fakeStyle = fakeElement.attributes.style = fakeStyle + 'width:' + CKEDITOR.tools.cssLength( width ) + ';';
|
|
130
|
+
|
|
131
|
+
if ( typeof height != 'undefined' )
|
|
132
|
+
fakeStyle = fakeElement.attributes.style = fakeStyle + 'height:' + CKEDITOR.tools.cssLength( height ) + ';';
|
|
133
|
+
|
|
134
|
+
if ( poster )
|
|
135
|
+
fakeStyle = fakeElement.attributes.style = fakeStyle + 'background-image:url(' + poster + ');';
|
|
136
|
+
|
|
137
|
+
return fakeElement;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
}
|
|
143
|
+
);
|
|
144
|
+
|
|
145
|
+
// htmlFilter : conversion from internal data to html output.
|
|
146
|
+
htmlFilter.addRules(
|
|
147
|
+
{
|
|
148
|
+
elements :
|
|
149
|
+
{
|
|
150
|
+
$ : function( element )
|
|
151
|
+
{
|
|
152
|
+
if ( element.name == 'img' )
|
|
153
|
+
{
|
|
154
|
+
|
|
155
|
+
var number = element.attributes.mapnumber;
|
|
156
|
+
if (number)
|
|
157
|
+
{
|
|
158
|
+
var scriptNode,
|
|
159
|
+
handler = editor.plugins.googleMapsHandler,
|
|
160
|
+
oMap = handler.getMap( number ) ;
|
|
161
|
+
|
|
162
|
+
if (oMap && oMap.generatedType>1)
|
|
163
|
+
{
|
|
164
|
+
handler.CreatedMapsNames.push( oMap.number ) ;
|
|
165
|
+
// Inject the <script> for this map
|
|
166
|
+
scriptNode = new CKEDITOR.htmlParser.cdata( oMap.BuildScript() );
|
|
167
|
+
element.parent.children.push( scriptNode );
|
|
168
|
+
}
|
|
169
|
+
delete element.attributes.mapnumber;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
return element;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
});
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
}
|
|
181
|
+
} );
|
|
182
|
+
|