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
@@ -0,0 +1,66 @@
|
|
1
|
+
/*!
|
2
|
+
* This file is part of Aloha Editor
|
3
|
+
* Author & Copyright (c) 2010 Gentics Software GmbH, aloha@gentics.com
|
4
|
+
* Licensed unter the terms of http://www.aloha-editor.com/license.html
|
5
|
+
*/
|
6
|
+
// Ensure GENTICS Namespace
|
7
|
+
GENTICS = window.GENTICS || {};
|
8
|
+
GENTICS.Utils = GENTICS.Utils || {};
|
9
|
+
|
10
|
+
define( 'util/lang', [], function(){} );
|
11
|
+
|
12
|
+
// Start Closure
|
13
|
+
(function(window, undefined) {
|
14
|
+
|
15
|
+
var
|
16
|
+
jQuery = window.alohaQuery || window.jQuery, $ = jQuery,
|
17
|
+
GENTICS = window.GENTICS,
|
18
|
+
Class = window.Class,
|
19
|
+
console = window.console;
|
20
|
+
|
21
|
+
/**
|
22
|
+
* Takes over all properties from the 'properties' object to the target object.
|
23
|
+
* If a property in 'target' with the same name as a property in 'properties' is already defined it is overridden.
|
24
|
+
*
|
25
|
+
* Example:
|
26
|
+
*
|
27
|
+
* var o1 = {a : 1, b : 'hello'};
|
28
|
+
* var o2 = {a : 3, c : 'world'};
|
29
|
+
*
|
30
|
+
* GENTICS.Utils.applyProperties(o1, o2);
|
31
|
+
*
|
32
|
+
* Will result in an o1 object like this:
|
33
|
+
*
|
34
|
+
* {a : 3, b: 'hello', c: 'world'}
|
35
|
+
*
|
36
|
+
* @static
|
37
|
+
* @return void
|
38
|
+
*/
|
39
|
+
GENTICS.Utils.applyProperties = function (target, properties) {
|
40
|
+
var name;
|
41
|
+
for (name in properties) {
|
42
|
+
if (properties.hasOwnProperty(name)) {
|
43
|
+
target[name] = properties[name];
|
44
|
+
}
|
45
|
+
}
|
46
|
+
};
|
47
|
+
|
48
|
+
/**
|
49
|
+
* Generate a unique hexadecimal string with 4 charachters
|
50
|
+
* @return {string}
|
51
|
+
*/
|
52
|
+
GENTICS.Utils.uniqeString4 = function () {
|
53
|
+
return (((1+Math.random())*0x10000)|0).toString(16).substring(1);
|
54
|
+
};
|
55
|
+
|
56
|
+
/**
|
57
|
+
* Generate a unique value represented as a 32 character hexadecimal string,
|
58
|
+
* such as 21EC2020-3AEA-1069-A2DD-08002B30309D
|
59
|
+
* @return {string}
|
60
|
+
*/
|
61
|
+
GENTICS.Utils.guid = function () {
|
62
|
+
var S4 = GENTICS.Utils.uniqeString4;
|
63
|
+
return (S4()+S4()+'-'+S4()+'-'+S4()+'-'+S4()+'-'+S4()+S4()+S4());
|
64
|
+
};
|
65
|
+
|
66
|
+
})(window);
|
@@ -0,0 +1,158 @@
|
|
1
|
+
/*!
|
2
|
+
* This file is part of Aloha Editor
|
3
|
+
* Author & Copyright (c) 2010 Gentics Software GmbH, aloha@gentics.com
|
4
|
+
* Licensed unter the terms of http://www.aloha-editor.com/license.html
|
5
|
+
*/
|
6
|
+
// Start Closure
|
7
|
+
// Ensure GENTICS Namespace
|
8
|
+
GENTICS = window.GENTICS || {};
|
9
|
+
GENTICS.Utils = GENTICS.Utils || {};
|
10
|
+
define(['aloha/jquery'],
|
11
|
+
function(jQuery) {
|
12
|
+
|
13
|
+
|
14
|
+
var
|
15
|
+
$ = jQuery,
|
16
|
+
GENTICS = window.GENTICS,
|
17
|
+
Class = window.Class,
|
18
|
+
console = window.console;
|
19
|
+
|
20
|
+
/**
|
21
|
+
* position utility, which will provide scroll and mouse positions
|
22
|
+
* please note that the positions provided by this class are not
|
23
|
+
* realtime - instead they are calculated with a 0.5 second delay
|
24
|
+
*/
|
25
|
+
GENTICS.Utils.Position = {};
|
26
|
+
|
27
|
+
/**
|
28
|
+
* jquery reference to the window object
|
29
|
+
*/
|
30
|
+
GENTICS.Utils.Position.w = jQuery(window);
|
31
|
+
|
32
|
+
/**
|
33
|
+
* contains the current scroll top and left position, and indicates if the user is currently scrolling
|
34
|
+
* @api
|
35
|
+
*/
|
36
|
+
GENTICS.Utils.Position.Scroll = {
|
37
|
+
top : 0,
|
38
|
+
left : 0,
|
39
|
+
isScrolling : false
|
40
|
+
};
|
41
|
+
|
42
|
+
/**
|
43
|
+
* contains the scroll corrections to apply on special cases (ribbon for example)
|
44
|
+
* @api
|
45
|
+
*/
|
46
|
+
GENTICS.Utils.Position.ScrollCorrection = {
|
47
|
+
top : 100,
|
48
|
+
left : 50
|
49
|
+
};
|
50
|
+
|
51
|
+
/**
|
52
|
+
* contains the current mouse position (x,y) as well as an indicator if the mouse is moving
|
53
|
+
* @api
|
54
|
+
*/
|
55
|
+
GENTICS.Utils.Position.Mouse = {
|
56
|
+
x : 0,
|
57
|
+
y : 0,
|
58
|
+
oldX : 0,
|
59
|
+
oldY : 0,
|
60
|
+
isMoving : false,
|
61
|
+
triggeredMouseStop : true
|
62
|
+
};
|
63
|
+
|
64
|
+
/**
|
65
|
+
* contains all mousestop callbacks
|
66
|
+
*/
|
67
|
+
GENTICS.Utils.Position.mouseStopCallbacks = [];
|
68
|
+
|
69
|
+
/**
|
70
|
+
* contains all mousemove callbacks
|
71
|
+
*/
|
72
|
+
GENTICS.Utils.Position.mouseMoveCallbacks = [];
|
73
|
+
|
74
|
+
/**
|
75
|
+
* updates scroll position and the scrolling status
|
76
|
+
*/
|
77
|
+
GENTICS.Utils.Position.update = function () {
|
78
|
+
// update scroll position
|
79
|
+
var
|
80
|
+
st = this.w.scrollTop(),
|
81
|
+
sl = this.w.scrollLeft(),
|
82
|
+
i;
|
83
|
+
|
84
|
+
if (this.Scroll.isScrolling) {
|
85
|
+
if (this.Scroll.top == st && this.Scroll.left == sl) {
|
86
|
+
// stopped scrolling
|
87
|
+
this.Scroll.isScrolling = false;
|
88
|
+
}
|
89
|
+
} else {
|
90
|
+
if (this.Scroll.top != st || this.Scroll.left != sl) {
|
91
|
+
// started scrolling
|
92
|
+
this.Scroll.isScrolling = true;
|
93
|
+
}
|
94
|
+
}
|
95
|
+
|
96
|
+
// update scroll positions
|
97
|
+
this.Scroll.top = st;
|
98
|
+
this.Scroll.left = sl;
|
99
|
+
|
100
|
+
// check wether the user has stopped moving the mouse
|
101
|
+
if (this.Mouse.x == this.Mouse.oldX && this.Mouse.y == this.Mouse.oldY) {
|
102
|
+
this.Mouse.isMoving = false;
|
103
|
+
// now check if we've triggered the mousestop event
|
104
|
+
if (!this.Mouse.triggeredMouseStop) {
|
105
|
+
this.Mouse.triggeredMouseStop = true;
|
106
|
+
// iterate callbacks
|
107
|
+
for (i=0; i<this.mouseStopCallbacks.length; i++) {
|
108
|
+
this.mouseStopCallbacks[i].call();
|
109
|
+
}
|
110
|
+
}
|
111
|
+
} else {
|
112
|
+
this.Mouse.isMoving = true;
|
113
|
+
this.Mouse.triggeredMouseStop = false;
|
114
|
+
// iterate callbacks
|
115
|
+
for (i=0; i<this.mouseMoveCallbacks.length; i++) {
|
116
|
+
this.mouseMoveCallbacks[i].call();
|
117
|
+
}
|
118
|
+
}
|
119
|
+
|
120
|
+
// update mouse positions
|
121
|
+
this.Mouse.oldX = this.Mouse.x;
|
122
|
+
this.Mouse.oldY = this.Mouse.y;
|
123
|
+
};
|
124
|
+
|
125
|
+
/**
|
126
|
+
* adds a callback method which is invoked when the mouse has stopped moving
|
127
|
+
* @param callback the callback method to be invoked
|
128
|
+
* @return index of the callback
|
129
|
+
*/
|
130
|
+
GENTICS.Utils.Position.addMouseStopCallback = function (callback) {
|
131
|
+
this.mouseStopCallbacks.push(callback);
|
132
|
+
return (this.mouseStopCallbacks.length - 1);
|
133
|
+
};
|
134
|
+
|
135
|
+
/**
|
136
|
+
* adds a callback method which is invoked when the mouse is moving
|
137
|
+
* @param callback the callback method to be invoked
|
138
|
+
* @return index of the callback
|
139
|
+
*/
|
140
|
+
GENTICS.Utils.Position.addMouseMoveCallback = function (callback) {
|
141
|
+
this.mouseMoveCallbacks.push(callback);
|
142
|
+
return (this.mouseMoveCallbacks.length - 1);
|
143
|
+
};
|
144
|
+
|
145
|
+
|
146
|
+
// Mousemove Hooks
|
147
|
+
jQuery(function () {
|
148
|
+
setInterval(function (){
|
149
|
+
GENTICS.Utils.Position.update();
|
150
|
+
}, 500);
|
151
|
+
});
|
152
|
+
|
153
|
+
jQuery('html').mousemove(function (e) {
|
154
|
+
GENTICS.Utils.Position.Mouse.x = e.pageX;
|
155
|
+
GENTICS.Utils.Position.Mouse.y = e.pageY;
|
156
|
+
});
|
157
|
+
|
158
|
+
});
|
@@ -0,0 +1,923 @@
|
|
1
|
+
/*!
|
2
|
+
* This file is part of Aloha Editor Project http://aloha-editor.org
|
3
|
+
* Copyright © 2010-2011 Gentics Software GmbH, aloha@gentics.com
|
4
|
+
* Contributors http://aloha-editor.org/contribution.php
|
5
|
+
* Licensed unter the terms of http://www.aloha-editor.org/license.html
|
6
|
+
*//*
|
7
|
+
* Aloha Editor is free software: you can redistribute it and/or modify
|
8
|
+
* it under the terms of the GNU Affero General Public License as published by
|
9
|
+
* the Free Software Foundation, either version 3 of the License, or
|
10
|
+
* (at your option) any later version.*
|
11
|
+
*
|
12
|
+
* Aloha Editor is distributed in the hope that it will be useful,
|
13
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
14
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
15
|
+
* GNU Affero General Public License for more details.
|
16
|
+
*
|
17
|
+
* You should have received a copy of the GNU Affero General Public License
|
18
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
19
|
+
*/
|
20
|
+
// Ensure GENTICS Namespace
|
21
|
+
GENTICS = window.GENTICS || {};
|
22
|
+
GENTICS.Utils = GENTICS.Utils || {};
|
23
|
+
|
24
|
+
define(
|
25
|
+
['aloha/jquery', 'util/dom', 'util/class', 'aloha/console', 'aloha/rangy-core'],
|
26
|
+
function(jQuery, Dom, Class, console) {
|
27
|
+
|
28
|
+
|
29
|
+
var
|
30
|
+
GENTICS = window.GENTICS,
|
31
|
+
rangy = window.rangy;
|
32
|
+
|
33
|
+
/**
|
34
|
+
* @namespace GENTICS.Utils
|
35
|
+
* @class RangeObject
|
36
|
+
* Represents a selection range in the browser that
|
37
|
+
* has some advanced features like selecting the range.
|
38
|
+
* @param {object} param if boolean true is passed, the range will be deducted from the current browser selection.
|
39
|
+
* If another rangeObject is passed, it will be cloned.
|
40
|
+
* If nothing is passed, the rangeObject will be empty.
|
41
|
+
* @constructor
|
42
|
+
*/
|
43
|
+
GENTICS.Utils.RangeObject = Class.extend({
|
44
|
+
_constructor: function(param){
|
45
|
+
// Take the values from the passed object
|
46
|
+
if (typeof param === 'object') {
|
47
|
+
if (typeof param.startContainer !== 'undefined') {
|
48
|
+
this.startContainer = param.startContainer;
|
49
|
+
}
|
50
|
+
if (typeof param.startOffset !== 'undefined') {
|
51
|
+
this.startOffset = param.startOffset;
|
52
|
+
}
|
53
|
+
if (typeof param.endContainer !== 'undefined') {
|
54
|
+
this.endContainer = param.endContainer;
|
55
|
+
}
|
56
|
+
if (typeof param.endOffset !== 'undefined') {
|
57
|
+
this.endOffset = param.endOffset;
|
58
|
+
}
|
59
|
+
} else if (param === true) {
|
60
|
+
this.initializeFromUserSelection();
|
61
|
+
}
|
62
|
+
},
|
63
|
+
|
64
|
+
/**
|
65
|
+
* DOM object of the start container of the selection.
|
66
|
+
* This is always has to be a DOM text node.
|
67
|
+
* @property startContainer
|
68
|
+
* @type {DOMObject}
|
69
|
+
*/
|
70
|
+
startContainer: undefined,
|
71
|
+
|
72
|
+
/**
|
73
|
+
* Offset of the selection in the start container
|
74
|
+
* @property startOffset
|
75
|
+
* @type {Integer}
|
76
|
+
*/
|
77
|
+
startOffset: undefined,
|
78
|
+
|
79
|
+
/**
|
80
|
+
* DOM object of the end container of the selection.
|
81
|
+
* This is always has to be a DOM text node.
|
82
|
+
* @property endContainer
|
83
|
+
* @type {DOMObject}
|
84
|
+
*/
|
85
|
+
endContainer: undefined,
|
86
|
+
|
87
|
+
/**
|
88
|
+
* Offset of the selection in the end container
|
89
|
+
* @property endOffset
|
90
|
+
* @type {Integer}
|
91
|
+
*/
|
92
|
+
endOffset: undefined,
|
93
|
+
|
94
|
+
/**
|
95
|
+
* Delete all contents selected by the current range
|
96
|
+
* @param rangeTree a GENTICS.Utils.RangeTree object may be provided to start from. This parameter is optional
|
97
|
+
*/
|
98
|
+
deleteContents: function () {
|
99
|
+
|
100
|
+
Dom.removeRange(this);
|
101
|
+
|
102
|
+
},
|
103
|
+
|
104
|
+
/**
|
105
|
+
* Output some log
|
106
|
+
* TODO: move this to Aloha.Log
|
107
|
+
* @param message log message to output
|
108
|
+
* @return void
|
109
|
+
* @deprecated
|
110
|
+
* @hide
|
111
|
+
*/
|
112
|
+
log: function(message) {
|
113
|
+
console.deprecated( 'Utils.RangeObject', 'log() is deprecated. use ' +
|
114
|
+
'console.log() from module "aloha/console" instead: ' + message);
|
115
|
+
},
|
116
|
+
|
117
|
+
/**
|
118
|
+
* Method to test if a range object is collapsed.
|
119
|
+
* A range is considered collapsed if either no endContainer exists or the endContainer/Offset equal startContainer/Offset
|
120
|
+
* @return {boolean} true if collapsed, false otherwise
|
121
|
+
* @method
|
122
|
+
*/
|
123
|
+
isCollapsed: function() {
|
124
|
+
return (
|
125
|
+
!this.endContainer ||
|
126
|
+
(this.startContainer === this.endContainer && this.startOffset === this.endOffset)
|
127
|
+
);
|
128
|
+
},
|
129
|
+
|
130
|
+
/**
|
131
|
+
* Method to (re-)calculate the common ancestor container and to get it.
|
132
|
+
* The common ancestor container is the DOM Object which encloses the
|
133
|
+
* whole range and is nearest to the start and end container objects.
|
134
|
+
* @return {DOMObject} get the common ancestor container
|
135
|
+
* @method
|
136
|
+
*/
|
137
|
+
getCommonAncestorContainer: function() {
|
138
|
+
if (this.commonAncestorContainer) {
|
139
|
+
// sometimes it's cached (or was set)
|
140
|
+
return this.commonAncestorContainer;
|
141
|
+
}
|
142
|
+
|
143
|
+
// if it's not cached, calculate and then cache it
|
144
|
+
this.updateCommonAncestorContainer();
|
145
|
+
|
146
|
+
// now return it anyway
|
147
|
+
return this.commonAncestorContainer;
|
148
|
+
},
|
149
|
+
|
150
|
+
/**
|
151
|
+
* Get the parent elements of the startContainer/endContainer up to the given limit. When the startContainer/endContainer
|
152
|
+
* is no text element, but a node, the node itself is returned as first element.
|
153
|
+
* @param {jQuery} limit limit object (default: body)
|
154
|
+
* @param {boolean} fromStart true to fetch the parents from the startContainer, false for the endContainer
|
155
|
+
* @return {jQuery} parent elements of the startContainer/endContainer as jQuery objects
|
156
|
+
* @method
|
157
|
+
*/
|
158
|
+
getContainerParents: function (limit, fromEnd) {
|
159
|
+
// TODO cache the calculated parents
|
160
|
+
var
|
161
|
+
container = fromEnd ? this.endContainer : this.startContainer,
|
162
|
+
parents, limitIndex,
|
163
|
+
i;
|
164
|
+
|
165
|
+
if (!container) {
|
166
|
+
return false;
|
167
|
+
}
|
168
|
+
|
169
|
+
if ( typeof limit === 'undefined' || ! limit ) {
|
170
|
+
limit = jQuery('body');
|
171
|
+
}
|
172
|
+
|
173
|
+
|
174
|
+
if (container.nodeType == 3) {
|
175
|
+
parents = jQuery(container).parents();
|
176
|
+
} else {
|
177
|
+
parents = jQuery(container).parents();
|
178
|
+
for (i = parents.length; i > 0; --i) {
|
179
|
+
parents[i] = parents[i - 1];
|
180
|
+
}
|
181
|
+
parents[0] = container;
|
182
|
+
}
|
183
|
+
|
184
|
+
// now slice this array
|
185
|
+
limitIndex = parents.index(limit);
|
186
|
+
|
187
|
+
if (limitIndex >= 0) {
|
188
|
+
parents = parents.slice(0, limitIndex);
|
189
|
+
}
|
190
|
+
|
191
|
+
return parents;
|
192
|
+
},
|
193
|
+
|
194
|
+
/**
|
195
|
+
* Get the parent elements of the startContainer up to the given limit. When the startContainer
|
196
|
+
* is no text element, but a node, the node itself is returned as first element.
|
197
|
+
* @param {jQuery} limit limit object (default: body)
|
198
|
+
* @return {jQuery} parent elements of the startContainer as jQuery objects
|
199
|
+
* @method
|
200
|
+
*/
|
201
|
+
getStartContainerParents: function(limit) {
|
202
|
+
return this.getContainerParents(limit, false);
|
203
|
+
},
|
204
|
+
|
205
|
+
/**
|
206
|
+
* Get the parent elements of the endContainer up to the given limit. When the endContainer is
|
207
|
+
* no text element, but a node, the node itself is returned as first element.
|
208
|
+
* @param {jQuery} limit limit object (default: body)
|
209
|
+
* @return {jQuery} parent elements of the endContainer as jQuery objects
|
210
|
+
* @method
|
211
|
+
*/
|
212
|
+
getEndContainerParents: function(limit) {
|
213
|
+
return this.getContainerParents(limit, true);
|
214
|
+
},
|
215
|
+
|
216
|
+
/**
|
217
|
+
* TODO: the commonAncestorContainer is not calculated correctly, if either the start or
|
218
|
+
* the endContainer would be the cac itself (e.g. when the startContainer is a textNode
|
219
|
+
* and the endContainer is the startContainer's parent <p>). in this case the cac will be set
|
220
|
+
* to the parent div
|
221
|
+
* Method to update a range object internally
|
222
|
+
* @param commonAncestorContainer (DOM Object); optional Parameter; if set, the parameter
|
223
|
+
* will be used instead of the automatically calculated CAC
|
224
|
+
* @return void
|
225
|
+
* @hide
|
226
|
+
*/
|
227
|
+
updateCommonAncestorContainer: function(commonAncestorContainer) {
|
228
|
+
// this will be needed either right now for finding the CAC or later for the crossing index
|
229
|
+
var parentsStartContainer = this.getStartContainerParents(),
|
230
|
+
parentsEndContainer = this.getEndContainerParents(),
|
231
|
+
i;
|
232
|
+
|
233
|
+
// if no parameter was passed, calculate it
|
234
|
+
if (!commonAncestorContainer) {
|
235
|
+
// find the crossing between startContainer and endContainer parents (=commonAncestorContainer)
|
236
|
+
if (!(parentsStartContainer.length > 0 && parentsEndContainer.length > 0)) {
|
237
|
+
console.warn('could not find commonAncestorContainer');
|
238
|
+
return false;
|
239
|
+
}
|
240
|
+
|
241
|
+
for (i = 0; i < parentsStartContainer.length; i++) {
|
242
|
+
if (parentsEndContainer.index( parentsStartContainer[ i ] ) != -1) {
|
243
|
+
this.commonAncestorContainer = parentsStartContainer[ i ];
|
244
|
+
break;
|
245
|
+
}
|
246
|
+
}
|
247
|
+
} else {
|
248
|
+
this.commonAncestorContainer = commonAncestorContainer;
|
249
|
+
}
|
250
|
+
|
251
|
+
// if everything went well, return true :-)
|
252
|
+
console.debug(commonAncestorContainer? 'commonAncestorContainer was set successfully' : 'commonAncestorContainer was calculated successfully');
|
253
|
+
return true;
|
254
|
+
},
|
255
|
+
|
256
|
+
/**
|
257
|
+
* Helper function for selection in IE. Creates a collapsed text range at the given position
|
258
|
+
* @param container container
|
259
|
+
* @param offset offset
|
260
|
+
* @return collapsed text range at that position
|
261
|
+
* @hide
|
262
|
+
*/
|
263
|
+
getCollapsedIERange: function(container, offset) {
|
264
|
+
// create a text range
|
265
|
+
var
|
266
|
+
ieRange = document.body.createTextRange(),
|
267
|
+
tmpRange, right, parent, left;
|
268
|
+
|
269
|
+
// search to the left for the next element
|
270
|
+
left = this.searchElementToLeft(container, offset);
|
271
|
+
if (left.element) {
|
272
|
+
// found an element, set the start to the end of that element
|
273
|
+
tmpRange = document.body.createTextRange();
|
274
|
+
tmpRange.moveToElementText(left.element);
|
275
|
+
ieRange.setEndPoint('StartToEnd', tmpRange);
|
276
|
+
|
277
|
+
// and correct the start
|
278
|
+
if (left.characters !== 0) {
|
279
|
+
ieRange.moveStart('character', left.characters);
|
280
|
+
} else {
|
281
|
+
// this is a hack, when we are at the start of a text node, move the range anyway
|
282
|
+
ieRange.moveStart('character', 1);
|
283
|
+
ieRange.moveStart('character', -1);
|
284
|
+
}
|
285
|
+
} else {
|
286
|
+
// found nothing to the left, so search right
|
287
|
+
right = this.searchElementToRight(container, offset);
|
288
|
+
if (false && right.element) {
|
289
|
+
// found an element, set the start to the start of that element
|
290
|
+
tmpRange = document.body.createTextRange();
|
291
|
+
tmpRange.moveToElementText(right.element);
|
292
|
+
ieRange.setEndPoint('StartToStart', tmpRange);
|
293
|
+
|
294
|
+
// and correct the start
|
295
|
+
if (right.characters !== 0) {
|
296
|
+
ieRange.moveStart('character', -right.characters);
|
297
|
+
} else {
|
298
|
+
ieRange.moveStart('character', -1);
|
299
|
+
ieRange.moveStart('character', 1);
|
300
|
+
}
|
301
|
+
} else {
|
302
|
+
// also found no element to the right, use the container itself
|
303
|
+
parent = container.nodeType == 3 ? container.parentNode : container;
|
304
|
+
tmpRange = document.body.createTextRange();
|
305
|
+
tmpRange.moveToElementText(parent);
|
306
|
+
ieRange.setEndPoint('StartToStart', tmpRange);
|
307
|
+
|
308
|
+
// and correct the start
|
309
|
+
if (left.characters !== 0) {
|
310
|
+
ieRange.moveStart('character', left.characters);
|
311
|
+
}
|
312
|
+
}
|
313
|
+
}
|
314
|
+
ieRange.collapse();
|
315
|
+
|
316
|
+
return ieRange;
|
317
|
+
},
|
318
|
+
|
319
|
+
/**
|
320
|
+
* Sets the visible selection in the Browser based on the range object.
|
321
|
+
* If the selection is collapsed, this will result in a blinking cursor,
|
322
|
+
* otherwise in a text selection.
|
323
|
+
* @method
|
324
|
+
*/
|
325
|
+
select: function() {
|
326
|
+
var ieRange, endRange, startRange, range, sel;
|
327
|
+
|
328
|
+
// create a range
|
329
|
+
range = rangy.createRange();
|
330
|
+
|
331
|
+
// set start and endContainer
|
332
|
+
range.setStart(this.startContainer,this.startOffset);
|
333
|
+
range.setEnd(this.endContainer, this.endOffset);
|
334
|
+
|
335
|
+
// update the selection
|
336
|
+
sel = rangy.getSelection();
|
337
|
+
sel.setSingleRange(range);
|
338
|
+
},
|
339
|
+
|
340
|
+
/**
|
341
|
+
* Starting at the given position, search for the next element to the left and count the number of characters are in between
|
342
|
+
* @param container container of the startpoint
|
343
|
+
* @param offset offset of the startpoint in the container
|
344
|
+
* @return object with 'element' (null if no element found) and 'characters'
|
345
|
+
* @hide
|
346
|
+
*/
|
347
|
+
searchElementToLeft: function (container, offset) {
|
348
|
+
var
|
349
|
+
checkElement,
|
350
|
+
characters = 0;
|
351
|
+
|
352
|
+
if (container.nodeType === 3) {
|
353
|
+
// start is in a text node
|
354
|
+
characters = offset;
|
355
|
+
// begin check at the element to the left (if any)
|
356
|
+
checkElement = container.previousSibling;
|
357
|
+
} else {
|
358
|
+
// start is between nodes, begin check at the element to the left (if any)
|
359
|
+
if (offset > 0) {
|
360
|
+
checkElement = container.childNodes[offset - 1];
|
361
|
+
}
|
362
|
+
}
|
363
|
+
|
364
|
+
// move to the right until we find an element
|
365
|
+
while (checkElement && checkElement.nodeType === 3) {
|
366
|
+
characters += checkElement.data.length;
|
367
|
+
checkElement = checkElement.previousSibling;
|
368
|
+
}
|
369
|
+
|
370
|
+
return {'element' : checkElement, 'characters' : characters};
|
371
|
+
},
|
372
|
+
|
373
|
+
/**
|
374
|
+
* Starting at the given position, search for the next element to the right and count the number of characters that are in between
|
375
|
+
* @param container container of the startpoint
|
376
|
+
* @param offset offset of the startpoint in the container
|
377
|
+
* @return object with 'element' (null if no element found) and 'characters'
|
378
|
+
* @hide
|
379
|
+
*/
|
380
|
+
searchElementToRight: function (container, offset) {
|
381
|
+
var
|
382
|
+
checkElement,
|
383
|
+
characters = 0;
|
384
|
+
|
385
|
+
if (container.nodeType === 3) {
|
386
|
+
// start is in a text node
|
387
|
+
characters = container.data.length - offset;
|
388
|
+
|
389
|
+
// begin check at the element to the right (if any)
|
390
|
+
checkElement = container.nextSibling;
|
391
|
+
} else {
|
392
|
+
// start is between nodes, begin check at the element to the right (if any)
|
393
|
+
if (offset < container.childNodes.length) {
|
394
|
+
checkElement = container.childNodes[offset];
|
395
|
+
}
|
396
|
+
}
|
397
|
+
|
398
|
+
// move to the right until we find an element
|
399
|
+
while (checkElement && checkElement.nodeType === 3) {
|
400
|
+
characters += checkElement.data.length;
|
401
|
+
checkElement = checkElement.nextSibling;
|
402
|
+
}
|
403
|
+
|
404
|
+
return {'element' : checkElement, 'characters' : characters};
|
405
|
+
},
|
406
|
+
|
407
|
+
/**
|
408
|
+
* Method which updates the rangeObject including all extending properties like commonAncestorContainer etc...
|
409
|
+
* TODO: is this method needed here? or should it contain the same code as Aloha.Selection.prototype.SelectionRange.prototype.update?
|
410
|
+
* @return void
|
411
|
+
* @hide
|
412
|
+
*/
|
413
|
+
update: function(event) {
|
414
|
+
console.debug('now updating rangeObject');
|
415
|
+
this.initializeFromUserSelection(event);
|
416
|
+
this.updateCommonAncestorContainer();
|
417
|
+
},
|
418
|
+
|
419
|
+
/**
|
420
|
+
* Initialize the current range object from the user selection of the browser.
|
421
|
+
* @param event which calls the method
|
422
|
+
* @return void
|
423
|
+
* @hide
|
424
|
+
*/
|
425
|
+
initializeFromUserSelection: function(event) {
|
426
|
+
var
|
427
|
+
selection = rangy.getSelection(),
|
428
|
+
browserRange;
|
429
|
+
|
430
|
+
if (!selection) {
|
431
|
+
return false;
|
432
|
+
}
|
433
|
+
|
434
|
+
// check if a ragne exists
|
435
|
+
if ( !selection.rangeCount ) {
|
436
|
+
return false;
|
437
|
+
}
|
438
|
+
|
439
|
+
// getBrowserRange
|
440
|
+
browserRange = selection.getRangeAt(0);
|
441
|
+
if (!browserRange) {
|
442
|
+
return false;
|
443
|
+
}
|
444
|
+
|
445
|
+
// initially set the range to what the browser tells us
|
446
|
+
this.startContainer = browserRange.startContainer;
|
447
|
+
this.endContainer = browserRange.endContainer;
|
448
|
+
this.startOffset = browserRange.startOffset;
|
449
|
+
this.endOffset = browserRange.endOffset;
|
450
|
+
|
451
|
+
// now try to correct the range
|
452
|
+
this.correctRange();
|
453
|
+
return;
|
454
|
+
},
|
455
|
+
|
456
|
+
/**
|
457
|
+
* Correct the current range. The general goal of the algorithm is to have start
|
458
|
+
* and end of the range in text nodes if possible and the end of the range never
|
459
|
+
* at the beginning of an element or text node. Details of the algorithm can be
|
460
|
+
* found in the code comments
|
461
|
+
* @method
|
462
|
+
*/
|
463
|
+
correctRange: function() {
|
464
|
+
var
|
465
|
+
adjacentTextNode,
|
466
|
+
textNode,
|
467
|
+
checkedElement,
|
468
|
+
parentNode,
|
469
|
+
offset;
|
470
|
+
|
471
|
+
this.clearCaches();
|
472
|
+
if (this.isCollapsed()) {
|
473
|
+
// collapsed ranges are treated specially
|
474
|
+
|
475
|
+
// first check if the range is not in a text node
|
476
|
+
if (this.startContainer.nodeType === 1) {
|
477
|
+
if (this.startOffset > 0 && this.startContainer.childNodes[this.startOffset - 1].nodeType === 3) {
|
478
|
+
// when the range is between nodes (container is an element
|
479
|
+
// node) and there is a text node to the left -> move into this text
|
480
|
+
// node (at the end)
|
481
|
+
this.startContainer = this.startContainer.childNodes[this.startOffset - 1];
|
482
|
+
this.startOffset = this.startContainer.data.length;
|
483
|
+
this.endContainer = this.startContainer;
|
484
|
+
this.endOffset = this.startOffset;
|
485
|
+
return;
|
486
|
+
}
|
487
|
+
|
488
|
+
if (this.startOffset > 0 && this.startContainer.childNodes[this.startOffset - 1].nodeType === 1) {
|
489
|
+
// search for the next text node to the left
|
490
|
+
adjacentTextNode = GENTICS.Utils.Dom.searchAdjacentTextNode(this.startContainer, this.startOffset, true);
|
491
|
+
if (adjacentTextNode) {
|
492
|
+
this.startContainer = this.endContainer = adjacentTextNode;
|
493
|
+
this.startOffset = this.endOffset = adjacentTextNode.data.length;
|
494
|
+
return;
|
495
|
+
}
|
496
|
+
// search for the next text node to the right
|
497
|
+
adjacentTextNode = GENTICS.Utils.Dom.searchAdjacentTextNode(this.startContainer, this.startOffset, false);
|
498
|
+
if (adjacentTextNode) {
|
499
|
+
this.startContainer = this.endContainer = adjacentTextNode;
|
500
|
+
this.startOffset = this.endOffset = 0;
|
501
|
+
return;
|
502
|
+
}
|
503
|
+
}
|
504
|
+
|
505
|
+
if (this.startOffset < this.startContainer.childNodes.length && this.startContainer.childNodes[this.startOffset].nodeType === 3) {
|
506
|
+
// when the range is between nodes and there is a text node
|
507
|
+
// to the right -> move into this text node (at the start)
|
508
|
+
this.startContainer = this.startContainer.childNodes[this.startOffset];
|
509
|
+
this.startOffset = 0;
|
510
|
+
this.endContainer = this.startContainer;
|
511
|
+
this.endOffset = 0;
|
512
|
+
return;
|
513
|
+
}
|
514
|
+
}
|
515
|
+
|
516
|
+
// when the selection is in a text node at the start, look for an adjacent text node and if one found, move into that at the end
|
517
|
+
if (this.startContainer.nodeType === 3 && this.startOffset === 0) {
|
518
|
+
adjacentTextNode = GENTICS.Utils.Dom.searchAdjacentTextNode(this.startContainer.parentNode, GENTICS.Utils.Dom.getIndexInParent(this.startContainer), true);
|
519
|
+
if (adjacentTextNode) {
|
520
|
+
this.startContainer = this.endContainer = adjacentTextNode;
|
521
|
+
this.startOffset = this.endOffset = adjacentTextNode.data.length;
|
522
|
+
}
|
523
|
+
}
|
524
|
+
} else {
|
525
|
+
// expanded range found
|
526
|
+
|
527
|
+
// correct the start, but only if between nodes
|
528
|
+
if (this.startContainer.nodeType === 1) {
|
529
|
+
// if there is a text node to the right, move into this
|
530
|
+
if (this.startOffset < this.startContainer.childNodes.length && this.startContainer.childNodes[this.startOffset].nodeType === 3) {
|
531
|
+
this.startContainer = this.startContainer.childNodes[this.startOffset];
|
532
|
+
this.startOffset = 0;
|
533
|
+
} else if (this.startOffset < this.startContainer.childNodes.length && this.startContainer.childNodes[this.startOffset].nodeType === 1) {
|
534
|
+
// there is an element node to the right, so recursively check all first child nodes until we find a text node
|
535
|
+
textNode = false;
|
536
|
+
checkedElement = this.startContainer.childNodes[this.startOffset];
|
537
|
+
while (textNode === false && checkedElement.childNodes && checkedElement.childNodes.length > 0) {
|
538
|
+
// go to the first child of the checked element
|
539
|
+
checkedElement = checkedElement.childNodes[0];
|
540
|
+
// when this element is a text node, we are done
|
541
|
+
if (checkedElement.nodeType === 3) {
|
542
|
+
textNode = checkedElement;
|
543
|
+
}
|
544
|
+
}
|
545
|
+
|
546
|
+
// found a text node, so move into it
|
547
|
+
if (textNode !== false) {
|
548
|
+
this.startContainer = textNode;
|
549
|
+
this.startOffset = 0;
|
550
|
+
}
|
551
|
+
}
|
552
|
+
}
|
553
|
+
|
554
|
+
// check whether the start is inside a text node at the end
|
555
|
+
if (this.startContainer.nodeType === 3 && this.startOffset === this.startContainer.data.length) {
|
556
|
+
// check whether there is an adjacent text node to the right and if
|
557
|
+
// yes, move into it
|
558
|
+
adjacentTextNode = GENTICS.Utils.Dom
|
559
|
+
.searchAdjacentTextNode(this.startContainer.parentNode, GENTICS.Utils.Dom
|
560
|
+
.getIndexInParent(this.startContainer) + 1, false);
|
561
|
+
if (adjacentTextNode) {
|
562
|
+
this.startContainer = adjacentTextNode;
|
563
|
+
this.startOffset = 0;
|
564
|
+
}
|
565
|
+
}
|
566
|
+
|
567
|
+
// now correct the end
|
568
|
+
if (this.endContainer.nodeType === 3 && this.endOffset === 0) {
|
569
|
+
// we are in a text node at the start
|
570
|
+
if (this.endContainer.previousSibling && this.endContainer.previousSibling.nodeType === 3) {
|
571
|
+
// found a text node to the left -> move into it (at the end)
|
572
|
+
this.endContainer = this.endContainer.previousSibling;
|
573
|
+
this.endOffset = this.endContainer.data.length;
|
574
|
+
} else if (this.endContainer.previousSibling && this.endContainer.previousSibling.nodeType === 1 && this.endContainer.parentNode) {
|
575
|
+
// found an element node to the left -> move in between
|
576
|
+
parentNode = this.endContainer.parentNode;
|
577
|
+
for (offset = 0; offset < parentNode.childNodes.length; ++offset) {
|
578
|
+
if (parentNode.childNodes[offset] == this.endContainer) {
|
579
|
+
this.endOffset = offset;
|
580
|
+
break;
|
581
|
+
}
|
582
|
+
}
|
583
|
+
this.endContainer = parentNode;
|
584
|
+
}
|
585
|
+
}
|
586
|
+
|
587
|
+
if (this.endContainer.nodeType == 1 && this.endOffset === 0) {
|
588
|
+
// we are in an element node at the start, possibly move to the previous sibling at the end
|
589
|
+
if (this.endContainer.previousSibling) {
|
590
|
+
if (this.endContainer.previousSibling.nodeType === 3) {
|
591
|
+
// previous sibling is a text node, move end into here (at the end)
|
592
|
+
this.endContainer = this.endContainer.previousSibling;
|
593
|
+
this.endOffset = this.endContainer.data.length;
|
594
|
+
} else if (
|
595
|
+
this.endContainer.previousSibling.nodeType === 1
|
596
|
+
&& this.endContainer.previousSibling.childNodes
|
597
|
+
&& this.endContainer.previousSibling.childNodes.length > 0) {
|
598
|
+
// previous sibling is another element node with children,
|
599
|
+
// move end into here (at the end)
|
600
|
+
this.endContainer = this.endContainer.previousSibling;
|
601
|
+
this.endOffset = this.endContainer.childNodes.length;
|
602
|
+
}
|
603
|
+
}
|
604
|
+
}
|
605
|
+
|
606
|
+
// correct the end, but only if between nodes
|
607
|
+
if (this.endContainer.nodeType == 1) {
|
608
|
+
// if there is a text node to the left, move into this
|
609
|
+
if (this.endOffset > 0 && this.endContainer.childNodes[this.endOffset - 1].nodeType === 3) {
|
610
|
+
this.endContainer = this.endContainer.childNodes[this.endOffset - 1];
|
611
|
+
this.endOffset = this.endContainer.data.length;
|
612
|
+
} else if (this.endOffset > 0 && this.endContainer.childNodes[this.endOffset - 1].nodeType === 1) {
|
613
|
+
// there is an element node to the left, so recursively check all last child nodes until we find a text node
|
614
|
+
textNode = false;
|
615
|
+
checkedElement = this.endContainer.childNodes[this.endOffset - 1];
|
616
|
+
while (textNode === false && checkedElement.childNodes && checkedElement.childNodes.length > 0) {
|
617
|
+
// go to the last child of the checked element
|
618
|
+
checkedElement = checkedElement.childNodes[checkedElement.childNodes.length - 1];
|
619
|
+
// when this element is a text node, we are done
|
620
|
+
if (checkedElement.nodeType === 3) {
|
621
|
+
textNode = checkedElement;
|
622
|
+
}
|
623
|
+
}
|
624
|
+
|
625
|
+
// found a text node, so move into it
|
626
|
+
if (textNode !== false) {
|
627
|
+
this.endContainer = textNode;
|
628
|
+
this.endOffset = this.endContainer.data.length;
|
629
|
+
}
|
630
|
+
}
|
631
|
+
}
|
632
|
+
}
|
633
|
+
},
|
634
|
+
|
635
|
+
/**
|
636
|
+
* Clear the caches for this range. This method must be called when the range itself (start-/endContainer or start-/endOffset) is modified.
|
637
|
+
* @method
|
638
|
+
*/
|
639
|
+
clearCaches: function () {
|
640
|
+
this.commonAncestorContainer = undefined;
|
641
|
+
},
|
642
|
+
|
643
|
+
/**
|
644
|
+
* Get the range tree of this range.
|
645
|
+
* The range tree will be cached for every root object. When the range itself is modified, the cache should be cleared by calling GENTICS.Utils.RangeObject.clearCaches
|
646
|
+
* @param {DOMObject} root root object of the range tree, if non given, the common ancestor container of the start and end containers will be used
|
647
|
+
* @return {RangeTree} array of RangeTree object for the given root object
|
648
|
+
* @method
|
649
|
+
*/
|
650
|
+
getRangeTree: function (root) {
|
651
|
+
// TODO cache rangeTrees
|
652
|
+
if (typeof root === 'undefined') {
|
653
|
+
root = this.getCommonAncestorContainer();
|
654
|
+
}
|
655
|
+
|
656
|
+
this.inselection = false;
|
657
|
+
return this.recursiveGetRangeTree(root);
|
658
|
+
},
|
659
|
+
|
660
|
+
/**
|
661
|
+
* Recursive inner function for generating the range tree.
|
662
|
+
* @param currentObject current DOM object for which the range tree shall be generated
|
663
|
+
* @return array of Tree objects for the children of the current DOM object
|
664
|
+
* @hide
|
665
|
+
*/
|
666
|
+
recursiveGetRangeTree: function (currentObject) {
|
667
|
+
// get all direct children of the given object
|
668
|
+
var jQueryCurrentObject = jQuery(currentObject),
|
669
|
+
childCount = 0,
|
670
|
+
that = this,
|
671
|
+
currentElements = [];
|
672
|
+
|
673
|
+
jQueryCurrentObject.contents().each(function(index) {
|
674
|
+
var type = 'none',
|
675
|
+
startOffset = false,
|
676
|
+
endOffset = false,
|
677
|
+
collapsedFound = false,
|
678
|
+
noneFound = false,
|
679
|
+
partialFound = false,
|
680
|
+
fullFound = false,
|
681
|
+
i;
|
682
|
+
|
683
|
+
// check for collapsed selections between nodes
|
684
|
+
if (that.isCollapsed() && currentObject === that.startContainer && that.startOffset === index) {
|
685
|
+
// insert an extra rangetree object for the collapsed range here
|
686
|
+
currentElements[childCount] = new GENTICS.Utils.RangeTree();
|
687
|
+
currentElements[childCount].type = 'collapsed';
|
688
|
+
currentElements[childCount].domobj = undefined;
|
689
|
+
that.inselection = false;
|
690
|
+
collapsedFound = true;
|
691
|
+
childCount++;
|
692
|
+
}
|
693
|
+
|
694
|
+
if (!that.inselection && !collapsedFound) {
|
695
|
+
// the start of the selection was not yet found, so look for it now
|
696
|
+
// check whether the start of the selection is found here
|
697
|
+
|
698
|
+
// check is dependent on the node type
|
699
|
+
switch(this.nodeType) {
|
700
|
+
case 3: // text node
|
701
|
+
if (this === that.startContainer) {
|
702
|
+
// the selection starts here
|
703
|
+
that.inselection = true;
|
704
|
+
|
705
|
+
// when the startoffset is > 0, the selection type is only partial
|
706
|
+
type = that.startOffset > 0 ? 'partial' : 'full';
|
707
|
+
startOffset = that.startOffset;
|
708
|
+
endOffset = this.length;
|
709
|
+
}
|
710
|
+
break;
|
711
|
+
case 1: // element node
|
712
|
+
if (this === that.startContainer && that.startOffset === 0) {
|
713
|
+
// the selection starts here
|
714
|
+
that.inselection = true;
|
715
|
+
type = 'full';
|
716
|
+
}
|
717
|
+
if (currentObject === that.startContainer && that.startOffset === index) {
|
718
|
+
// the selection starts here
|
719
|
+
that.inselection = true;
|
720
|
+
type = 'full';
|
721
|
+
}
|
722
|
+
break;
|
723
|
+
}
|
724
|
+
}
|
725
|
+
|
726
|
+
if (that.inselection && !collapsedFound) {
|
727
|
+
if (type == 'none') {
|
728
|
+
type = 'full';
|
729
|
+
}
|
730
|
+
// we already found the start of the selection, so look for the end of the selection now
|
731
|
+
// check whether the end of the selection is found here
|
732
|
+
|
733
|
+
switch(this.nodeType) {
|
734
|
+
case 3: // text node
|
735
|
+
if (this === that.endContainer) {
|
736
|
+
// the selection ends here
|
737
|
+
that.inselection = false;
|
738
|
+
|
739
|
+
// check for partial selection here
|
740
|
+
if (that.endOffset < this.length) {
|
741
|
+
type = 'partial';
|
742
|
+
}
|
743
|
+
if (startOffset === false) {
|
744
|
+
startOffset = 0;
|
745
|
+
}
|
746
|
+
endOffset = that.endOffset;
|
747
|
+
}
|
748
|
+
break;
|
749
|
+
case 1: // element node
|
750
|
+
if (this === that.endContainer && that.endOffset === 0) {
|
751
|
+
that.inselection = false;
|
752
|
+
}
|
753
|
+
break;
|
754
|
+
}
|
755
|
+
if (currentObject === that.endContainer && that.endOffset <= index) {
|
756
|
+
that.inselection = false;
|
757
|
+
type = 'none';
|
758
|
+
}
|
759
|
+
}
|
760
|
+
|
761
|
+
// create the current selection tree entry
|
762
|
+
currentElements[childCount] = new GENTICS.Utils.RangeTree();
|
763
|
+
currentElements[childCount].domobj = this;
|
764
|
+
currentElements[childCount].type = type;
|
765
|
+
if (type == 'partial') {
|
766
|
+
currentElements[childCount].startOffset = startOffset;
|
767
|
+
currentElements[childCount].endOffset = endOffset;
|
768
|
+
}
|
769
|
+
|
770
|
+
// now do the recursion step into the current object
|
771
|
+
currentElements[childCount].children = that.recursiveGetRangeTree(this);
|
772
|
+
|
773
|
+
// check whether a selection was found within the children
|
774
|
+
if (currentElements[childCount].children.length > 0) {
|
775
|
+
for ( i = 0; i < currentElements[childCount].children.length; ++i) {
|
776
|
+
switch(currentElements[childCount].children[i].type) {
|
777
|
+
case 'none':
|
778
|
+
noneFound = true;
|
779
|
+
break;
|
780
|
+
case 'full':
|
781
|
+
fullFound = true;
|
782
|
+
break;
|
783
|
+
case 'partial':
|
784
|
+
partialFound = true;
|
785
|
+
break;
|
786
|
+
}
|
787
|
+
}
|
788
|
+
|
789
|
+
if (partialFound || (fullFound && noneFound)) {
|
790
|
+
// found at least one 'partial' DOM object in the children, or both 'full' and 'none', so this element is also 'partial' contained
|
791
|
+
currentElements[childCount].type = 'partial';
|
792
|
+
} else if (fullFound && !partialFound && !noneFound) {
|
793
|
+
// only found 'full' contained children, so this element is also 'full' contained
|
794
|
+
currentElements[childCount].type = 'full';
|
795
|
+
}
|
796
|
+
}
|
797
|
+
|
798
|
+
childCount++;
|
799
|
+
});
|
800
|
+
|
801
|
+
// extra check for collapsed selections at the end of the current element
|
802
|
+
if (this.isCollapsed()
|
803
|
+
&& currentObject === this.startContainer
|
804
|
+
&& this.startOffset == currentObject.childNodes.length) {
|
805
|
+
currentElements[childCount] = new GENTICS.Utils.RangeTree();
|
806
|
+
currentElements[childCount].type = 'collapsed';
|
807
|
+
currentElements[childCount].domobj = undefined;
|
808
|
+
}
|
809
|
+
|
810
|
+
return currentElements;
|
811
|
+
},
|
812
|
+
|
813
|
+
/**
|
814
|
+
* Find certain the first occurrence of some markup within the parents of either the start or the end of this range.
|
815
|
+
* The markup can be identified by means of a given comparator function. The function will be passed every parent (up to the eventually given limit object, which itself is not considered) to the comparator function as this.
|
816
|
+
* When the comparator function returns boolean true, the markup found and finally returned from this function as dom object.<br/>
|
817
|
+
* Example for finding an anchor tag at the start of the range up to the active editable object:<br/>
|
818
|
+
* <pre>
|
819
|
+
* range.findMarkup(
|
820
|
+
* function() {
|
821
|
+
* return this.nodeName.toLowerCase() == 'a';
|
822
|
+
* },
|
823
|
+
* jQuery(Aloha.activeEditable.obj)
|
824
|
+
* );
|
825
|
+
* </pre>
|
826
|
+
* @param {function} comparator comparator function to find certain markup
|
827
|
+
* @param {jQuery} limit limit objects for limit the parents taken into consideration
|
828
|
+
* @param {boolean} atEnd true for searching at the end of the range, false for the start (default: false)
|
829
|
+
* @return {DOMObject} the found dom object or false if nothing found.
|
830
|
+
* @method
|
831
|
+
*/
|
832
|
+
findMarkup: function (comparator, limit, atEnd) {
|
833
|
+
var parents = this.getContainerParents(limit, atEnd),
|
834
|
+
returnValue = false;
|
835
|
+
jQuery.each(parents, function (index, domObj) {
|
836
|
+
if (comparator.apply(domObj)) {
|
837
|
+
returnValue = domObj;
|
838
|
+
return false;
|
839
|
+
}
|
840
|
+
});
|
841
|
+
|
842
|
+
return returnValue;
|
843
|
+
},
|
844
|
+
|
845
|
+
/**
|
846
|
+
* Get the text enclosed by this range
|
847
|
+
* @return {String} the text of the range
|
848
|
+
* @method
|
849
|
+
*/
|
850
|
+
getText: function() {
|
851
|
+
if (this.isCollapsed()) {
|
852
|
+
return '';
|
853
|
+
} else {
|
854
|
+
return this.recursiveGetText(this.getRangeTree());
|
855
|
+
}
|
856
|
+
},
|
857
|
+
|
858
|
+
recursiveGetText: function (tree) {
|
859
|
+
if (!tree) {
|
860
|
+
return '';
|
861
|
+
} else {
|
862
|
+
var that = this,
|
863
|
+
text = '';
|
864
|
+
jQuery.each(tree, function() {
|
865
|
+
if (this.type == 'full') {
|
866
|
+
// fully selected element/text node
|
867
|
+
text += jQuery(this.domobj).text();
|
868
|
+
} else if (this.type == 'partial' && this.domobj.nodeType === 3) {
|
869
|
+
// partially selected text node
|
870
|
+
text += jQuery(this.domobj).text().substring(this.startOffset, this.endOffset);
|
871
|
+
} else if (this.type == 'partial' && this.domobj.nodeType === 1 && this.children) {
|
872
|
+
// partially selected element node
|
873
|
+
text += that.recursiveGetText(this.children);
|
874
|
+
}
|
875
|
+
});
|
876
|
+
return text;
|
877
|
+
}
|
878
|
+
}
|
879
|
+
});
|
880
|
+
|
881
|
+
/**
|
882
|
+
* @namespace GENTICS.Utils
|
883
|
+
* @class RangeTree
|
884
|
+
* Class definition of a RangeTree, which gives a tree view of the DOM objects included in this range
|
885
|
+
* Structure:
|
886
|
+
* <pre>
|
887
|
+
* +
|
888
|
+
* |-domobj: <reference to the DOM Object> (NOT jQuery)
|
889
|
+
* |-type: defines if this node is marked by user [none|partial|full|collapsed]
|
890
|
+
* |-children: recursive structure like this
|
891
|
+
* </pre>
|
892
|
+
*/
|
893
|
+
GENTICS.Utils.RangeTree = Class.extend({
|
894
|
+
/**
|
895
|
+
* DOMObject, if the type is one of [none|partial|full], undefined if the type is [collapsed]
|
896
|
+
* @property domobj
|
897
|
+
* @type {DOMObject}
|
898
|
+
*/
|
899
|
+
domobj: {},
|
900
|
+
|
901
|
+
/**
|
902
|
+
* type of the participation of the dom object in the range. Is one of:
|
903
|
+
* <pre>
|
904
|
+
* - none the DOMObject is outside of the range
|
905
|
+
* - partial the DOMObject partially in the range
|
906
|
+
* - full the DOMObject is completely in the range
|
907
|
+
* - collapsed the current RangeTree element marks the position of a collapsed range between DOM nodes
|
908
|
+
* </pre>
|
909
|
+
* @property type
|
910
|
+
* @type {String}
|
911
|
+
*/
|
912
|
+
type: null,
|
913
|
+
|
914
|
+
/**
|
915
|
+
* Array of RangeTree objects which reflect the status of the child elements of the current DOMObject
|
916
|
+
* @property children
|
917
|
+
* @type {Array}
|
918
|
+
*/
|
919
|
+
children: []
|
920
|
+
});
|
921
|
+
|
922
|
+
return GENTICS.Utils.RangeObject;
|
923
|
+
});
|