aloha-rails 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +18 -0
- data/Gemfile +4 -0
- data/LICENSE +22 -0
- data/README.md +34 -0
- data/Rakefile +9 -0
- data/aloha-rails.gemspec +22 -0
- data/lib/aloha-rails.rb +13 -0
- data/lib/aloha-rails/engine.rb +9 -0
- data/lib/aloha-rails/helpers.rb +45 -0
- data/lib/aloha-rails/railtie.rb +9 -0
- data/lib/aloha-rails/version.rb +5 -0
- data/lib/generators/aloha/install/USAGE +9 -0
- data/lib/generators/aloha/install/install_generator.rb +25 -0
- data/lib/generators/aloha/install/templates/aloha-config.coffee +88 -0
- data/lib/generators/aloha/install/templates/aloha-config.js +108 -0
- data/lib/generators/aloha/install/templates/aloha.rb +21 -0
- data/lib/generators/aloha/install/templates/application.js +16 -0
- data/spec/aloha_spec.rb +20 -0
- data/spec/helpers/aloha_helpers_spec.rb +69 -0
- data/spec/spec_helper.rb +17 -0
- data/vendor/assets/javascripts/aloha/css/aloha-core.css +44 -0
- data/vendor/assets/javascripts/aloha/css/aloha-sidebar.css +284 -0
- data/vendor/assets/javascripts/aloha/css/aloha.css +7774 -0
- data/vendor/assets/javascripts/aloha/css/ext-aloha-reset.css +33 -0
- data/vendor/assets/javascripts/aloha/css/ext-aloha.css +357 -0
- data/vendor/assets/javascripts/aloha/img/arrow-down.png +0 -0
- data/vendor/assets/javascripts/aloha/img/arrow-left.png +0 -0
- data/vendor/assets/javascripts/aloha/img/arrow.png +0 -0
- data/vendor/assets/javascripts/aloha/img/base-big.png +0 -0
- data/vendor/assets/javascripts/aloha/img/base-multi.png +0 -0
- data/vendor/assets/javascripts/aloha/img/base.png +0 -0
- data/vendor/assets/javascripts/aloha/img/bg.png +0 -0
- data/vendor/assets/javascripts/aloha/img/breadcrumb-divider.png +0 -0
- data/vendor/assets/javascripts/aloha/img/fade-in.png +0 -0
- data/vendor/assets/javascripts/aloha/img/fade-out.png +0 -0
- data/vendor/assets/javascripts/aloha/img/gentics-logo.png +0 -0
- data/vendor/assets/javascripts/aloha/img/grabhandle.png +0 -0
- data/vendor/assets/javascripts/aloha/img/maximize.png +0 -0
- data/vendor/assets/javascripts/aloha/img/multisplit-base.jpg +0 -0
- data/vendor/assets/javascripts/aloha/img/multisplit-close.gif +0 -0
- data/vendor/assets/javascripts/aloha/img/multisplit-open.gif +0 -0
- data/vendor/assets/javascripts/aloha/img/pin.png +0 -0
- data/vendor/assets/javascripts/aloha/img/removeformat.png +0 -0
- data/vendor/assets/javascripts/aloha/img/text_indent.png +0 -0
- data/vendor/assets/javascripts/aloha/img/text_indent_remove.png +0 -0
- data/vendor/assets/javascripts/aloha/lib/aloha-bootstrap.js +27645 -0
- data/vendor/assets/javascripts/aloha/lib/aloha.js +88750 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/command.js +246 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/console.js +330 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/contenthandlermanager.js +65 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/core.js +560 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/ecma5.js +194 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/ecma5shims.js +280 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/editable.js +854 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/engine.js +8306 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/ext-alohaproxy.js +86 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/ext-alohareader.js +50 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/ext-alohatreeloader.js +77 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/ext.js +32 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/floatingmenu.js +1304 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/ierange-m2.js +546 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/jquery.aloha.js +324 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/jquery.js +24 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/jquery.patch.js +115 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/markup.js +977 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/message.js +115 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/nls/de/i18n.js +10 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/nls/i18n.js +20 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/observable.js +106 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/plugin.js +276 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/pluginmanager.js +146 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/rangy-core.js +3242 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/registry.js +59 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/repository.js +241 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/repositorymanager.js +570 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/repositoryobjects.js +146 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/selection.js +2083 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/sidebar.js +1133 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/ui-attributefield.js +530 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/ui-browser.js +214 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/ui.js +889 -0
- data/vendor/assets/javascripts/aloha/lib/css.js +313 -0
- data/vendor/assets/javascripts/aloha/lib/i18n.js +153 -0
- data/vendor/assets/javascripts/aloha/lib/jquery-plugin.js +46 -0
- data/vendor/assets/javascripts/aloha/lib/order.js +140 -0
- data/vendor/assets/javascripts/aloha/lib/require.js +2013 -0
- data/vendor/assets/javascripts/aloha/lib/text.js +262 -0
- data/vendor/assets/javascripts/aloha/lib/util/class.js +80 -0
- data/vendor/assets/javascripts/aloha/lib/util/dom.js +1673 -0
- data/vendor/assets/javascripts/aloha/lib/util/json2.js +481 -0
- data/vendor/assets/javascripts/aloha/lib/util/lang.js +66 -0
- data/vendor/assets/javascripts/aloha/lib/util/position.js +158 -0
- data/vendor/assets/javascripts/aloha/lib/util/range.js +923 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/adapter/jquery/ext-jquery-adapter-debug.js +2470 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/adapter/jquery/ext-jquery-adapter.js +7 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/ext-all-debug.js +47684 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/ext-all.js +13 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/gpl-3.0.txt +674 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/license.txt +42 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/charts.swf +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/css/ext-all.css +5903 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/css/ext-all.less +6795 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/css/xtheme-gray.css +1692 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/expressinstall.swf +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/box/corners-blue.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/box/corners.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/box/l-blue.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/box/l.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/box/r-blue.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/box/r.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/box/tb-blue.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/box/tb.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/button/arrow.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/button/btn.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/button/group-cs.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/button/group-lr.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/button/group-tb.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/button/s-arrow-b-noline.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/button/s-arrow-b.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/button/s-arrow-bo.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/button/s-arrow-noline.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/button/s-arrow-o.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/button/s-arrow.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/dd/drop-add.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/dd/drop-no.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/dd/drop-yes.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/editor/tb-sprite.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/form/checkbox.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/form/clear-trigger.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/form/clear-trigger.psd +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/form/date-trigger.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/form/date-trigger.psd +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/form/error-tip-corners.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/form/exclamation.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/form/radio.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/form/search-trigger.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/form/search-trigger.psd +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/form/text-bg.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/form/trigger-square.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/form/trigger-square.psd +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/form/trigger-tpl.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/form/trigger.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/form/trigger.psd +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/gradient-bg.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/arrow-left-white.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/arrow-right-white.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/col-move-bottom.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/col-move-top.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/columns.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/dirty.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/done.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/drop-no.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/drop-yes.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/footer-bg.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/grid-blue-hd.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/grid-blue-split.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/grid-hrow.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/grid-loading.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/grid-split.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/grid-vista-hd.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/grid3-hd-btn.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/grid3-hrow-over.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/grid3-hrow.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/grid3-special-col-bg.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/grid3-special-col-sel-bg.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/group-by.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/group-collapse.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/group-expand-sprite.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/group-expand.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/hd-pop.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/hmenu-asc.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/hmenu-desc.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/hmenu-lock.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/hmenu-lock.png +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/hmenu-unlock.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/hmenu-unlock.png +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/invalid_line.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/loading.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/mso-hd.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/nowait.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/page-first-disabled.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/page-first.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/page-last-disabled.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/page-last.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/page-next-disabled.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/page-next.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/page-prev-disabled.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/page-prev.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/pick-button.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/refresh.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/row-check-sprite.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/row-expand-sprite.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/row-over.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/row-sel.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/sort-hd.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/sort_asc.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/sort_desc.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/wait.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/layout/collapse.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/layout/expand.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/layout/gradient-bg.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/layout/mini-bottom.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/layout/mini-left.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/layout/mini-right.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/layout/mini-top.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/layout/ns-collapse.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/layout/ns-expand.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/layout/panel-close.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/layout/panel-title-bg.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/layout/panel-title-light-bg.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/layout/stick.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/layout/stuck.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/layout/tab-close-on.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/layout/tab-close.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/menu/checked.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/menu/group-checked.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/menu/item-over.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/menu/menu-parent.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/menu/menu.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/menu/unchecked.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/panel/corners-sprite.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/panel/left-right.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/panel/light-hd.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/panel/tool-sprite-tpl.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/panel/tool-sprites.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/panel/tools-sprites-trans.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/panel/top-bottom.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/panel/top-bottom.png +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/panel/white-corners-sprite.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/panel/white-left-right.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/panel/white-top-bottom.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/progress/progress-bg.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/qtip/bg.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/qtip/close.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/qtip/tip-anchor-sprite.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/qtip/tip-sprite.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/s.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/shadow-c.png +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/shadow-lr.png +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/shadow.png +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/shared/blue-loading.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/shared/calendar.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/shared/glass-bg.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/shared/hd-sprite.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/shared/large-loading.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/shared/left-btn.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/shared/loading-balls.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/shared/right-btn.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/shared/warning.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/sizer/e-handle-dark.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/sizer/e-handle.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/sizer/ne-handle-dark.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/sizer/ne-handle.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/sizer/nw-handle-dark.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/sizer/nw-handle.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/sizer/s-handle-dark.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/sizer/s-handle.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/sizer/se-handle-dark.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/sizer/se-handle.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/sizer/square.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/sizer/sw-handle-dark.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/sizer/sw-handle.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/slider/slider-bg.png +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/slider/slider-thumb.png +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/slider/slider-v-bg.png +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/slider/slider-v-thumb.png +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tabs/scroll-left.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tabs/scroll-right.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tabs/scroller-bg.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tabs/tab-btm-inactive-left-bg.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tabs/tab-btm-inactive-right-bg.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tabs/tab-btm-left-bg.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tabs/tab-btm-over-left-bg.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tabs/tab-btm-over-right-bg.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tabs/tab-btm-right-bg.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tabs/tab-close.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tabs/tab-strip-bg.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tabs/tab-strip-bg.png +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tabs/tab-strip-btm-bg.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tabs/tabs-sprite.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/toolbar/bg.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/toolbar/btn-arrow-light.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/toolbar/btn-arrow.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/toolbar/btn-over-bg.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/toolbar/gray-bg.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/toolbar/more.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/toolbar/tb-bg.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/toolbar/tb-btn-sprite.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/toolbar/tb-xl-btn-sprite.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/toolbar/tb-xl-sep.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/arrows.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/drop-add.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/drop-between.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/drop-no.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/drop-over.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/drop-under.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/drop-yes.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/elbow-end-minus-nl.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/elbow-end-minus.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/elbow-end-plus-nl.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/elbow-end-plus.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/elbow-end.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/elbow-line.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/elbow-minus-nl.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/elbow-minus.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/elbow-plus-nl.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/elbow-plus.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/elbow.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/folder-open.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/folder.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/leaf.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/loading.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/s.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/window/icon-error.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/window/icon-info.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/window/icon-question.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/window/icon-warning.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/window/left-corners.png +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/window/left-corners.psd +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/window/left-right.png +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/window/left-right.psd +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/window/right-corners.png +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/window/right-corners.psd +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/window/top-bottom.png +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/window/top-bottom.psd +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/button/btn-arrow.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/button/btn-sprite.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/button/btn.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/button/group-cs.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/button/group-lr.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/button/group-tb.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/button/s-arrow-bo.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/button/s-arrow-o.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/form/clear-trigger.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/form/date-trigger.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/form/search-trigger.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/form/trigger-square.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/form/trigger.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/gradient-bg.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/grid/col-move-bottom.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/grid/col-move-top.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/grid/grid3-hd-btn.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/grid/grid3-hrow-over.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/grid/grid3-hrow-over2.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/grid/grid3-hrow.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/grid/grid3-hrow2.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/grid/grid3-special-col-bg.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/grid/grid3-special-col-bg2.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/grid/grid3-special-col-sel-bg.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/grid/group-collapse.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/grid/group-expand-sprite.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/grid/group-expand.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/grid/page-first.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/grid/page-last.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/grid/page-next.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/grid/page-prev.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/grid/refresh.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/grid/row-expand-sprite.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/grid/sort_asc.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/grid/sort_desc.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/menu/group-checked.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/menu/item-over-disabled.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/menu/item-over.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/menu/menu-parent.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/panel/corners-sprite.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/panel/left-right.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/panel/light-hd.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/panel/tool-sprite-tpl.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/panel/tool-sprites.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/panel/tools-sprites-trans.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/panel/top-bottom.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/panel/top-bottom.png +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/panel/white-corners-sprite.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/panel/white-left-right.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/panel/white-top-bottom.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/progress/progress-bg.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/qtip/bg.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/qtip/close.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/qtip/tip-anchor-sprite.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/qtip/tip-sprite.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/s.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/shared/hd-sprite.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/shared/left-btn.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/shared/right-btn.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/sizer/e-handle.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/sizer/ne-handle.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/sizer/nw-handle.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/sizer/s-handle.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/sizer/se-handle.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/sizer/square.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/sizer/sw-handle.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/slider/slider-thumb.png +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/slider/slider-v-thumb.png +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/tabs/scroll-left.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/tabs/scroll-right.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/tabs/scroller-bg.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/tabs/tab-btm-inactive-left-bg.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/tabs/tab-btm-inactive-right-bg.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/tabs/tab-btm-left-bg.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/tabs/tab-btm-over-left-bg.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/tabs/tab-btm-over-right-bg.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/tabs/tab-btm-right-bg.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/tabs/tab-close.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/tabs/tab-strip-bg.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/tabs/tab-strip-bg.png +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/tabs/tab-strip-btm-bg.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/tabs/tabs-sprite.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/toolbar/bg.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/toolbar/btn-arrow-light.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/toolbar/btn-arrow.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/toolbar/btn-over-bg.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/toolbar/gray-bg.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/toolbar/more.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/toolbar/tb-bg.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/toolbar/tb-btn-sprite.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/tree/arrows.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/tree/elbow-end-minus-nl.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/tree/elbow-end-minus.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/tree/elbow-end-plus-nl.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/tree/elbow-end-plus.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/window/icon-error.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/window/icon-info.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/window/icon-question.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/window/icon-warning.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/window/left-corners.png +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/window/left-corners.pspimage +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/window/left-right.png +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/window/right-corners.png +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/window/top-bottom.png +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/resources.jsb +507 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/jquery-1.6.1.js +8936 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/jquery.json-2.2.min.js +33 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/jquery.store.js +446 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/sanitize.js +267 -0
- data/vendor/assets/javascripts/aloha/plugins/common/abbr/css/abbr.css +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/abbr/lib/abbr-plugin.js +293 -0
- data/vendor/assets/javascripts/aloha/plugins/common/abbr/nls/de/i18n.js +1 -0
- data/vendor/assets/javascripts/aloha/plugins/common/abbr/nls/i18n.js +4 -0
- data/vendor/assets/javascripts/aloha/plugins/common/abbr/package.json +1 -0
- data/vendor/assets/javascripts/aloha/plugins/common/align/LICENSE +166 -0
- data/vendor/assets/javascripts/aloha/plugins/common/align/README +12 -0
- data/vendor/assets/javascripts/aloha/plugins/common/align/css/align.css +19 -0
- data/vendor/assets/javascripts/aloha/plugins/common/align/img/align.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/align/lib/align-plugin.js +345 -0
- data/vendor/assets/javascripts/aloha/plugins/common/align/nls/en/i18n.js +1 -0
- data/vendor/assets/javascripts/aloha/plugins/common/align/nls/fr/i18n.js +1 -0
- data/vendor/assets/javascripts/aloha/plugins/common/align/nls/i18n.js +6 -0
- data/vendor/assets/javascripts/aloha/plugins/common/align/package.json +2 -0
- data/vendor/assets/javascripts/aloha/plugins/common/block/README +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/block/css/block.css +51 -0
- data/vendor/assets/javascripts/aloha/plugins/common/block/img/toolbar-draghandle.gif +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/block/lib/block-plugin.js +104 -0
- data/vendor/assets/javascripts/aloha/plugins/common/block/lib/block.js +442 -0
- data/vendor/assets/javascripts/aloha/plugins/common/block/lib/blockcontenthandler.js +58 -0
- data/vendor/assets/javascripts/aloha/plugins/common/block/lib/blockmanager.js +242 -0
- data/vendor/assets/javascripts/aloha/plugins/common/block/lib/editor.js +209 -0
- data/vendor/assets/javascripts/aloha/plugins/common/block/lib/editormanager.js +34 -0
- data/vendor/assets/javascripts/aloha/plugins/common/block/lib/sidebarattributeeditor.js +119 -0
- data/vendor/assets/javascripts/aloha/plugins/common/block/package.json +11 -0
- data/vendor/assets/javascripts/aloha/plugins/common/characterpicker/css/characterpicker.css +38 -0
- data/vendor/assets/javascripts/aloha/plugins/common/characterpicker/img/icon.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/characterpicker/lib/characterpicker-plugin.js +227 -0
- data/vendor/assets/javascripts/aloha/plugins/common/characterpicker/nls/de/i18n.js +1 -0
- data/vendor/assets/javascripts/aloha/plugins/common/characterpicker/nls/i18n.js +4 -0
- data/vendor/assets/javascripts/aloha/plugins/common/commands/css/abbr.css +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/commands/lib/commands-plugin.js +15 -0
- data/vendor/assets/javascripts/aloha/plugins/common/commands/lib/inserthtml.js +107 -0
- data/vendor/assets/javascripts/aloha/plugins/common/commands/package.json +1 -0
- data/vendor/assets/javascripts/aloha/plugins/common/contenthandler/README.md +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/contenthandler/lib/contenthandler-plugin.js +54 -0
- data/vendor/assets/javascripts/aloha/plugins/common/contenthandler/lib/genericcontenthandler.js +255 -0
- data/vendor/assets/javascripts/aloha/plugins/common/contenthandler/lib/oembedcontenthandler.js +276 -0
- data/vendor/assets/javascripts/aloha/plugins/common/contenthandler/lib/sanitizecontenthandler.js +136 -0
- data/vendor/assets/javascripts/aloha/plugins/common/contenthandler/lib/wordcontenthandler.js +279 -0
- data/vendor/assets/javascripts/aloha/plugins/common/contenthandler/package.json +1 -0
- data/vendor/assets/javascripts/aloha/plugins/common/format/css/format.css +8 -0
- data/vendor/assets/javascripts/aloha/plugins/common/format/img/em.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/format/img/strong.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/format/lib/format-plugin.js +303 -0
- data/vendor/assets/javascripts/aloha/plugins/common/format/nls/de/i18n.js +1 -0
- data/vendor/assets/javascripts/aloha/plugins/common/format/nls/eo/i18n.js +1 -0
- data/vendor/assets/javascripts/aloha/plugins/common/format/nls/fi/i18n.js +1 -0
- data/vendor/assets/javascripts/aloha/plugins/common/format/nls/fr/i18n.js +1 -0
- data/vendor/assets/javascripts/aloha/plugins/common/format/nls/i18n.js +10 -0
- data/vendor/assets/javascripts/aloha/plugins/common/format/nls/it/i18n.js +1 -0
- data/vendor/assets/javascripts/aloha/plugins/common/format/nls/pl/i18n.js +1 -0
- data/vendor/assets/javascripts/aloha/plugins/common/format/nls/ru/i18n.js +1 -0
- data/vendor/assets/javascripts/aloha/plugins/common/highlighteditables/css/highlighteditables.css +14 -0
- data/vendor/assets/javascripts/aloha/plugins/common/highlighteditables/lib/highlighteditables-plugin.js +72 -0
- data/vendor/assets/javascripts/aloha/plugins/common/highlighteditables/package.json +1 -0
- data/vendor/assets/javascripts/aloha/plugins/common/horizontalruler/css/horizontalruler.css +4 -0
- data/vendor/assets/javascripts/aloha/plugins/common/horizontalruler/img/icon.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/horizontalruler/lib/horizontalruler-plugin.js +55 -0
- data/vendor/assets/javascripts/aloha/plugins/common/horizontalruler/nls/de/i18n.js +1 -0
- data/vendor/assets/javascripts/aloha/plugins/common/horizontalruler/nls/i18n.js +4 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/AGPL3 +661 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/LICENSE +25 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/README.md +83 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/css/image.css +124 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/demo/crop.html +76 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/demo/crop.php +21 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/demo/cropnresize.jpg +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/demo/index.html +120 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/img/blank.jpg +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/img/cropnresize.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/img/handle-sw.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/img/image-align-left.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/img/image-align-none.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/img/image-align-right.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/img/image-border.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/img/image-title.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/img/image.gif +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/img/padding-decrease.gif +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/img/padding-increase.gif +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/img/page.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/img/size-decrease.gif +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/img/size-increase.gif +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/lib/image-plugin.js +1615 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/nls/cz/i18n.js +16 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/nls/de/i18n.js +1 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/nls/fr/i18n.js +1 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/nls/i18n.js +7 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/nls/ru/i18n.js +16 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/package.json +1 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/test/test.css +12 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/test/test.html +40 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/vendor/jcrop/jcrop.gif +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/vendor/jcrop/jquery.jcrop.css +35 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/vendor/jcrop/jquery.jcrop.min.js +163 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/vendor/mousewheel/mousewheel.js +60 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/vendor/ui/jquery-ui-1.8.10.custom.min.js +97 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/vendor/ui/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/vendor/ui/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/vendor/ui/ui-lightness/images/ui-bg_flat_10_000000_40x100.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/vendor/ui/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/vendor/ui/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/vendor/ui/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/vendor/ui/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/vendor/ui/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/vendor/ui/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/vendor/ui/ui-lightness/images/ui-icons_222222_256x240.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/vendor/ui/ui-lightness/images/ui-icons_228ef1_256x240.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/vendor/ui/ui-lightness/images/ui-icons_ef8c08_256x240.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/vendor/ui/ui-lightness/images/ui-icons_ffd27a_256x240.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/vendor/ui/ui-lightness/images/ui-icons_ffffff_256x240.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/vendor/ui/ui-lightness/jquery-ui-1.8.10.cropnresize.css +33 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/vendor/ui/ui-lightness/jquery-ui-1.8.10.custom.css +314 -0
- data/vendor/assets/javascripts/aloha/plugins/common/link/css/link.css +55 -0
- data/vendor/assets/javascripts/aloha/plugins/common/link/demo/background.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/link/demo/external-link-ltr-icon.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/link/demo/index.css +91 -0
- data/vendor/assets/javascripts/aloha/plugins/common/link/demo/index.html +91 -0
- data/vendor/assets/javascripts/aloha/plugins/common/link/extra/delicious.js +246 -0
- data/vendor/assets/javascripts/aloha/plugins/common/link/extra/linklist.js +227 -0
- data/vendor/assets/javascripts/aloha/plugins/common/link/extra/slowlinklist.js +228 -0
- data/vendor/assets/javascripts/aloha/plugins/common/link/lib/link-plugin.js +759 -0
- data/vendor/assets/javascripts/aloha/plugins/common/link/nls/de/i18n.js +13 -0
- data/vendor/assets/javascripts/aloha/plugins/common/link/nls/fr/i18n.js +6 -0
- data/vendor/assets/javascripts/aloha/plugins/common/link/nls/i18n.js +9 -0
- data/vendor/assets/javascripts/aloha/plugins/common/link/nls/pl/i18n.js +6 -0
- data/vendor/assets/javascripts/aloha/plugins/common/link/nls/ru/i18n.js +6 -0
- data/vendor/assets/javascripts/aloha/plugins/common/list/lib/list-plugin.js +849 -0
- data/vendor/assets/javascripts/aloha/plugins/common/list/nls/de/i18n.js +1 -0
- data/vendor/assets/javascripts/aloha/plugins/common/list/nls/eo/i18n.js +1 -0
- data/vendor/assets/javascripts/aloha/plugins/common/list/nls/fi/i18n.js +1 -0
- data/vendor/assets/javascripts/aloha/plugins/common/list/nls/fr/i18n.js +1 -0
- data/vendor/assets/javascripts/aloha/plugins/common/list/nls/i18n.js +9 -0
- data/vendor/assets/javascripts/aloha/plugins/common/list/nls/it/i18n.js +1 -0
- data/vendor/assets/javascripts/aloha/plugins/common/list/nls/ru/i18n.js +1 -0
- data/vendor/assets/javascripts/aloha/plugins/common/list/package.json +1 -0
- data/vendor/assets/javascripts/aloha/plugins/common/paste/README.md +3 -0
- data/vendor/assets/javascripts/aloha/plugins/common/paste/lib/paste-plugin.js +221 -0
- data/vendor/assets/javascripts/aloha/plugins/common/paste/package.json +8 -0
- data/vendor/assets/javascripts/aloha/plugins/common/table/css/table.css +160 -0
- data/vendor/assets/javascripts/aloha/plugins/common/table/img/down.cur +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/table/img/left.cur +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/table/img/table_layout.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/table/img/wai-green.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/table/img/wai-red.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/table/lib/table-cell.js +463 -0
- data/vendor/assets/javascripts/aloha/plugins/common/table/lib/table-create-layer.js +210 -0
- data/vendor/assets/javascripts/aloha/plugins/common/table/lib/table-plugin-utils.js +355 -0
- data/vendor/assets/javascripts/aloha/plugins/common/table/lib/table-plugin.js +1498 -0
- data/vendor/assets/javascripts/aloha/plugins/common/table/lib/table-selection.js +374 -0
- data/vendor/assets/javascripts/aloha/plugins/common/table/lib/table.js +1529 -0
- data/vendor/assets/javascripts/aloha/plugins/common/table/nls/de/i18n.js +1 -0
- data/vendor/assets/javascripts/aloha/plugins/common/table/nls/eo/i18n.js +1 -0
- data/vendor/assets/javascripts/aloha/plugins/common/table/nls/fi/i18n.js +1 -0
- data/vendor/assets/javascripts/aloha/plugins/common/table/nls/fr/i18n.js +1 -0
- data/vendor/assets/javascripts/aloha/plugins/common/table/nls/i18n.js +11 -0
- data/vendor/assets/javascripts/aloha/plugins/common/table/nls/it/i18n.js +1 -0
- data/vendor/assets/javascripts/aloha/plugins/common/table/nls/pl/i18n.js +1 -0
- data/vendor/assets/javascripts/aloha/plugins/common/table/nls/ru/i18n.js +1 -0
- data/vendor/assets/javascripts/aloha/plugins/common/table/package.json +1 -0
- data/vendor/assets/javascripts/aloha/plugins/common/undo/demo/index.css +49 -0
- data/vendor/assets/javascripts/aloha/plugins/common/undo/demo/index.html +85 -0
- data/vendor/assets/javascripts/aloha/plugins/common/undo/lib/undo-plugin.js +134 -0
- data/vendor/assets/javascripts/aloha/plugins/common/undo/package.json +7 -0
- data/vendor/assets/javascripts/aloha/plugins/common/undo/vendor/diff_match_patch_uncompressed.js +2155 -0
- data/vendor/assets/javascripts/aloha/plugins/common/undo/vendor/undo.js +119 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/attributes/README +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/attributes/css/attributes.css +12 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/attributes/lib/attributes-plugin.js +217 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/attributes/nls/de/i18n.js +1 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/attributes/nls/en/i18n.js +1 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/attributes/nls/i18n.js +5 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/browser/README +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/browser/css/browser.css +360 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/browser/css/browser.jqgrid.css +374 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/browser/css/browsercombined.css +752 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/browser/css/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/browser/css/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/browser/css/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/browser/css/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/browser/css/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/browser/css/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/browser/css/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/browser/css/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/browser/css/images/ui-icons_222222_256x240.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/browser/css/images/ui-icons_2e83ff_256x240.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/browser/css/images/ui-icons_454545_256x240.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/browser/css/images/ui-icons_888888_256x240.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/browser/css/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/browser/css/jquery-ui-1.8.13.custom.css +319 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/browser/css/jstree.css +88 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/browser/css/throbber.gif +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/browser/css/ui.jqgrid.css +148 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/browser/img/arrow-000-medium.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/browser/img/arrow-180.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/browser/img/arrow-315-medium.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/browser/img/arrow-stop-180.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/browser/img/arrow-stop.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/browser/img/arrow.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/browser/img/control-stop-square-small.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/browser/img/folder-horizontal-open.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/browser/img/folder-open.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/browser/img/gcn-icons/gcn-icon-file.gif +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/browser/img/gcn-icons/gcn-icon-image.gif +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/browser/img/gcn-icons/gcn-icon-page.gif +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/browser/img/magnifier-left.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/browser/img/page.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/browser/img/picture.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/browser/img/sort-alphabet-descending.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/browser/img/sort-alphabet.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/browser/img/throbber.gif +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/browser/lib/browser-plugin.js +10 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/browser/lib/browser.js +1103 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/browser/lib/locale.js +26 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/browser/nls/de.json +1 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/browser/nls/de/i18n.js +18 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/browser/nls/en.json +1 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/browser/nls/en/i18n.js +18 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/browser/nls/i18n.js +4 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/browser/vendor/grid.locale.de.js +134 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/browser/vendor/grid.locale.en.js +129 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/browser/vendor/jquery.jqGrid.js +467 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/browser/vendor/jquery.jstree.js +4544 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/browser/vendor/jquery.ui.js +756 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/browser/vendor/ui-layout.js +108 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/cite/README +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/cite/css/cite.css +49 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/cite/img/blockquote.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/cite/img/icon_cite.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/cite/lib/cite-plugin.js +539 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/cite/nls/de/i18n.js +1 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/cite/nls/en/i18n.js +1 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/cite/nls/i18n.js +4 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/cite/package.json +1 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/comments/img/add-icon.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/comments/img/add.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/comments/img/comments.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/comments/img/hr.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/comments/img/textbox.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/comments/package.json +1 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/comments/src/comments.css +442 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/comments/src/comments.js +669 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/AGPL3 +661 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/LICENSE +25 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/README.md +5 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/TODO.md +2 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/demo/index.css +47 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/demo/index.html +101 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/demo/migration/index.css +189 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/demo/migration/index.html +321 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/demo/specs/DragnDropnImage.graphml +677 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/demo/style.css +47 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/demo/upload.php +26 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/i18n/en.json +1 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/i18n/fr.json +1 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/img/cross.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/img/hourglass.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/img/loading.gif +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/img/page.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/img/tick.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/lib/draganddropfiles-plugin.js +4 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/lib/dragndropfiles.css +110 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/lib/dragndropfiles.js +349 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/lib/dropfilesrepository.js +365 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/package.json +1 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/formatlesspaste/README.md +3 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/formatlesspaste/css/formatless.css +7 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/formatlesspaste/img/button.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/formatlesspaste/lib/formatlesshandler.js +67 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/formatlesspaste/lib/formatlesspaste-plugin.js +103 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/formatlesspaste/nls/de/i18n.js +1 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/formatlesspaste/nls/i18n.js +7 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/formatlesspaste/package.json +8 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/headerids/README +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/headerids/css/headerids.css +8 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/headerids/lib/headerids-plugin.js +127 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/headerids/nls/de/i18n.js +1 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/headerids/nls/en/i18n.js +1 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/headerids/nls/i18n.js +5 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/hints/dep/jquery.poshytip.js +470 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/hints/i18n/de.json +1 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/hints/i18n/en.json +1 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/hints/img/tip-twitter_arrows.gif +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/hints/package.json +9 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/hints/src/hints.css +61 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/hints/src/hints.js +49 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/README +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ad.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ae.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/af.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ag.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ai.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/al.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/am.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/an.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ao.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ar.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/as.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/at.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/au.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/aw.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ax.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/az.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ba.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/bb.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/bd.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/be.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/bf.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/bg.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/bh.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/bi.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/bj.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/bm.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/bn.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/bo.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/br.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/bs.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/bt.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/bv.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/bw.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/by.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/bz.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ca.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/catalonia.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/cc.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/cd.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/cf.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/cg.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ch.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ci.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ck.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/cl.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/cm.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/cn.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/co.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/cr.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/cs.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/cu.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/cv.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/cx.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/cy.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/cz.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/de.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/dj.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/dk.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/dm.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/do.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/dz.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ec.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ee.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/eg.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/eh.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/en.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/er.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/es.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/et.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/europeanunion.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/fam.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/fi.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/fj.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/fk.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/fm.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/fo.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/fr.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ga.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/gb.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/gd.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ge.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/gf.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/gh.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/gi.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/gl.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/gm.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/gn.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/gp.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/gq.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/gr.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/gs.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/gt.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/gu.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/gw.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/gy.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/hk.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/hm.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/hn.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/hr.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ht.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/hu.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/id.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ie.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/il.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/in.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/io.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/iq.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ir.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/is.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/it.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/jm.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/jo.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/jp.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ke.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/kg.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/kh.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ki.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/km.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/kn.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/kp.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/kr.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/kw.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ky.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/kz.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/la.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/lb.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/lc.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/li.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/lk.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/lr.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ls.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/lt.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/lu.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/lv.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ly.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ma.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/mc.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/md.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/me.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/mg.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/mh.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/mk.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ml.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/mm.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/mn.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/mo.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/mp.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/mq.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/mr.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ms.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/mt.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/mu.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/mv.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/mw.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/mx.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/my.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/mz.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/na.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/nc.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ne.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/nf.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ng.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ni.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/nl.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/no.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/np.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/nr.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/nu.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/nz.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/om.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/pa.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/pe.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/pf.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/pg.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ph.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/pk.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/pl.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/pm.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/pn.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/pr.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ps.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/pt.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/pw.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/py.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/qa.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/re.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ro.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/rs.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ru.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/rw.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/sa.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/sb.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/sc.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/scotland.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/sd.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/se.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/sg.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/sh.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/si.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/sj.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/sk.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/sl.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/sm.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/sn.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/so.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/sr.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/st.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/sv.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/sy.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/sz.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/tc.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/td.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/tf.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/tg.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/th.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/tj.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/tk.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/tl.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/tm.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/tn.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/to.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/tr.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/tt.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/tv.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/tw.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/tz.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ua.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ug.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/um.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/us.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/uy.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/uz.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/va.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/vc.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ve.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/vg.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/vi.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/vn.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/vu.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/wales.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/wf.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ws.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ye.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/yt.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/za.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/zm.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/zw.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/lib/linkbrowser-plugin.js +153 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/nls/de/i18n.js +1 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/nls/fr/i18n.js +1 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/nls/i18n.js +7 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/nls/pl/i18n.js +1 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/nls/ru/i18n.js +1 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkchecker/demo/index.css +49 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkchecker/demo/index.html +82 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkchecker/i18n/en.json +1 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkchecker/package.json +1 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkchecker/proxy.php +244 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkchecker/src/linkchecker.css +14 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkchecker/src/linkchecker.js +256 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/listenforcer/lib/listenforcer-plugin.js +165 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/metaview/README +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/metaview/css/metaview.css +86 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/metaview/img/anchor.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/metaview/img/blockquote.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/metaview/img/button.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/metaview/img/caption.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/metaview/img/cite.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/metaview/img/dd.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/metaview/img/div.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/metaview/img/dl.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/metaview/img/dt.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/metaview/img/h1.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/metaview/img/h2.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/metaview/img/h3.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/metaview/img/h4.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/metaview/img/h5.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/metaview/img/h6.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/metaview/img/icon_cite.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/metaview/img/p.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/metaview/img/pre.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/metaview/img/table.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/metaview/img/td.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/metaview/img/th.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/metaview/lib/metaview-plugin.js +82 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/metaview/nls/de.json +1 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/metaview/nls/de/i18n.js +1 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/metaview/nls/en.json +1 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/metaview/nls/en/i18n.js +1 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/metaview/nls/i18n.js +5 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/numerated-headers/README +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/numerated-headers/css/numerated-headers.css +7 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/numerated-headers/demo/index.css +189 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/numerated-headers/demo/index.html +139 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/numerated-headers/demo/js/aloha-config.js +115 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/numerated-headers/img/headers.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/numerated-headers/lib/numerated-headers-plugin.js +233 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/numerated-headers/nls/de/i18n.js +1 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/numerated-headers/nls/en/i18n.js +1 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/numerated-headers/nls/i18n.js +5 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/profiler/css/profiler.css +34 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/profiler/lib/profiler-plugin.js +285 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/ribbon/LICENSE.md +662 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/ribbon/README.md +8 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/ribbon/css/ribbon.css +10 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/ribbon/lib/ribbon-plugin.js +186 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/ribbon/package.json +1 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/toc/i18n/de.json +1 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/toc/i18n/en.json +1 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/toc/package.json +1 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/toc/src/toc.js +350 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/vie/LICENSE +22 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/vie/README.markdown +65 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/vie/demo/index.html +93 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/vie/img/cms-decoupled-communications.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/vie/package.json +1 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/vie/src/backbone-min.js +27 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/vie/src/underscore-min.js +25 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/vie/src/vie-aloha.js +74 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/vie/src/vie-collectionmanager.js +70 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/vie/src/vie-containermanager.js +263 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/vie/src/vie.js +20 -0
- data/vendor/assets/stylesheets/aloha.css +1 -0
- metadata +1133 -0
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,1615 @@
|
|
1
|
+
/*
|
2
|
+
* Aloha Image Plugin - Allow image manipulation in Aloha Editor
|
3
|
+
*
|
4
|
+
* Author & Copyright (c) 2011 Gentics Software GmbH
|
5
|
+
* aloha-sales@gentics.com
|
6
|
+
* Contributors
|
7
|
+
* Johannes Schüth - http://jotschi.de
|
8
|
+
* Nicolas karageuzian - http://nka.me/
|
9
|
+
* Benjamin Athur Lupton - http://www.balupton.com/
|
10
|
+
* Thomas Lete
|
11
|
+
* Nils Dehl
|
12
|
+
* Christopher Hlubek
|
13
|
+
* Edward Tsech
|
14
|
+
* Haymo Meran
|
15
|
+
*
|
16
|
+
* Licensed under the terms of http://www.aloha-editor.com/license.html
|
17
|
+
*/
|
18
|
+
|
19
|
+
define([
|
20
|
+
// js
|
21
|
+
'aloha/jquery',
|
22
|
+
'aloha/plugin',
|
23
|
+
'aloha/floatingmenu',
|
24
|
+
'i18n!aloha/nls/i18n',
|
25
|
+
'i18n!image/nls/i18n',
|
26
|
+
'jquery-plugin!image/vendor/ui/jquery-ui-1.8.10.custom.min',
|
27
|
+
'jquery-plugin!image/vendor/jcrop/jquery.jcrop.min',
|
28
|
+
'jquery-plugin!image/vendor/mousewheel/mousewheel',
|
29
|
+
// css
|
30
|
+
'css!image/css/image.css',
|
31
|
+
'css!image/vendor/ui/ui-lightness/jquery-ui-1.8.10.cropnresize.css',
|
32
|
+
'css!image/vendor/jcrop/jquery.jcrop.css'
|
33
|
+
],
|
34
|
+
function AlohaImagePlugin ( aQuery, Plugin, FloatingMenu, i18nCore, i18n ) {
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
var jQuery = aQuery;
|
39
|
+
var $ = aQuery;
|
40
|
+
var GENTICS = window.GENTICS, Aloha = window.Aloha;
|
41
|
+
|
42
|
+
// Attributes manipulation utilities
|
43
|
+
// Aloha team may want to factorize, it could be useful for other plugins
|
44
|
+
// Prototypes
|
45
|
+
String.prototype.toInteger = String.prototype.toInteger || function() {
|
46
|
+
return parseInt(String(this).replace(/px$/,'')||0,10);
|
47
|
+
};
|
48
|
+
String.prototype.toFloat = String.prototype.toInteger || function() {
|
49
|
+
return parseFloat(String(this).replace(/px$/,'')||0,10);
|
50
|
+
};
|
51
|
+
Number.prototype.toInteger = Number.prototype.toInteger || String.prototype.toInteger;
|
52
|
+
Number.prototype.toFloat = Number.prototype.toFloat || String.prototype.toFloat;
|
53
|
+
|
54
|
+
// Insert jQuery Prototypes
|
55
|
+
jQuery.extend(true, jQuery.fn, {
|
56
|
+
increase: jQuery.fn.increase || function(attr) {
|
57
|
+
var obj = jQuery(this), value, newValue;
|
58
|
+
// Check
|
59
|
+
if ( !obj.length ) {
|
60
|
+
return obj;
|
61
|
+
}
|
62
|
+
// Calculate
|
63
|
+
value = obj.css(attr).toFloat();
|
64
|
+
newValue = Math.round((value||1)*1.2);
|
65
|
+
// Apply
|
66
|
+
if (value == newValue) { // when value is 2, won't increase
|
67
|
+
newValue++;
|
68
|
+
}
|
69
|
+
// Apply
|
70
|
+
obj.css(attr,newValue);
|
71
|
+
// Chain
|
72
|
+
return obj;
|
73
|
+
},
|
74
|
+
decrease: jQuery.fn.decrease || function(attr) {
|
75
|
+
var obj = jQuery(this), value, newValue;
|
76
|
+
// Check
|
77
|
+
if ( !obj.length ) {
|
78
|
+
return obj;
|
79
|
+
}
|
80
|
+
// Calculate
|
81
|
+
value = obj.css(attr).toFloat();
|
82
|
+
newValue = Math.round((value||0)*0.8);
|
83
|
+
// Apply
|
84
|
+
if (value == newValue && newValue >0) { // when value is 2, won't increase
|
85
|
+
newValue--;
|
86
|
+
}
|
87
|
+
obj.css(attr,newValue);
|
88
|
+
// Chain
|
89
|
+
return obj;
|
90
|
+
}
|
91
|
+
});
|
92
|
+
|
93
|
+
// Create and register Image Plugin
|
94
|
+
return Plugin.create('image', {
|
95
|
+
|
96
|
+
languages: ['en', 'fr', 'de', 'ru', 'cz'],
|
97
|
+
|
98
|
+
defaultSettings: {
|
99
|
+
'maxWidth': 1600,
|
100
|
+
'minWidth': 3,
|
101
|
+
'maxHeight': 1200,
|
102
|
+
'minHeight': 3,
|
103
|
+
// This setting will correct manually values that are out of bounds
|
104
|
+
'autoCorrectManualInput': true,
|
105
|
+
// This setting will define a fixed aspect ratio for all resize actions
|
106
|
+
'fixedAspectRatio' : false,
|
107
|
+
// When enabled this setting will order the plugin to automatically resize images to given bounds
|
108
|
+
'autoResize': false,
|
109
|
+
//Image manipulation options - ONLY in default config section
|
110
|
+
ui: {
|
111
|
+
oneTab : false, //Place all ui components within one tab
|
112
|
+
insert : true,
|
113
|
+
reset : true,
|
114
|
+
aspectRatioToggle: true, // Toggle button for the aspect ratio
|
115
|
+
align : true, // Menu elements to show/hide in menu
|
116
|
+
resize : true, // Resize buttons
|
117
|
+
meta : true,
|
118
|
+
margin : true,
|
119
|
+
crop : true,
|
120
|
+
resizable : true, // Resizable ui-drag image
|
121
|
+
handles : 'ne, se, sw, nw'
|
122
|
+
},
|
123
|
+
|
124
|
+
/**
|
125
|
+
* Crop callback is triggered after the user clicked accept to accept his crop
|
126
|
+
* @param image jquery image object reference
|
127
|
+
* @param props cropping properties
|
128
|
+
*/
|
129
|
+
onCropped: function ($image, props) {
|
130
|
+
Aloha.Log.info('Default onCropped invoked', $image, props);
|
131
|
+
},
|
132
|
+
|
133
|
+
/**
|
134
|
+
* Reset callback is triggered before the internal reset procedure is applied
|
135
|
+
* if this function returns true, then the reset has been handled by the callback
|
136
|
+
* which means that no other reset will be applied
|
137
|
+
* if false is returned the internal reset procedure will be applied
|
138
|
+
* @param image jquery image object reference
|
139
|
+
* @return true if a reset has been applied, false otherwise
|
140
|
+
*/
|
141
|
+
onReset: function ($image) {
|
142
|
+
Aloha.Log.info('Default onReset invoked', $image);
|
143
|
+
return false;
|
144
|
+
},
|
145
|
+
|
146
|
+
/**
|
147
|
+
* Example callback method which gets called while the resize process is beeing executed.
|
148
|
+
*/
|
149
|
+
onResize: function ($image) {
|
150
|
+
Aloha.Log.info('Default onResize invoked', $image);
|
151
|
+
},
|
152
|
+
|
153
|
+
/**
|
154
|
+
* Resize callback is triggered after the internal resize procedure is applied.
|
155
|
+
*/
|
156
|
+
onResized: function ($image) {
|
157
|
+
Aloha.Log.info('Default onResized invoked', $image);
|
158
|
+
}
|
159
|
+
},
|
160
|
+
|
161
|
+
/**
|
162
|
+
* Internal callback hook which gets invoked when cropping has been finished
|
163
|
+
*/
|
164
|
+
_onCropped: function ($image, props) {
|
165
|
+
|
166
|
+
$('#' + this.imgResizeHeightField.id).val($image.height());
|
167
|
+
$('#' + this.imgResizeWidthField.id).val($image.width());
|
168
|
+
|
169
|
+
|
170
|
+
$('body').trigger('aloha-image-cropped', [$image, props]);
|
171
|
+
|
172
|
+
// Call the custom onCropped function
|
173
|
+
this.onCropped($image, props);
|
174
|
+
},
|
175
|
+
|
176
|
+
/**
|
177
|
+
* Internal callback hook which gets invoked when resetting images
|
178
|
+
*/
|
179
|
+
_onReset: function ($image) {
|
180
|
+
|
181
|
+
$('#' + this.imgResizeHeightField.id).val($image.height());
|
182
|
+
$('#' + this.imgResizeWidthField.id).val($image.width());
|
183
|
+
|
184
|
+
// No default behaviour defined besides event triggering
|
185
|
+
$('body').trigger('aloha-image-reset', $image);
|
186
|
+
|
187
|
+
// Call the custom resize function
|
188
|
+
return this.onReset($image);
|
189
|
+
},
|
190
|
+
|
191
|
+
/**
|
192
|
+
* Internal callback hook which gets invoked while the image is beeing resized
|
193
|
+
*/
|
194
|
+
_onResize: function ($image) {
|
195
|
+
|
196
|
+
$('#' + this.imgResizeHeightField.id).val($image.height());
|
197
|
+
$('#' + this.imgResizeWidthField.id).val($image.width());
|
198
|
+
|
199
|
+
// No default behaviour defined besides event triggering
|
200
|
+
$('body').trigger('aloha-image-resize', $image);
|
201
|
+
|
202
|
+
// Call the custom resize function
|
203
|
+
this.onResize($image);
|
204
|
+
},
|
205
|
+
|
206
|
+
/**
|
207
|
+
* Internal callback hook which gets invoked when the current resizing action has stopped
|
208
|
+
*/
|
209
|
+
_onResized: function ($image) {
|
210
|
+
|
211
|
+
$('#' + this.imgResizeHeightField.id).val($image.height());
|
212
|
+
$('#' + this.imgResizeWidthField.id).val($image.width());
|
213
|
+
|
214
|
+
$('body').trigger('aloha-image-resized', $image);
|
215
|
+
|
216
|
+
// Call the custom resize function
|
217
|
+
this.onResized($image);
|
218
|
+
},
|
219
|
+
|
220
|
+
/**
|
221
|
+
* The image that is currently edited
|
222
|
+
*/
|
223
|
+
imageObj: null,
|
224
|
+
|
225
|
+
/**
|
226
|
+
* The Jcrop API reference
|
227
|
+
* this is needed to be able to destroy the cropping frame later on
|
228
|
+
* the variable is linked to the api object whilst cropping, or set to null otherwise
|
229
|
+
* strange, but done as documented http://deepliquid.com/content/Jcrop_API.html
|
230
|
+
*/
|
231
|
+
jcAPI: null,
|
232
|
+
|
233
|
+
|
234
|
+
/**
|
235
|
+
* State variable for the aspect ratio toggle feature
|
236
|
+
*/
|
237
|
+
keepAspectRatio: false,
|
238
|
+
|
239
|
+
/**
|
240
|
+
* Variable that will hold the start aspect ratio. This ratio will be used once starResize will be called.
|
241
|
+
*/
|
242
|
+
startAspectRatio: false,
|
243
|
+
|
244
|
+
/**
|
245
|
+
* This will contain an image's original properties to be able to undo previous settings
|
246
|
+
*
|
247
|
+
* when an image is clicked for the first time, a new object will be added to the array
|
248
|
+
* {
|
249
|
+
* obj : [the image object reference],
|
250
|
+
* src : [the original src url],
|
251
|
+
* width : [initial width],
|
252
|
+
* height : [initial height]
|
253
|
+
* }
|
254
|
+
*
|
255
|
+
* when an image is clicked the second time, the array will be checked for the image object
|
256
|
+
* referenct, to prevent for double entries
|
257
|
+
*/
|
258
|
+
restoreProps: [],
|
259
|
+
|
260
|
+
objectTypeFilter: [],
|
261
|
+
|
262
|
+
/**
|
263
|
+
* Plugin initialization method
|
264
|
+
*/
|
265
|
+
init: function() {
|
266
|
+
|
267
|
+
var that = this;
|
268
|
+
|
269
|
+
var imagePluginUrl = Aloha.getPluginUrl('image');
|
270
|
+
|
271
|
+
// Extend the default settings with the custom ones (done by default)
|
272
|
+
this.startAspectRatio = this.settings.fixedAspectRatio;
|
273
|
+
this.config = this.defaultSettings;
|
274
|
+
this.settings = jQuery.extend(true, this.defaultSettings, this.settings);
|
275
|
+
|
276
|
+
that.initializeButtons();
|
277
|
+
that.bindInteractions();
|
278
|
+
that.subscribeEvents();
|
279
|
+
|
280
|
+
},
|
281
|
+
|
282
|
+
/**
|
283
|
+
* Create buttons
|
284
|
+
*/
|
285
|
+
initializeButtons: function() {
|
286
|
+
|
287
|
+
var that = this,
|
288
|
+
tabInsert = i18nCore.t('floatingmenu.tab.insert'),
|
289
|
+
tabImage = i18n.t('floatingmenu.tab.img'),
|
290
|
+
tabFormatting = i18n.t('floatingmenu.tab.formatting'),
|
291
|
+
tabCrop = i18n.t('floatingmenu.tab.crop'),
|
292
|
+
tabResize = i18n.t('floatingmenu.tab.resize');
|
293
|
+
|
294
|
+
FloatingMenu.createScope(this.name, 'Aloha.empty');
|
295
|
+
|
296
|
+
if (this.settings.ui.insert) {
|
297
|
+
var tabId = this.settings.ui.oneTab ? tabImage : tabInsert;
|
298
|
+
that._addUIInsertButton(tabId);
|
299
|
+
}
|
300
|
+
|
301
|
+
if (this.settings.ui.meta) {
|
302
|
+
var tabId = this.settings.ui.oneTab ? tabImage : tabImage;
|
303
|
+
that._addUIMetaButtons(tabId);
|
304
|
+
}
|
305
|
+
|
306
|
+
if (this.settings.ui.reset) {
|
307
|
+
var tabId = this.settings.ui.reset ? tabImage : tabImage;
|
308
|
+
that._addUIResetButton(tabId);
|
309
|
+
}
|
310
|
+
|
311
|
+
if (this.settings.ui.align) {
|
312
|
+
var tabId = this.settings.ui.oneTab ? tabImage : tabFormatting;
|
313
|
+
that._addUIAlignButtons(tabId);
|
314
|
+
}
|
315
|
+
|
316
|
+
if (this.settings.ui.margin) {
|
317
|
+
var tabId = this.settings.ui.oneTab ? tabImage : tabFormatting;
|
318
|
+
that._addUIMarginButtons(tabId);
|
319
|
+
}
|
320
|
+
|
321
|
+
if (this.settings.ui.crop) {
|
322
|
+
var tabId = this.settings.ui.oneTab ? tabImage : tabCrop;
|
323
|
+
that._addUICropButtons(tabId);
|
324
|
+
}
|
325
|
+
|
326
|
+
if (this.settings.ui.resize) {
|
327
|
+
var tabId = this.settings.ui.oneTab ? tabImage : tabResize;
|
328
|
+
that._addUIResizeButtons(tabId);
|
329
|
+
}
|
330
|
+
|
331
|
+
if (this.settings.ui.aspectRatioToggle) {
|
332
|
+
var tabId = this.settings.ui.oneTab ? tabImage : tabResize;
|
333
|
+
that.__addUIAspectRatioToggleButton(tabId);
|
334
|
+
}
|
335
|
+
|
336
|
+
// TODO fix the function and reenable this button
|
337
|
+
//that._addNaturalSizeButton();
|
338
|
+
},
|
339
|
+
|
340
|
+
|
341
|
+
/**
|
342
|
+
* Adds the aspect ratio toggle button to the floating menu
|
343
|
+
*/
|
344
|
+
__addUIAspectRatioToggleButton: function(tabId) {
|
345
|
+
var that = this;
|
346
|
+
var toggleButton = new Aloha.ui.Button({
|
347
|
+
'size' : 'small',
|
348
|
+
'tooltip' : i18n.t('button.toggle.tooltip'),
|
349
|
+
'toggle' : true,
|
350
|
+
'iconClass' : 'cnr-ratio',
|
351
|
+
'onclick' : function (btn, event) {
|
352
|
+
that.toggleKeepAspectRatio();
|
353
|
+
}
|
354
|
+
});
|
355
|
+
|
356
|
+
|
357
|
+
// If the setting has been set to a number or false we need to activate the
|
358
|
+
// toggle button to indicate that the aspect ratio will be preserved.
|
359
|
+
if (this.settings.fixedAspectRatio != false) {
|
360
|
+
toggleButton.pressed = true;
|
361
|
+
this.keepAspectRatio = true;
|
362
|
+
}
|
363
|
+
|
364
|
+
FloatingMenu.addButton(
|
365
|
+
that.name,
|
366
|
+
toggleButton,
|
367
|
+
tabId,
|
368
|
+
20
|
369
|
+
);
|
370
|
+
|
371
|
+
|
372
|
+
},
|
373
|
+
|
374
|
+
|
375
|
+
/**
|
376
|
+
* Adds the reset button to the floating menu for the given tab
|
377
|
+
*/
|
378
|
+
_addUIResetButton: function(tabId) {
|
379
|
+
var that = this;
|
380
|
+
// Reset button
|
381
|
+
var resetButton = new Aloha.ui.Button({
|
382
|
+
'size' : 'small',
|
383
|
+
'tooltip' : i18n.t('Reset'),
|
384
|
+
'toggle' : false,
|
385
|
+
'iconClass' : 'cnr-reset',
|
386
|
+
'onclick' : function (btn, event) {
|
387
|
+
that.reset();
|
388
|
+
}
|
389
|
+
});
|
390
|
+
|
391
|
+
FloatingMenu.addButton(
|
392
|
+
that.name,
|
393
|
+
resetButton,
|
394
|
+
tabId,
|
395
|
+
2
|
396
|
+
);
|
397
|
+
},
|
398
|
+
|
399
|
+
/**
|
400
|
+
* Adds the insert button to the floating menu
|
401
|
+
*/
|
402
|
+
_addUIInsertButton: function(tabId) {
|
403
|
+
var that = this;
|
404
|
+
this.insertImgButton = new Aloha.ui.Button({
|
405
|
+
'name' : 'insertimage',
|
406
|
+
'iconClass': 'aloha-button aloha-image-insert',
|
407
|
+
'size' : 'small',
|
408
|
+
'onclick' : function () { that.insertImg(); },
|
409
|
+
'tooltip' : i18n.t('button.addimg.tooltip'),
|
410
|
+
'toggle' : false
|
411
|
+
});
|
412
|
+
|
413
|
+
FloatingMenu.addButton(
|
414
|
+
'Aloha.continuoustext',
|
415
|
+
this.insertImgButton,
|
416
|
+
tabId,
|
417
|
+
1
|
418
|
+
);
|
419
|
+
},
|
420
|
+
|
421
|
+
/**
|
422
|
+
* Adds the ui meta fields (search, title) to the floating menu.
|
423
|
+
*/
|
424
|
+
_addUIMetaButtons: function(tabId) {
|
425
|
+
var that = this;
|
426
|
+
var imgSrcLabel = new Aloha.ui.Button({
|
427
|
+
'label': i18n.t('field.img.src.label'),
|
428
|
+
'tooltip': i18n.t('field.img.src.tooltip'),
|
429
|
+
'size': 'small'
|
430
|
+
});
|
431
|
+
this.imgSrcField = new Aloha.ui.AttributeField({'name' : 'imgsrc'});
|
432
|
+
this.imgSrcField.setObjectTypeFilter( this.objectTypeFilter );
|
433
|
+
|
434
|
+
// add the title field for images
|
435
|
+
var imgTitleLabel = new Aloha.ui.Button({
|
436
|
+
'label': i18n.t('field.img.title.label'),
|
437
|
+
'tooltip': i18n.t('field.img.title.tooltip'),
|
438
|
+
'size': 'small'
|
439
|
+
});
|
440
|
+
|
441
|
+
this.imgTitleField = new Aloha.ui.AttributeField();
|
442
|
+
this.imgTitleField.setObjectTypeFilter();
|
443
|
+
FloatingMenu.addButton(
|
444
|
+
this.name,
|
445
|
+
this.imgSrcField,
|
446
|
+
tabId,
|
447
|
+
1
|
448
|
+
);
|
449
|
+
|
450
|
+
},
|
451
|
+
|
452
|
+
/**
|
453
|
+
* Adds the ui align buttons to the floating menu
|
454
|
+
*/
|
455
|
+
_addUIAlignButtons: function(tabId) {
|
456
|
+
var that = this;
|
457
|
+
|
458
|
+
var alignLeftButton = new Aloha.ui.Button({
|
459
|
+
'iconClass': 'aloha-img aloha-image-align-left',
|
460
|
+
'size': 'small',
|
461
|
+
'onclick' : function() {
|
462
|
+
var el = jQuery(that.findImgMarkup());
|
463
|
+
el.add(el.parent()).css('float', 'left');
|
464
|
+
},
|
465
|
+
'tooltip': i18n.t('button.img.align.left.tooltip')
|
466
|
+
});
|
467
|
+
|
468
|
+
FloatingMenu.addButton(
|
469
|
+
that.name,
|
470
|
+
alignLeftButton,
|
471
|
+
tabId,
|
472
|
+
1
|
473
|
+
);
|
474
|
+
|
475
|
+
var alignRightButton = new Aloha.ui.Button({
|
476
|
+
'iconClass': 'aloha-img aloha-image-align-right',
|
477
|
+
'size': 'small',
|
478
|
+
'onclick' : function() {
|
479
|
+
var el = jQuery(that.findImgMarkup());
|
480
|
+
el.add(el.parent()).css('float', 'right');
|
481
|
+
},
|
482
|
+
'tooltip': i18n.t('button.img.align.right.tooltip')
|
483
|
+
});
|
484
|
+
|
485
|
+
FloatingMenu.addButton(
|
486
|
+
that.name,
|
487
|
+
alignRightButton,
|
488
|
+
tabId,
|
489
|
+
1
|
490
|
+
);
|
491
|
+
|
492
|
+
var alignNoneButton = new Aloha.ui.Button({
|
493
|
+
'iconClass': 'aloha-img aloha-image-align-none',
|
494
|
+
'size': 'small',
|
495
|
+
'onclick' : function() {
|
496
|
+
var el = jQuery(that.findImgMarkup());
|
497
|
+
el.add(el.parent()).css({
|
498
|
+
'float': 'none',
|
499
|
+
display: 'inline-block'
|
500
|
+
});
|
501
|
+
},
|
502
|
+
'tooltip': i18n.t('button.img.align.none.tooltip')
|
503
|
+
});
|
504
|
+
|
505
|
+
FloatingMenu.addButton(
|
506
|
+
that.name,
|
507
|
+
alignNoneButton,
|
508
|
+
tabId,
|
509
|
+
1
|
510
|
+
);
|
511
|
+
|
512
|
+
},
|
513
|
+
|
514
|
+
/**
|
515
|
+
* Adds the ui margin buttons to the floating menu
|
516
|
+
*/
|
517
|
+
_addUIMarginButtons: function(tabId) {
|
518
|
+
var that = this;
|
519
|
+
var incPadding = new Aloha.ui.Button({
|
520
|
+
iconClass: 'aloha-img aloha-image-padding-increase',
|
521
|
+
toggle: false,
|
522
|
+
size: 'small',
|
523
|
+
onclick: function() {
|
524
|
+
jQuery(that.findImgMarkup()).increase('padding');
|
525
|
+
},
|
526
|
+
tooltip: i18n.t('padding.increase')
|
527
|
+
});
|
528
|
+
FloatingMenu.addButton(
|
529
|
+
that.name,
|
530
|
+
incPadding,
|
531
|
+
tabId,
|
532
|
+
2
|
533
|
+
);
|
534
|
+
|
535
|
+
var decPadding = new Aloha.ui.Button({
|
536
|
+
iconClass: 'aloha-img aloha-image-padding-decrease',
|
537
|
+
toggle: false,
|
538
|
+
size: 'small',
|
539
|
+
onclick: function() {
|
540
|
+
jQuery(that.findImgMarkup()).decrease('padding');
|
541
|
+
},
|
542
|
+
tooltip: i18n.t('padding.decrease')
|
543
|
+
});
|
544
|
+
FloatingMenu.addButton(
|
545
|
+
that.name,
|
546
|
+
decPadding,
|
547
|
+
tabId,
|
548
|
+
2
|
549
|
+
);
|
550
|
+
},
|
551
|
+
|
552
|
+
/**
|
553
|
+
* Adds the crop buttons to the floating menu
|
554
|
+
*/
|
555
|
+
_addUICropButtons: function (tabId) {
|
556
|
+
var that = this;
|
557
|
+
|
558
|
+
FloatingMenu.createScope('Aloha.img', ['Aloha.global']);
|
559
|
+
|
560
|
+
this.cropButton = new Aloha.ui.Button({
|
561
|
+
'size' : 'small',
|
562
|
+
'tooltip' : i18n.t('Crop'),
|
563
|
+
'toggle' : true,
|
564
|
+
'iconClass' : 'cnr-crop',
|
565
|
+
'onclick' : function (btn, event) {
|
566
|
+
if (btn.pressed) {
|
567
|
+
that.crop();
|
568
|
+
} else {
|
569
|
+
that.endCrop();
|
570
|
+
}
|
571
|
+
}
|
572
|
+
});
|
573
|
+
|
574
|
+
FloatingMenu.addButton(
|
575
|
+
this.name,
|
576
|
+
this.cropButton,
|
577
|
+
tabId,
|
578
|
+
3
|
579
|
+
);
|
580
|
+
|
581
|
+
},
|
582
|
+
|
583
|
+
/**
|
584
|
+
* Adds the resize buttons to the floating menu
|
585
|
+
*/
|
586
|
+
_addUIResizeButtons: function (tabId) {
|
587
|
+
var that = this;
|
588
|
+
|
589
|
+
// Manual resize fields
|
590
|
+
this.imgResizeHeightField = new Aloha.ui.AttributeField();
|
591
|
+
this.imgResizeHeightField.maxValue = that.settings.maxHeight;
|
592
|
+
this.imgResizeHeightField.minValue = that.settings.minHeight;
|
593
|
+
|
594
|
+
this.imgResizeWidthField = new Aloha.ui.AttributeField();
|
595
|
+
this.imgResizeWidthField.maxValue = that.settings.maxWidth;
|
596
|
+
this.imgResizeWidthField.minValue = that.settings.minWidth;
|
597
|
+
|
598
|
+
this.imgResizeWidthField.width = 50;
|
599
|
+
this.imgResizeHeightField.width = 50;
|
600
|
+
|
601
|
+
var widthLabel = new Aloha.ui.Button({
|
602
|
+
'label': i18n.t('width'),
|
603
|
+
'tooltip': i18n.t('width'),
|
604
|
+
'size': 'small'
|
605
|
+
});
|
606
|
+
|
607
|
+
FloatingMenu.addButton(
|
608
|
+
this.name,
|
609
|
+
widthLabel,
|
610
|
+
tabId,
|
611
|
+
30
|
612
|
+
);
|
613
|
+
|
614
|
+
FloatingMenu.addButton(
|
615
|
+
this.name,
|
616
|
+
this.imgResizeWidthField,
|
617
|
+
tabId,
|
618
|
+
40
|
619
|
+
);
|
620
|
+
|
621
|
+
|
622
|
+
var heightLabel = new Aloha.ui.Button({
|
623
|
+
'label': i18n.t('height'),
|
624
|
+
'tooltip': i18n.t('height'),
|
625
|
+
'size': 'small'
|
626
|
+
});
|
627
|
+
|
628
|
+
FloatingMenu.addButton(
|
629
|
+
this.name,
|
630
|
+
heightLabel,
|
631
|
+
tabId,
|
632
|
+
50
|
633
|
+
);
|
634
|
+
|
635
|
+
FloatingMenu.addButton(
|
636
|
+
this.name,
|
637
|
+
this.imgResizeHeightField,
|
638
|
+
tabId,
|
639
|
+
60
|
640
|
+
);
|
641
|
+
|
642
|
+
|
643
|
+
},
|
644
|
+
|
645
|
+
/**
|
646
|
+
* Adds the natural size button to the floating menu
|
647
|
+
*/
|
648
|
+
_addNaturalSizeButton: function () {
|
649
|
+
var that = this;
|
650
|
+
var naturalSize = new Aloha.ui.Button({
|
651
|
+
iconClass: 'aloha-img aloha-image-size-natural',
|
652
|
+
size: 'small',
|
653
|
+
toggle: false,
|
654
|
+
onclick: function() {
|
655
|
+
var img = new Image();
|
656
|
+
img.onload = function() {
|
657
|
+
var myimage = that.findImgMarkup();
|
658
|
+
if (that.settings.ui.resizable) {
|
659
|
+
that.endResize();
|
660
|
+
}
|
661
|
+
jQuery(myimage).css({
|
662
|
+
'width': img.width + 'px',
|
663
|
+
'height': img.height + 'px',
|
664
|
+
'max-width': '',
|
665
|
+
'max-height': ''
|
666
|
+
});
|
667
|
+
if (that.settings.ui.resizable) {
|
668
|
+
that.resize();
|
669
|
+
}
|
670
|
+
};
|
671
|
+
img.src = that.findImgMarkup().src;
|
672
|
+
|
673
|
+
},
|
674
|
+
tooltip: i18n.t('size.natural')
|
675
|
+
});
|
676
|
+
FloatingMenu.addButton(
|
677
|
+
this.name,
|
678
|
+
naturalSize,
|
679
|
+
tabResize,
|
680
|
+
2
|
681
|
+
);
|
682
|
+
},
|
683
|
+
|
684
|
+
/**
|
685
|
+
* Bind plugin interactions
|
686
|
+
*/
|
687
|
+
bindInteractions: function () {
|
688
|
+
var that = this;
|
689
|
+
|
690
|
+
if (this.settings.ui.resizable) {
|
691
|
+
try {
|
692
|
+
// this will disable mozillas image resizing facilities
|
693
|
+
document.execCommand( 'enableObjectResizing', false, false );
|
694
|
+
} catch (e) {
|
695
|
+
Aloha.Log.error( e, 'Could not disable enableObjectResizing' );
|
696
|
+
// this is just for internet explorer, who will not support disabling enableObjectResizing
|
697
|
+
}
|
698
|
+
}
|
699
|
+
|
700
|
+
if (this.settings.ui.meta) {
|
701
|
+
// update image object when src changes
|
702
|
+
this.imgSrcField.addListener('keyup', function(obj, event) {
|
703
|
+
that.srcChange();
|
704
|
+
});
|
705
|
+
|
706
|
+
this.imgSrcField.addListener('blur', function(obj, event) {
|
707
|
+
// TODO remove image or do something usefull if the user leaves the
|
708
|
+
// image without defining a valid image src.
|
709
|
+
var img = jQuery(obj.getTargetObject());
|
710
|
+
if ( img.attr('src') === '' ) {
|
711
|
+
img.remove();
|
712
|
+
} // image removal when src field is blank
|
713
|
+
});
|
714
|
+
}
|
715
|
+
|
716
|
+
// Override the default method by using the given one
|
717
|
+
if (this.settings.onCropped && typeof this.settings.onCropped === "function") {
|
718
|
+
this.onCropped = this.settings.onCropped;
|
719
|
+
}
|
720
|
+
|
721
|
+
// Override the default method by using the given one
|
722
|
+
if (this.settings.onReset && typeof this.settings.onReset === "function") {
|
723
|
+
this.onReset = this.settings.onReset;
|
724
|
+
}
|
725
|
+
|
726
|
+
// Override the default method by using the given one
|
727
|
+
if (this.settings.onResized && typeof this.settings.onResized === "function") {
|
728
|
+
this.onResized = this.settings.onResized;
|
729
|
+
}
|
730
|
+
|
731
|
+
// Override the default method by using the given one
|
732
|
+
if (this.settings.onResize && typeof this.settings.onResize === "function") {
|
733
|
+
this.onResize = this.settings.onResize;
|
734
|
+
}
|
735
|
+
|
736
|
+
},
|
737
|
+
|
738
|
+
/**
|
739
|
+
* Subscribe to Aloha events and DragAndDropPlugin Event
|
740
|
+
*/
|
741
|
+
subscribeEvents: function() {
|
742
|
+
var that = this;
|
743
|
+
var config = this.settings;
|
744
|
+
|
745
|
+
jQuery('img').filter(config.globalselector).unbind();
|
746
|
+
jQuery('img').filter(config.globalselector).click(function(event) {
|
747
|
+
that.clickImage(event);
|
748
|
+
});
|
749
|
+
|
750
|
+
Aloha.bind('aloha-drop-files-in-editable', function(event, data) {
|
751
|
+
var img, len = data.filesObjs.length, fileObj, config;
|
752
|
+
|
753
|
+
while (--len >= 0) {
|
754
|
+
fileObj = data.filesObjs[len];
|
755
|
+
if (fileObj.file.type.match(/image\//)) {
|
756
|
+
config = that.getEditableConfig(data.editable);
|
757
|
+
// Prepare
|
758
|
+
img = jQuery('<img/>');
|
759
|
+
img.css({
|
760
|
+
"max-width": that.maxWidth,
|
761
|
+
"max-height": that.maxHeight
|
762
|
+
});
|
763
|
+
img.attr('id',fileObj.id);
|
764
|
+
if (typeof fileObj.src === 'undefined') {
|
765
|
+
img.attr('src', fileObj.data );
|
766
|
+
//fileObj.src = fileObj.data ;
|
767
|
+
} else {
|
768
|
+
img.attr('src',fileObj.src );
|
769
|
+
}
|
770
|
+
GENTICS.Utils.Dom.insertIntoDOM(img, data.range, jQuery(Aloha.activeEditable.obj));
|
771
|
+
}
|
772
|
+
}
|
773
|
+
|
774
|
+
});
|
775
|
+
|
776
|
+
/*
|
777
|
+
* Add the event handler for selection change
|
778
|
+
*/
|
779
|
+
Aloha.bind('aloha-selection-changed', function(event, rangeObject, originalEvent) {
|
780
|
+
var config, foundMarkup;
|
781
|
+
if (originalEvent && originalEvent.target) {
|
782
|
+
// Check if the element is currently beeing resized
|
783
|
+
if (that.settings.ui.resizable && !jQuery(originalEvent.target).hasClass('ui-resizable-handle')) {
|
784
|
+
that.endResize();
|
785
|
+
}
|
786
|
+
}
|
787
|
+
|
788
|
+
if (Aloha.activeEditable !== null) {
|
789
|
+
foundMarkup = that.findImgMarkup( rangeObject );
|
790
|
+
//var config = that.getEditableConfig(Aloha.activeEditable.obj);
|
791
|
+
config = that.getEditableConfig(Aloha.activeEditable.obj);
|
792
|
+
|
793
|
+
if (typeof config !== 'undefined' ) {
|
794
|
+
that.insertImgButton.show();
|
795
|
+
} else {
|
796
|
+
that.insertImgButton.hide();
|
797
|
+
return;
|
798
|
+
}
|
799
|
+
|
800
|
+
// Enable image specific ui components if the element is an image
|
801
|
+
if (foundMarkup) {
|
802
|
+
that.insertImgButton.hide();
|
803
|
+
FloatingMenu.setScope(that.name);
|
804
|
+
if (that.settings.ui.meta) {
|
805
|
+
that.imgSrcField.setTargetObject(foundMarkup, 'src');
|
806
|
+
that.imgTitleField.setTargetObject(foundMarkup, 'title');
|
807
|
+
}
|
808
|
+
that.imgSrcField.focus();
|
809
|
+
FloatingMenu.activateTabOfButton('imgsrc');
|
810
|
+
} else {
|
811
|
+
if (that.settings.ui.meta) {
|
812
|
+
that.imgSrcField.setTargetObject(null);
|
813
|
+
}
|
814
|
+
}
|
815
|
+
// TODO this should not be necessary here!
|
816
|
+
FloatingMenu.doLayout();
|
817
|
+
}
|
818
|
+
|
819
|
+
});
|
820
|
+
|
821
|
+
Aloha.bind('aloha-editable-created', function( event, editable) {
|
822
|
+
|
823
|
+
try {
|
824
|
+
// this will disable mozillas image resizing facilities
|
825
|
+
document.execCommand( 'enableObjectResizing', false, false);
|
826
|
+
} catch (e) {
|
827
|
+
Aloha.Log.error( e, 'Could not disable enableObjectResizing');
|
828
|
+
// this is just for others, who will not support disabling enableObjectResizing
|
829
|
+
}
|
830
|
+
|
831
|
+
// Inital click on images will be handled here
|
832
|
+
// editable.obj.find('img').attr('_moz_resizing', false);
|
833
|
+
// editable.obj.find('img').contentEditable(false);
|
834
|
+
editable.obj.delegate( 'img', 'mouseup', function (event) {
|
835
|
+
that.clickImage(event);
|
836
|
+
event.stopPropagation();
|
837
|
+
});
|
838
|
+
});
|
839
|
+
|
840
|
+
that._subscribeToResizeFieldEvents();
|
841
|
+
|
842
|
+
},
|
843
|
+
|
844
|
+
/**
|
845
|
+
* Automatically resize the image to fit into defined bounds.
|
846
|
+
*/
|
847
|
+
autoResize: function() {
|
848
|
+
var that = this;
|
849
|
+
|
850
|
+
var width = that.imageObj.width();
|
851
|
+
var height = that.imageObj.height();
|
852
|
+
|
853
|
+
// Only normalize the field values when the image exeeds the definded bounds
|
854
|
+
if (width < that.settings.minWidth || width > that.settings.maxWidth || height < that.settings.minHeight || height > that.settings.maxHeight) {
|
855
|
+
that._setNormalizedFieldValues('width');
|
856
|
+
that.setSizeByFieldValue();
|
857
|
+
return true;
|
858
|
+
} else {
|
859
|
+
return false;
|
860
|
+
}
|
861
|
+
},
|
862
|
+
|
863
|
+
/**
|
864
|
+
* Toggle the keep aspect ratio functionallity
|
865
|
+
*/
|
866
|
+
toggleKeepAspectRatio: function() {
|
867
|
+
|
868
|
+
this.keepAspectRatio = !this.keepAspectRatio;
|
869
|
+
|
870
|
+
this.endResize();
|
871
|
+
if (!this.keepAspectRatio) {
|
872
|
+
this.startAspectRatio = false;
|
873
|
+
} else {
|
874
|
+
// If no fixed aspect ratio was given we will calculate a new start
|
875
|
+
// aspect ratio that will be used for the next starResize action.
|
876
|
+
if ( typeof this.settings.fixedAspectRatio !== 'number' ) {
|
877
|
+
var currentRatio = this.imageObj.width() / this.imageObj.height();
|
878
|
+
this.startAspectRatio = currentRatio;
|
879
|
+
} else {
|
880
|
+
this.startAspectRatio = this.settings.fixedAspectRatio;
|
881
|
+
}
|
882
|
+
}
|
883
|
+
this.startResize();
|
884
|
+
},
|
885
|
+
|
886
|
+
/**
|
887
|
+
* Bind interaction events that are invoked on the resize fields
|
888
|
+
*/
|
889
|
+
_subscribeToResizeFieldEvents: function() {
|
890
|
+
var that = this;
|
891
|
+
|
892
|
+
/**
|
893
|
+
* Helper function that will update the fields
|
894
|
+
*/
|
895
|
+
function updateField( $field, delta, maxValue, minValue ) {
|
896
|
+
|
897
|
+
if ( typeof minValue === 'undefined' ) {
|
898
|
+
minValue = 0;
|
899
|
+
}
|
900
|
+
|
901
|
+
if ( typeof maxValue === 'undefined' ) {
|
902
|
+
maxValue = 8000;
|
903
|
+
}
|
904
|
+
|
905
|
+
// If the current value of the field can't be parsed we don't update it
|
906
|
+
var oldValue = parseInt( $field.val() );
|
907
|
+
if ( isNaN(oldValue) ) {
|
908
|
+
$field.css( 'background-color', 'red' );
|
909
|
+
return false;
|
910
|
+
}
|
911
|
+
|
912
|
+
var newValue = oldValue + delta;
|
913
|
+
// Exit if the newValue is above the maxValue limit (only if the user tries to increment)
|
914
|
+
if (delta>=0 && newValue > maxValue) {
|
915
|
+
|
916
|
+
// Auto correct out of bounds values
|
917
|
+
if (that.settings.autoCorrectManualInput) {
|
918
|
+
$field.val(maxValue);
|
919
|
+
return true;
|
920
|
+
} else {
|
921
|
+
$field.css('background-color','red');
|
922
|
+
return false;
|
923
|
+
}
|
924
|
+
// Exit if the newValue is below the minValue (only if the user tries to decrement)
|
925
|
+
} else if (delta<=0 && newValue<minValue) {
|
926
|
+
|
927
|
+
// Auto correct out of bounds values
|
928
|
+
if (that.settings.autoCorrectManualInput) {
|
929
|
+
$field.val(minValue);
|
930
|
+
return true;
|
931
|
+
} else {
|
932
|
+
$field.css('background-color','red');
|
933
|
+
return false;
|
934
|
+
}
|
935
|
+
} else {
|
936
|
+
$field.css('background-color','');
|
937
|
+
}
|
938
|
+
$field.val(oldValue + delta);
|
939
|
+
return true;
|
940
|
+
};
|
941
|
+
|
942
|
+
/**
|
943
|
+
* Handle the keyup event on the field
|
944
|
+
*/
|
945
|
+
function handleKeyUpEventOnField(e) {
|
946
|
+
|
947
|
+
// Load the max/min from the data properties of this event
|
948
|
+
var minValue = e.data.minValue;
|
949
|
+
var maxValue = e.data.maxValue;
|
950
|
+
var fieldName = e.data.fieldName;
|
951
|
+
|
952
|
+
// Allow backspace and delete
|
953
|
+
if (e.keyCode == 8 || e.keyCode == 46) {
|
954
|
+
if($(this).val() >= minValue) {
|
955
|
+
|
956
|
+
// Check if we are currently in cropping mode
|
957
|
+
if(typeof that.jcAPI !== 'undefined' && that.jcAPI != null) {
|
958
|
+
that.setCropAreaByFieldValue();
|
959
|
+
} else {
|
960
|
+
// 1. Normalize the size
|
961
|
+
that._setNormalizedFieldValues(fieldName);
|
962
|
+
// 2. Set the final size to the image
|
963
|
+
that.setSizeByFieldValue();
|
964
|
+
}
|
965
|
+
}
|
966
|
+
// 0-9 keys
|
967
|
+
} else if (e.keyCode <= 57 && e.keyCode >= 48 || e.keyCode <= 105 && e.keyCode >= 96 ) {
|
968
|
+
if($(this).val() >= minValue) {
|
969
|
+
|
970
|
+
// Check if we are currently in cropping mode
|
971
|
+
if(typeof that.jcAPI !== 'undefined' && that.jcAPI != null) {
|
972
|
+
that.setCropAreaByFieldValue();
|
973
|
+
} else {
|
974
|
+
// 1. Normalize the size
|
975
|
+
that._setNormalizedFieldValues(fieldName);
|
976
|
+
// 2. Set the final size to the image
|
977
|
+
that.setSizeByFieldValue();
|
978
|
+
}
|
979
|
+
}
|
980
|
+
} else {
|
981
|
+
var delta = 0;
|
982
|
+
if (e.keyCode == 38 || e.keyCode == 107) {
|
983
|
+
delta = +1;
|
984
|
+
} else if (e.keyCode == 40 || e.keyCode == 109) {
|
985
|
+
delta = -1;
|
986
|
+
}
|
987
|
+
// Handle key combinations
|
988
|
+
if ( e.shiftKey || e.metaKey || e.ctrlKey ) {
|
989
|
+
delta = delta * 10;
|
990
|
+
}
|
991
|
+
|
992
|
+
// Only resize when field values are ok
|
993
|
+
if(updateField($(this), delta, maxValue, minValue)) {
|
994
|
+
// Check if we are currently in cropping mode
|
995
|
+
if(typeof that.jcAPI !== 'undefined' && that.jcAPI != null) {
|
996
|
+
that.setCropAreaByFieldValue();
|
997
|
+
} else {
|
998
|
+
// 1. Normalize the size
|
999
|
+
that._setNormalizedFieldValues(fieldName);
|
1000
|
+
// 2. Set the final size to the image
|
1001
|
+
that.setSizeByFieldValue();
|
1002
|
+
}
|
1003
|
+
}
|
1004
|
+
}
|
1005
|
+
|
1006
|
+
e.preventDefault();
|
1007
|
+
return false;
|
1008
|
+
};
|
1009
|
+
|
1010
|
+
/**
|
1011
|
+
* Handle the mouse wheel event on the field
|
1012
|
+
*/
|
1013
|
+
function handleMouseWheelEventOnField(e, delta) {
|
1014
|
+
var minValue = e.data.minValue;
|
1015
|
+
var maxValue = e.data.maxValue;
|
1016
|
+
var fieldName = e.data.fieldName;
|
1017
|
+
|
1018
|
+
// Handle key combinations
|
1019
|
+
if ( e.shiftKey || e.metaKey || e.ctrlKey ) {
|
1020
|
+
delta = delta * 10;
|
1021
|
+
}
|
1022
|
+
|
1023
|
+
// Only resize when field values are ok
|
1024
|
+
if(updateField($(this), delta, maxValue, minValue)) {
|
1025
|
+
|
1026
|
+
// Check if we are currently in cropping mode
|
1027
|
+
if(typeof that.jcAPI !== 'undefined' && that.jcAPI != null) {
|
1028
|
+
that.setCropAreaByFieldValue();
|
1029
|
+
} else {
|
1030
|
+
// 1. Normalize the size
|
1031
|
+
that._setNormalizedFieldValues(fieldName);
|
1032
|
+
// 2. Set the final size to the image
|
1033
|
+
that.setSizeByFieldValue();
|
1034
|
+
}
|
1035
|
+
}
|
1036
|
+
return false;
|
1037
|
+
};
|
1038
|
+
|
1039
|
+
/**
|
1040
|
+
* Handle mousewheel,keyup actions on both fields
|
1041
|
+
*/
|
1042
|
+
var $heightField = $('#' + that.imgResizeHeightField.id );
|
1043
|
+
var heightEventData = {fieldName: 'height', maxValue: that.imgResizeHeightField.maxValue, minValue: that.imgResizeHeightField.minValue };
|
1044
|
+
$heightField.live('keyup', heightEventData, handleKeyUpEventOnField);
|
1045
|
+
$heightField.live('mousewheel', heightEventData, handleMouseWheelEventOnField);
|
1046
|
+
|
1047
|
+
var $widthField = $('#' + that.imgResizeWidthField.id );
|
1048
|
+
var widthEventData = {fieldName: 'width', maxValue: that.imgResizeWidthField.maxValue , minValue: that.imgResizeWidthField.minValue };
|
1049
|
+
$widthField.live('keyup',widthEventData , handleKeyUpEventOnField);
|
1050
|
+
$widthField.live('mousewheel', widthEventData, handleMouseWheelEventOnField);
|
1051
|
+
|
1052
|
+
},
|
1053
|
+
|
1054
|
+
|
1055
|
+
/**
|
1056
|
+
* This helper function will keep the aspect ratio for the field with the given name.
|
1057
|
+
*/
|
1058
|
+
_setNormalizedFieldValues: function(primaryFieldName) {
|
1059
|
+
|
1060
|
+
var that = this;
|
1061
|
+
var widthField = jQuery("#" + that.imgResizeWidthField.id);
|
1062
|
+
var heightField = jQuery("#" + that.imgResizeHeightField.id);
|
1063
|
+
var width = widthField.val();
|
1064
|
+
var height = heightField.val();
|
1065
|
+
|
1066
|
+
var size = that._normalizeSize(width, height, primaryFieldName);
|
1067
|
+
|
1068
|
+
widthField.val(size.width);
|
1069
|
+
heightField.val(size.height);
|
1070
|
+
|
1071
|
+
},
|
1072
|
+
|
1073
|
+
/**
|
1074
|
+
* Manually set the given size for the current image
|
1075
|
+
*/
|
1076
|
+
setSize: function(width, height) {
|
1077
|
+
|
1078
|
+
var that = this;
|
1079
|
+
this.imageObj.width(width);
|
1080
|
+
this.imageObj.height(height);
|
1081
|
+
var $wrapper = this.imageObj.closest('.Aloha_Image_Resize');
|
1082
|
+
$wrapper.height(height);
|
1083
|
+
$wrapper.width(width);
|
1084
|
+
|
1085
|
+
this._onResize(this.imageObj);
|
1086
|
+
this._onResized(this.imageObj);
|
1087
|
+
},
|
1088
|
+
|
1089
|
+
/**
|
1090
|
+
* This method will handle the mouseUp event on images (eg. within editables).
|
1091
|
+
* It will if enabled activate the resizing action.
|
1092
|
+
*/
|
1093
|
+
clickImage: function( e ) {
|
1094
|
+
|
1095
|
+
var that = this;
|
1096
|
+
that.imageObj = jQuery(e.target);
|
1097
|
+
var currentImage = that.imageObj;
|
1098
|
+
|
1099
|
+
FloatingMenu.setScope(that.name);
|
1100
|
+
|
1101
|
+
var editable = currentImage.closest('.aloha-editable');
|
1102
|
+
|
1103
|
+
// Disabling the content editable. This will disable the resizeHandles in internet explorer
|
1104
|
+
jQuery(editable).contentEditable(false);
|
1105
|
+
|
1106
|
+
//Store the current props of the image
|
1107
|
+
this.restoreProps.push({
|
1108
|
+
obj : e.srcElement,
|
1109
|
+
src : that.imageObj.attr('src'),
|
1110
|
+
width : that.imageObj.width(),
|
1111
|
+
height : that.imageObj.height()
|
1112
|
+
});
|
1113
|
+
|
1114
|
+
// Update the resize input fields with the new width and height
|
1115
|
+
$('#' + that.imgResizeHeightField.id).val(that.imageObj.height());
|
1116
|
+
$('#' + that.imgResizeWidthField.id).val(that.imageObj.width());
|
1117
|
+
|
1118
|
+
|
1119
|
+
if (this.settings.ui.resizable) {
|
1120
|
+
this.startResize();
|
1121
|
+
}
|
1122
|
+
|
1123
|
+
|
1124
|
+
if (this.settings.autoResize) {
|
1125
|
+
this.autoResize();
|
1126
|
+
}
|
1127
|
+
|
1128
|
+
},
|
1129
|
+
|
1130
|
+
/**
|
1131
|
+
* This method extracts determins if the range selection contains an image
|
1132
|
+
*/
|
1133
|
+
findImgMarkup: function ( range ) {
|
1134
|
+
|
1135
|
+
var that = this;
|
1136
|
+
var config = this.config;
|
1137
|
+
var result, targetObj;
|
1138
|
+
|
1139
|
+
if ( typeof range === 'undefined' ) {
|
1140
|
+
range = Aloha.Selection.getRangeObject();
|
1141
|
+
}
|
1142
|
+
|
1143
|
+
targetObj = jQuery(range.startContainer);
|
1144
|
+
|
1145
|
+
try {
|
1146
|
+
if ( Aloha.activeEditable ) {
|
1147
|
+
if (( typeof range.startContainer !== 'undefined'
|
1148
|
+
&& typeof range.startContainer.childNodes !== 'undefined'
|
1149
|
+
&& typeof range.startOffset !== 'undefined'
|
1150
|
+
&& typeof range.startContainer.childNodes[range.startOffset] !== 'undefined'
|
1151
|
+
&& range.startContainer.childNodes[range.startOffset].nodeName.toLowerCase() === 'img'
|
1152
|
+
&& range.startOffset+1 === range.endOffset) ||
|
1153
|
+
(targetObj.hasClass('Aloha_Image_Resize')))
|
1154
|
+
{
|
1155
|
+
result = targetObj.find('img')[0];
|
1156
|
+
if (! result.css) {
|
1157
|
+
result.css = '';
|
1158
|
+
}
|
1159
|
+
|
1160
|
+
if (! result.title) {
|
1161
|
+
result.title = '';
|
1162
|
+
}
|
1163
|
+
|
1164
|
+
if (! result.src) {
|
1165
|
+
result.src = '';
|
1166
|
+
}
|
1167
|
+
return result;
|
1168
|
+
}
|
1169
|
+
else {
|
1170
|
+
return null;
|
1171
|
+
}
|
1172
|
+
}
|
1173
|
+
} catch (e) {
|
1174
|
+
Aloha.Log.debug(e, "Error finding img markup.");
|
1175
|
+
}
|
1176
|
+
return null;
|
1177
|
+
|
1178
|
+
},
|
1179
|
+
|
1180
|
+
|
1181
|
+
/**
|
1182
|
+
* This helper function will calculate the new width and height while keeping
|
1183
|
+
* the aspect ratio when the keepAspectRatio flat is set to true. The primarySize
|
1184
|
+
* can be 'width' or 'height'. The function will first try to normalize the oposite size.
|
1185
|
+
*/
|
1186
|
+
_normalizeSize: function(width, height, primarySize) {
|
1187
|
+
|
1188
|
+
var that = this;
|
1189
|
+
// Convert string values to numbers
|
1190
|
+
width = parseInt(width);
|
1191
|
+
height = parseInt(height);
|
1192
|
+
|
1193
|
+
/**
|
1194
|
+
* Inner function that calculates the new height by examining the width
|
1195
|
+
*/
|
1196
|
+
function handleHeight(callHandleWidth) {
|
1197
|
+
|
1198
|
+
// Check whether the value is within bounds
|
1199
|
+
if (height > that.settings.maxHeight) {
|
1200
|
+
|
1201
|
+
// Throw a notification event
|
1202
|
+
var eventProps = { 'org': height, 'new': that.settings.maxHeight};
|
1203
|
+
$('body').trigger('aloha-image-resize-outofbounds', ["height", "max", eventProps]);
|
1204
|
+
height = that.settings.maxHeight;
|
1205
|
+
|
1206
|
+
} else if (height < that.settings.minHeight) {
|
1207
|
+
|
1208
|
+
// Throw a notification event
|
1209
|
+
var eventProps = { 'org': height, 'new': that.settings.minHeight};
|
1210
|
+
$('body').trigger('aloha-image-resize-outofbounds', ["height", "min", eventProps]);
|
1211
|
+
height = that.settings.minHeight;
|
1212
|
+
}
|
1213
|
+
|
1214
|
+
if (that.keepAspectRatio) {
|
1215
|
+
width = height * aspectRatio;
|
1216
|
+
|
1217
|
+
// We don't want to invoke handleWidth again. This would mess up our previously calculated width
|
1218
|
+
if (callHandleWidth) {
|
1219
|
+
handleWidth(false);
|
1220
|
+
}
|
1221
|
+
}
|
1222
|
+
|
1223
|
+
|
1224
|
+
}
|
1225
|
+
|
1226
|
+
/**
|
1227
|
+
* Inner function that calculates the new width by examining the width
|
1228
|
+
*/
|
1229
|
+
function handleWidth(callHandleHeight) {
|
1230
|
+
|
1231
|
+
// Check whether the value is within bounds
|
1232
|
+
if (width > that.settings.maxWidth) {
|
1233
|
+
|
1234
|
+
// Throw a notification event
|
1235
|
+
var eventProps = { 'org': width, 'new': that.settings.maxWidth};
|
1236
|
+
$('body').trigger('aloha-image-resize-outofbounds', ["width", "max", eventProps]);
|
1237
|
+
|
1238
|
+
width = that.settings.maxWidth;
|
1239
|
+
} else if (width < that.settings.minWidth) {
|
1240
|
+
|
1241
|
+
// Throw a notification event
|
1242
|
+
var eventProps = { 'org': width, 'new': that.settings.minWidth};
|
1243
|
+
$('body').trigger('aloha-image-resize-outofbounds', ["width", "min", eventProps]);
|
1244
|
+
|
1245
|
+
width = that.settings.minWidth;
|
1246
|
+
}
|
1247
|
+
|
1248
|
+
// Calculate the new height
|
1249
|
+
if (that.keepAspectRatio) {
|
1250
|
+
height = width / aspectRatio;
|
1251
|
+
|
1252
|
+
// We don't want to invoke handleHeight again. This would mess up our previously calculated height
|
1253
|
+
if (callHandleHeight) {
|
1254
|
+
handleHeight(false);
|
1255
|
+
}
|
1256
|
+
|
1257
|
+
}
|
1258
|
+
|
1259
|
+
}
|
1260
|
+
|
1261
|
+
// Load the aspect ratio and use the 4:3 ratio as default value.
|
1262
|
+
var aspectRatio = 1.33333;
|
1263
|
+
if (typeof that.startAspectRatio === 'number') {
|
1264
|
+
aspectRatio = that.startAspectRatio;
|
1265
|
+
}
|
1266
|
+
|
1267
|
+
// Determin which size should be handled
|
1268
|
+
if (primarySize == 'width') {
|
1269
|
+
handleWidth(true);
|
1270
|
+
}
|
1271
|
+
|
1272
|
+
if (primarySize == 'height') {
|
1273
|
+
handleHeight(true);
|
1274
|
+
}
|
1275
|
+
|
1276
|
+
// Floor the values return them
|
1277
|
+
return {'width': Math.floor(width), 'height': Math.floor(height)};
|
1278
|
+
},
|
1279
|
+
|
1280
|
+
|
1281
|
+
/**
|
1282
|
+
* Helper function that will set the new image size using the field values
|
1283
|
+
*/
|
1284
|
+
setSizeByFieldValue: function() {
|
1285
|
+
var that = this;
|
1286
|
+
var width = $('#' + that.imgResizeWidthField.id ).val();
|
1287
|
+
var height = $('#' + that.imgResizeHeightField.id ).val();
|
1288
|
+
that.setSize(width, height);
|
1289
|
+
},
|
1290
|
+
|
1291
|
+
/**
|
1292
|
+
* Helper function that will set the new crop area width and height using the field values
|
1293
|
+
*/
|
1294
|
+
setCropAreaByFieldValue: function() {
|
1295
|
+
var that = this;
|
1296
|
+
var currentCropArea = that.jcAPI.tellSelect();
|
1297
|
+
|
1298
|
+
var width = $('#' + that.imgResizeWidthField.id ).val();
|
1299
|
+
width = parseInt(width);
|
1300
|
+
var height = $('#' + that.imgResizeHeightField.id ).val();
|
1301
|
+
height = parseInt(height);
|
1302
|
+
|
1303
|
+
var selection = [currentCropArea['x'], currentCropArea['y'], currentCropArea['x'] + width,currentCropArea['y'] + height];
|
1304
|
+
that.jcAPI.setSelect(selection);
|
1305
|
+
},
|
1306
|
+
|
1307
|
+
/**
|
1308
|
+
* This method will insert a new image dom element into the dom tree
|
1309
|
+
*/
|
1310
|
+
insertImg: function() {
|
1311
|
+
var range = Aloha.Selection.getRangeObject(),
|
1312
|
+
config = this.getEditableConfig(Aloha.activeEditable.obj),
|
1313
|
+
imagePluginUrl = Aloha.getPluginUrl('image'),
|
1314
|
+
imagestyle, imagetag, newImg;
|
1315
|
+
|
1316
|
+
if ( range.isCollapsed() ) {
|
1317
|
+
// TODO I would suggest to call the srcChange method. So all image src
|
1318
|
+
// changes are on one single point.
|
1319
|
+
imagestyle = "max-width: " + config.maxWidth + "; max-height: " + config.maxHeight;
|
1320
|
+
imagetag = '<img style="'+ imagestyle + '" src="' + imagePluginUrl + '/img/blank.jpg" title="" />';
|
1321
|
+
newImg = jQuery(imagetag);
|
1322
|
+
// add the click selection handler
|
1323
|
+
//newImg.click( Aloha.Image.clickImage ); - Using delegate now
|
1324
|
+
GENTICS.Utils.Dom.insertIntoDOM(newImg, range, jQuery(Aloha.activeEditable.obj));
|
1325
|
+
|
1326
|
+
} else {
|
1327
|
+
Aloha.Log.error('img cannot markup a selection');
|
1328
|
+
// TODO the desired behavior could be me the selected content is
|
1329
|
+
// replaced by an image.
|
1330
|
+
// TODO it should be editor's choice, with an NON-Ext Dialog instead of alert
|
1331
|
+
|
1332
|
+
}
|
1333
|
+
},
|
1334
|
+
|
1335
|
+
srcChange: function () {
|
1336
|
+
// TODO the src changed. I suggest :
|
1337
|
+
// 1. set an loading image (I suggest set src base64 enc) to show the user
|
1338
|
+
// we are trying to load an image
|
1339
|
+
// 2. start a request to get the image
|
1340
|
+
// 3a. the image is ok change the src
|
1341
|
+
// 3b. the image is not availbable show an error.
|
1342
|
+
this.imageObj.attr('src', this.imgSrcField.getQueryValue() ); // (the img tag)
|
1343
|
+
// jQuery(img).attr('src', this.imgSrcField.getQueryValue() ); // (the query value in the inputfield)
|
1344
|
+
// this.imgSrcField.getItem(); // (optinal a selected resource item)
|
1345
|
+
// TODO additionally implement an srcChange Handler to let implementer
|
1346
|
+
// customize
|
1347
|
+
},
|
1348
|
+
|
1349
|
+
/**
|
1350
|
+
* Code imported from CropnResize Plugin
|
1351
|
+
*
|
1352
|
+
*/
|
1353
|
+
initCropButtons: function() {
|
1354
|
+
var that = this,
|
1355
|
+
btns,
|
1356
|
+
oldLeft = 0,
|
1357
|
+
oldTop = 0;
|
1358
|
+
|
1359
|
+
jQuery('body').append(
|
1360
|
+
'<div id="aloha-CropNResize-btns">\
|
1361
|
+
<button class="cnr-crop-apply" title="' + i18n.t('Accept') + '">✔</button>\
|
1362
|
+
<button class="cnr-crop-cancel" title="' + i18n.t('Cancel') + '">✖</button>\
|
1363
|
+
</div>'
|
1364
|
+
);
|
1365
|
+
|
1366
|
+
btns = jQuery('#aloha-CropNResize-btns')
|
1367
|
+
|
1368
|
+
btns.find('.cnr-crop-apply').click(function () {
|
1369
|
+
that.acceptCrop();
|
1370
|
+
});
|
1371
|
+
|
1372
|
+
btns.find('.cnr-crop-cancel').click(function () {
|
1373
|
+
that.endCrop();
|
1374
|
+
});
|
1375
|
+
|
1376
|
+
this.interval = setInterval(function () {
|
1377
|
+
var jt = jQuery('.jcrop-tracker:first'),
|
1378
|
+
off = jt.offset(),
|
1379
|
+
jtt = off.top,
|
1380
|
+
jtl = off.left,
|
1381
|
+
jth = jt.height(),
|
1382
|
+
jtw = jt.width();
|
1383
|
+
|
1384
|
+
if (jth && jtw) {
|
1385
|
+
btns.fadeIn('slow');
|
1386
|
+
}
|
1387
|
+
|
1388
|
+
// move the icons to the bottom right side
|
1389
|
+
jtt = parseInt(jtt + jth + 3, 10);
|
1390
|
+
jtl = parseInt(jtl + jtw - 55, 10);
|
1391
|
+
|
1392
|
+
// comparison to old values hinders flickering bug in FF
|
1393
|
+
if (oldLeft != jtl || oldTop != jtt) {
|
1394
|
+
btns.offset({top: jtt, left: jtl});
|
1395
|
+
}
|
1396
|
+
|
1397
|
+
oldLeft = jtl;
|
1398
|
+
oldTop = jtt;
|
1399
|
+
}, 10);
|
1400
|
+
},
|
1401
|
+
|
1402
|
+
/**
|
1403
|
+
* Destroy crop confirm and cancel buttons
|
1404
|
+
*/
|
1405
|
+
destroyCropButtons: function () {
|
1406
|
+
jQuery('#aloha-CropNResize-btns').remove();
|
1407
|
+
clearInterval(this.interval);
|
1408
|
+
},
|
1409
|
+
|
1410
|
+
/**
|
1411
|
+
* Helper function that will disable selectability of elements
|
1412
|
+
*/
|
1413
|
+
_disableSelection: function (el) {
|
1414
|
+
el.find('*').attr('unselectable', 'on')
|
1415
|
+
.css({
|
1416
|
+
'-moz-user-select':'none',
|
1417
|
+
'-webkit-user-select':'none',
|
1418
|
+
'user-select':'none'
|
1419
|
+
});
|
1420
|
+
/*
|
1421
|
+
.each(function() {
|
1422
|
+
this.onselectstart = function () { return false; };
|
1423
|
+
});
|
1424
|
+
*/
|
1425
|
+
|
1426
|
+
},
|
1427
|
+
|
1428
|
+
/**
|
1429
|
+
* Initiate a crop action
|
1430
|
+
*/
|
1431
|
+
crop: function () {
|
1432
|
+
var that = this;
|
1433
|
+
var config = this.config;
|
1434
|
+
|
1435
|
+
this.initCropButtons();
|
1436
|
+
if (this.settings.ui.resizable) {
|
1437
|
+
this.endResize();
|
1438
|
+
}
|
1439
|
+
|
1440
|
+
this.jcAPI = jQuery.Jcrop(this.imageObj, {
|
1441
|
+
onSelect : function () {
|
1442
|
+
that._onCropSelect();
|
1443
|
+
// ugly hack to keep scope :(
|
1444
|
+
setTimeout(function () {
|
1445
|
+
FloatingMenu.setScope(that.name);
|
1446
|
+
}, 10);
|
1447
|
+
}
|
1448
|
+
});
|
1449
|
+
|
1450
|
+
that._disableSelection($('.jcrop-holder'));
|
1451
|
+
that._disableSelection($('#imageContainer'));
|
1452
|
+
that._disableSelection($('#aloha-CropNResize-btns'));
|
1453
|
+
$('body').trigger('aloha-image-crop-start', [this.imageObj]);
|
1454
|
+
},
|
1455
|
+
|
1456
|
+
/**
|
1457
|
+
* Internal on crop select method
|
1458
|
+
*/
|
1459
|
+
_onCropSelect: function() {
|
1460
|
+
var that = this;
|
1461
|
+
|
1462
|
+
// Update the width and height field using the intiial active crop area values
|
1463
|
+
if(typeof that.jcAPI !== 'undefined' && that.jcAPI != null) {
|
1464
|
+
var currentCropArea = that.jcAPI.tellSelect();
|
1465
|
+
var widthField = jQuery("#" + that.imgResizeWidthField.id).val(currentCropArea['w']);
|
1466
|
+
var heightField = jQuery("#" + that.imgResizeHeightField.id).val(currentCropArea['h']);
|
1467
|
+
}
|
1468
|
+
|
1469
|
+
},
|
1470
|
+
|
1471
|
+
|
1472
|
+
/**
|
1473
|
+
* Terminates a crop
|
1474
|
+
*/
|
1475
|
+
endCrop: function () {
|
1476
|
+
if ( this.jcAPI ) {
|
1477
|
+
this.jcAPI.destroy();
|
1478
|
+
this.jcAPI = null;
|
1479
|
+
}
|
1480
|
+
|
1481
|
+
this.destroyCropButtons();
|
1482
|
+
this.cropButton.extButton.toggle(false);
|
1483
|
+
|
1484
|
+
if ( this.settings.ui.resizable ) {
|
1485
|
+
this.startResize();
|
1486
|
+
}
|
1487
|
+
|
1488
|
+
if ( this.keepAspectRatio ) {
|
1489
|
+
var currentRatio = this.imageObj.width() / this.imageObj.height();
|
1490
|
+
this.startAspectRatio = currentRatio;
|
1491
|
+
}
|
1492
|
+
|
1493
|
+
$('body').trigger('aloha-image-crop-stop', [this.imageObj]);
|
1494
|
+
},
|
1495
|
+
|
1496
|
+
/**
|
1497
|
+
* Accept the current cropping area and apply the crop
|
1498
|
+
*/
|
1499
|
+
acceptCrop: function () {
|
1500
|
+
this._onCropped ( this.imageObj, this.jcAPI.tellSelect() );
|
1501
|
+
this.endCrop ();
|
1502
|
+
},
|
1503
|
+
|
1504
|
+
/**
|
1505
|
+
* This method will activate the jquery-ui resize functionality for the current image
|
1506
|
+
*/
|
1507
|
+
startResize: function () {
|
1508
|
+
var that = this;
|
1509
|
+
var currentImageObj = this.imageObj;
|
1510
|
+
|
1511
|
+
currentImageObj = this.imageObj.css({
|
1512
|
+
height : this.imageObj.height(),
|
1513
|
+
width : this.imageObj.width(),
|
1514
|
+
position : 'relative',
|
1515
|
+
'max-height': '',
|
1516
|
+
'max-width' : ''
|
1517
|
+
});
|
1518
|
+
|
1519
|
+
currentImageObj.resizable({
|
1520
|
+
|
1521
|
+
maxHeight : that.settings.maxHeight,
|
1522
|
+
minHeight : that.settings.minHeight,
|
1523
|
+
maxWidth : that.settings.maxWidth,
|
1524
|
+
minWidth : that.settings.minWidth,
|
1525
|
+
aspectRatio : that.startAspectRatio,
|
1526
|
+
handles: that.settings.handles,
|
1527
|
+
grid : that.settings.grid,
|
1528
|
+
resize: function(event, ui) {
|
1529
|
+
that._onResize(that.imageObj);
|
1530
|
+
},
|
1531
|
+
stop : function (event, ui) {
|
1532
|
+
that._onResized(that.imageObj);
|
1533
|
+
|
1534
|
+
// Workaround to finish cropping
|
1535
|
+
if (this.enableCrop) {
|
1536
|
+
setTimeout(function () {
|
1537
|
+
FloatingMenu.setScope(that.name);
|
1538
|
+
that.done(event);
|
1539
|
+
}, 10);
|
1540
|
+
}
|
1541
|
+
}
|
1542
|
+
|
1543
|
+
});
|
1544
|
+
|
1545
|
+
currentImageObj.css('display', 'inline-block');
|
1546
|
+
|
1547
|
+
// this will prevent the user from resizing an image
|
1548
|
+
// using IE's resize handles
|
1549
|
+
// however I could not manage to hide them completely
|
1550
|
+
jQuery('.ui-wrapper')
|
1551
|
+
.attr('contentEditable', false)
|
1552
|
+
.addClass('aloha-image-box-active Aloha_Image_Resize aloha')
|
1553
|
+
.css({
|
1554
|
+
position: 'relative',
|
1555
|
+
display: 'inline-block',
|
1556
|
+
'float': that.imageObj.css('float')
|
1557
|
+
})
|
1558
|
+
.bind('resizestart', function (e) {
|
1559
|
+
e.preventDefault();
|
1560
|
+
})
|
1561
|
+
.bind('mouseup', function (e) {
|
1562
|
+
e.originalEvent.stopSelectionUpdate = true;
|
1563
|
+
});
|
1564
|
+
},
|
1565
|
+
|
1566
|
+
/**
|
1567
|
+
* This method will end resizing and toggle buttons accordingly and remove all markup that has been added for cropping
|
1568
|
+
*/
|
1569
|
+
endResize: function () {
|
1570
|
+
// Find the nearest contenteditable and reenable it since resizing is finished
|
1571
|
+
if (this.imageObj) {
|
1572
|
+
var editable = this.imageObj.closest('.aloha-editable');
|
1573
|
+
jQuery(editable).contentEditable(true);
|
1574
|
+
}
|
1575
|
+
|
1576
|
+
if (this.imageObj) {
|
1577
|
+
this.imageObj
|
1578
|
+
.resizable('destroy')
|
1579
|
+
.css({
|
1580
|
+
top : 0,
|
1581
|
+
left : 0
|
1582
|
+
});
|
1583
|
+
}
|
1584
|
+
},
|
1585
|
+
|
1586
|
+
/**
|
1587
|
+
* Reset the image to it's original properties
|
1588
|
+
*/
|
1589
|
+
reset: function() {
|
1590
|
+
if (this.settings.ui.crop) {
|
1591
|
+
this.endCrop();
|
1592
|
+
}
|
1593
|
+
|
1594
|
+
if (this.settings.ui.resizable) {
|
1595
|
+
this.endResize();
|
1596
|
+
}
|
1597
|
+
|
1598
|
+
if (this._onReset(this.imageObj)) {
|
1599
|
+
// the external reset procedure has already performed a reset, so there is no need to apply an internal reset
|
1600
|
+
return;
|
1601
|
+
}
|
1602
|
+
|
1603
|
+
for (var i=0;i<this.restoreProps.length;i++) {
|
1604
|
+
// restore from restoreProps if there is a match
|
1605
|
+
if (this.imageObj.get(0) === this.restoreProps[i].obj) {
|
1606
|
+
this.imageObj.attr('src', this.restoreProps[i].src);
|
1607
|
+
this.imageObj.width(this.restoreProps[i].width);
|
1608
|
+
this.imageObj.height(this.restoreProps[i].height);
|
1609
|
+
return;
|
1610
|
+
}
|
1611
|
+
}
|
1612
|
+
}
|
1613
|
+
});
|
1614
|
+
|
1615
|
+
});
|