gnuside-aloha-rails 0.23.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +18 -0
- data/README.md +48 -0
- data/Rakefile +69 -0
- data/app/assets/javascripts/aloha.js +3 -0
- data/app/assets/javascripts/aloha/preinit.js.erb +1 -0
- data/lib/aloha-rails.rb +1 -0
- data/lib/aloha/rails.rb +2 -0
- data/lib/aloha/rails/engine.rb +9 -0
- data/lib/aloha/rails/version.rb +7 -0
- data/lib/tasks/aloha-assets.rake +9 -0
- data/vendor/assets/javascripts/aloha/css/aloha.scss +31 -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-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/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-jquery-noconflict.js +14 -0
- data/vendor/assets/javascripts/aloha/lib/aloha.js +595 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/block-jump.js +153 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/command.js +287 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/console.js +347 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/contenthandlermanager.js +104 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/copypaste.js +108 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/core.js +623 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/ecma5shims.js +326 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/editable.js +1042 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/engine.js +8646 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/ephemera.js +492 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/ierange-m2.js +29 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/jquery.aloha.js +542 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/markup.js +1276 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/nls/ca/i18n.js +11 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/nls/de/i18n.js +11 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/nls/i18n.js +20 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/nls/mk/i18n.js +11 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/nls/pt-br/i18n.js +11 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/nls/ru/i18n.js +11 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/nls/uk/i18n.js +11 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/nls/zh-hans/i18n.js +11 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/observable.js +113 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/plugin.js +281 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/pluginmanager.js +203 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/rangy-core.js +30 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/registry.js +137 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/repository.js +255 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/repositorymanager.js +742 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/repositoryobjects.js +162 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/selection.js +2402 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/sidebar.js +1045 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/state-override.js +147 -0
- data/vendor/assets/javascripts/aloha/lib/css.js +455 -0
- data/vendor/assets/javascripts/aloha/lib/i18n.js +192 -0
- data/vendor/assets/javascripts/aloha/lib/require.js +2053 -0
- data/vendor/assets/javascripts/aloha/lib/text.js +288 -0
- data/vendor/assets/javascripts/aloha/lib/util/arrays.js +287 -0
- data/vendor/assets/javascripts/aloha/lib/util/boundary-markers.js +86 -0
- data/vendor/assets/javascripts/aloha/lib/util/browser.js +32 -0
- data/vendor/assets/javascripts/aloha/lib/util/class.js +78 -0
- data/vendor/assets/javascripts/aloha/lib/util/dom.js +1888 -0
- data/vendor/assets/javascripts/aloha/lib/util/dom2.js +908 -0
- data/vendor/assets/javascripts/aloha/lib/util/functions.js +62 -0
- data/vendor/assets/javascripts/aloha/lib/util/html.js +311 -0
- data/vendor/assets/javascripts/aloha/lib/util/json2.js +464 -0
- data/vendor/assets/javascripts/aloha/lib/util/keys.js +65 -0
- data/vendor/assets/javascripts/aloha/lib/util/lang.js +89 -0
- data/vendor/assets/javascripts/aloha/lib/util/maps.js +130 -0
- data/vendor/assets/javascripts/aloha/lib/util/misc.js +51 -0
- data/vendor/assets/javascripts/aloha/lib/util/position.js +176 -0
- data/vendor/assets/javascripts/aloha/lib/util/range-context.js +776 -0
- data/vendor/assets/javascripts/aloha/lib/util/range.js +917 -0
- data/vendor/assets/javascripts/aloha/lib/util/strings.js +122 -0
- data/vendor/assets/javascripts/aloha/lib/util/trees.js +336 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/3rdparty.txt +70 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/amplify.store.js +298 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/class.js +76 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/grid.locale.de.js +138 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/grid.locale.en.js +133 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ierange-m2.js +508 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/jquery-1.7.2.js +9421 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/jquery-ui-1.9.0.custom-aloha.js +14711 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/jquery.jqgrid.js +474 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/jquery.jstree.js +4549 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/jquery.layout-1.3.0-rc30.7.js +5924 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/pubsub/js/pubsub-unminified.js +187 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/pubsub/js/pubsub.js +2 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/rangy-core.js +3295 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/repository-browser/css/jstree.css +88 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/repository-browser/css/repository-browser.css +744 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/repository-browser/img/arrow-000-medium.png +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/repository-browser/img/arrow-180.png +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/repository-browser/img/arrow-315-medium.png +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/repository-browser/img/arrow-stop-180.png +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/repository-browser/img/arrow-stop.png +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/repository-browser/img/arrow.png +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/repository-browser/img/control-stop-square-small.png +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/repository-browser/img/folder-horizontal-open.png +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/repository-browser/img/folder-open.png +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/repository-browser/img/magnifier-left.png +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/repository-browser/img/page.png +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/repository-browser/img/picture.png +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/repository-browser/img/sort-alphabet-descending.png +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/repository-browser/img/sort-alphabet.png +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/repository-browser/img/throbber.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/repository-browser/js/repository-browser-unminified.js +1450 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/repository-browser/js/repository-browser.js +32 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/sanitize.js +278 -0
- data/vendor/assets/javascripts/aloha/plugins/common/abbr/css/abbr.css +1 -0
- data/vendor/assets/javascripts/aloha/plugins/common/abbr/img/remabbr.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/abbr/lib/abbr-plugin.js +304 -0
- data/vendor/assets/javascripts/aloha/plugins/common/abbr/nls/ca/i18n.js +6 -0
- data/vendor/assets/javascripts/aloha/plugins/common/abbr/nls/de/i18n.js +6 -0
- data/vendor/assets/javascripts/aloha/plugins/common/abbr/nls/i18n.js +15 -0
- data/vendor/assets/javascripts/aloha/plugins/common/abbr/nls/mk/i18n.js +6 -0
- data/vendor/assets/javascripts/aloha/plugins/common/abbr/nls/pt-br/i18n.js +6 -0
- data/vendor/assets/javascripts/aloha/plugins/common/abbr/nls/ru/i18n.js +6 -0
- data/vendor/assets/javascripts/aloha/plugins/common/abbr/nls/uk/i18n.js +6 -0
- data/vendor/assets/javascripts/aloha/plugins/common/abbr/nls/zh-hans/i18n.js +6 -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 +31 -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 +465 -0
- data/vendor/assets/javascripts/aloha/plugins/common/align/nls/ca/i18n.js +6 -0
- data/vendor/assets/javascripts/aloha/plugins/common/align/nls/de/i18n.js +9 -0
- data/vendor/assets/javascripts/aloha/plugins/common/align/nls/i18n.js +18 -0
- data/vendor/assets/javascripts/aloha/plugins/common/align/nls/mk/i18n.js +6 -0
- data/vendor/assets/javascripts/aloha/plugins/common/align/nls/pt-br/i18n.js +6 -0
- data/vendor/assets/javascripts/aloha/plugins/common/align/nls/ru/i18n.js +6 -0
- data/vendor/assets/javascripts/aloha/plugins/common/align/nls/uk/i18n.js +6 -0
- data/vendor/assets/javascripts/aloha/plugins/common/align/nls/zh-hans/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 +110 -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 +347 -0
- data/vendor/assets/javascripts/aloha/plugins/common/block/lib/block.js +1277 -0
- data/vendor/assets/javascripts/aloha/plugins/common/block/lib/blockcontenthandler.js +118 -0
- data/vendor/assets/javascripts/aloha/plugins/common/block/lib/blockmanager.js +621 -0
- data/vendor/assets/javascripts/aloha/plugins/common/block/lib/editor.js +331 -0
- data/vendor/assets/javascripts/aloha/plugins/common/block/lib/editormanager.js +55 -0
- data/vendor/assets/javascripts/aloha/plugins/common/block/lib/sidebarattributeeditor.js +126 -0
- data/vendor/assets/javascripts/aloha/plugins/common/block/nls/ca/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/common/block/nls/de/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/common/block/nls/i18n.js +12 -0
- data/vendor/assets/javascripts/aloha/plugins/common/block/nls/mk/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/common/block/nls/pt-br/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/common/block/nls/ru/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/common/block/nls/uk/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/common/block/nls/zh-hans/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/common/block/package.json +11 -0
- data/vendor/assets/javascripts/aloha/plugins/common/characterpicker/css/characterpicker.css +44 -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 +466 -0
- data/vendor/assets/javascripts/aloha/plugins/common/characterpicker/nls/ca/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/common/characterpicker/nls/de/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/common/characterpicker/nls/i18n.js +12 -0
- data/vendor/assets/javascripts/aloha/plugins/common/characterpicker/nls/mk/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/common/characterpicker/nls/pt-br/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/common/characterpicker/nls/ru/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/common/characterpicker/nls/uk/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/common/characterpicker/nls/zh-hans/i18n.js +3 -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 +33 -0
- data/vendor/assets/javascripts/aloha/plugins/common/commands/lib/inserthtml.js +126 -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/blockelementcontenthandler.js +144 -0
- data/vendor/assets/javascripts/aloha/plugins/common/contenthandler/lib/contenthandler-plugin.js +65 -0
- data/vendor/assets/javascripts/aloha/plugins/common/contenthandler/lib/contenthandler-utils.js +58 -0
- data/vendor/assets/javascripts/aloha/plugins/common/contenthandler/lib/genericcontenthandler.js +359 -0
- data/vendor/assets/javascripts/aloha/plugins/common/contenthandler/lib/oembedcontenthandler.js +461 -0
- data/vendor/assets/javascripts/aloha/plugins/common/contenthandler/lib/sanitizecontenthandler.js +186 -0
- data/vendor/assets/javascripts/aloha/plugins/common/contenthandler/lib/wordcontenthandler.js +461 -0
- data/vendor/assets/javascripts/aloha/plugins/common/contenthandler/package.json +1 -0
- data/vendor/assets/javascripts/aloha/plugins/common/dom-to-xhtml/lib/dom-to-xhtml-plugin.js +74 -0
- data/vendor/assets/javascripts/aloha/plugins/common/dom-to-xhtml/lib/dom-to-xhtml.js +415 -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 +594 -0
- data/vendor/assets/javascripts/aloha/plugins/common/format/nls/ca/i18n.js +52 -0
- data/vendor/assets/javascripts/aloha/plugins/common/format/nls/de/i18n.js +52 -0
- data/vendor/assets/javascripts/aloha/plugins/common/format/nls/i18n.js +61 -0
- data/vendor/assets/javascripts/aloha/plugins/common/format/nls/mk/i18n.js +52 -0
- data/vendor/assets/javascripts/aloha/plugins/common/format/nls/pt-br/i18n.js +52 -0
- data/vendor/assets/javascripts/aloha/plugins/common/format/nls/ru/i18n.js +52 -0
- data/vendor/assets/javascripts/aloha/plugins/common/format/nls/uk/i18n.js +52 -0
- data/vendor/assets/javascripts/aloha/plugins/common/format/nls/zh-hans/i18n.js +52 -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 +100 -0
- data/vendor/assets/javascripts/aloha/plugins/common/highlighteditables/package.json +1 -0
- data/vendor/assets/javascripts/aloha/plugins/common/horizontalruler/css/horizontalruler.css +3 -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 +95 -0
- data/vendor/assets/javascripts/aloha/plugins/common/horizontalruler/nls/ca/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/common/horizontalruler/nls/de/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/common/horizontalruler/nls/i18n.js +12 -0
- data/vendor/assets/javascripts/aloha/plugins/common/horizontalruler/nls/mk/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/common/horizontalruler/nls/pt-br/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/common/horizontalruler/nls/ru/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/common/horizontalruler/nls/uk/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/common/horizontalruler/nls/zh-hans/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/README.md +66 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/css/image.css +133 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/img/blank.jpg +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/img/crop-buttons.gif +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-floatingMenu.js +308 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/lib/image-plugin-actions.js +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/lib/image-plugin.js +1341 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/nls/ca/i18n.js +32 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/nls/de/i18n.js +32 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/nls/i18n.js +41 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/nls/mk/i18n.js +32 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/nls/pt-br/i18n.js +32 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/nls/ru/i18n.js +32 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/nls/uk/i18n.js +32 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/nls/zh-hans/i18n.js +32 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/package.json +1 -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 +46 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/vendor/jcrop/jquery.jcrop.min.js +165 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/vendor/mousewheel/mousewheel.js +85 -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/link/css/link.css +52 -0
- data/vendor/assets/javascripts/aloha/plugins/common/link/extra/delicious.js +264 -0
- data/vendor/assets/javascripts/aloha/plugins/common/link/extra/linklist.js +247 -0
- data/vendor/assets/javascripts/aloha/plugins/common/link/extra/slowlinklist.js +247 -0
- data/vendor/assets/javascripts/aloha/plugins/common/link/lib/link-plugin.js +958 -0
- data/vendor/assets/javascripts/aloha/plugins/common/link/nls/ca/i18n.js +14 -0
- data/vendor/assets/javascripts/aloha/plugins/common/link/nls/de/i18n.js +14 -0
- data/vendor/assets/javascripts/aloha/plugins/common/link/nls/i18n.js +23 -0
- data/vendor/assets/javascripts/aloha/plugins/common/link/nls/mk/i18n.js +14 -0
- data/vendor/assets/javascripts/aloha/plugins/common/link/nls/pt-br/i18n.js +14 -0
- data/vendor/assets/javascripts/aloha/plugins/common/link/nls/ru/i18n.js +14 -0
- data/vendor/assets/javascripts/aloha/plugins/common/link/nls/uk/i18n.js +14 -0
- data/vendor/assets/javascripts/aloha/plugins/common/link/nls/zh-hans/i18n.js +14 -0
- data/vendor/assets/javascripts/aloha/plugins/common/list/lib/list-plugin.js +878 -0
- data/vendor/assets/javascripts/aloha/plugins/common/list/nls/ca/i18n.js +7 -0
- data/vendor/assets/javascripts/aloha/plugins/common/list/nls/de/i18n.js +7 -0
- data/vendor/assets/javascripts/aloha/plugins/common/list/nls/i18n.js +16 -0
- data/vendor/assets/javascripts/aloha/plugins/common/list/nls/mk/i18n.js +7 -0
- data/vendor/assets/javascripts/aloha/plugins/common/list/nls/pt-br/i18n.js +7 -0
- data/vendor/assets/javascripts/aloha/plugins/common/list/nls/ru/i18n.js +7 -0
- data/vendor/assets/javascripts/aloha/plugins/common/list/nls/uk/i18n.js +7 -0
- data/vendor/assets/javascripts/aloha/plugins/common/list/nls/zh-hans/i18n.js +7 -0
- data/vendor/assets/javascripts/aloha/plugins/common/list/package.json +1 -0
- data/vendor/assets/javascripts/aloha/plugins/common/paste/lib/paste-plugin.js +457 -0
- data/vendor/assets/javascripts/aloha/plugins/common/paste/package.json +8 -0
- data/vendor/assets/javascripts/aloha/plugins/common/table/css/table.css +125 -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 +542 -0
- data/vendor/assets/javascripts/aloha/plugins/common/table/lib/table-create-layer.js +213 -0
- data/vendor/assets/javascripts/aloha/plugins/common/table/lib/table-plugin-utils.js +494 -0
- data/vendor/assets/javascripts/aloha/plugins/common/table/lib/table-plugin.js +1596 -0
- data/vendor/assets/javascripts/aloha/plugins/common/table/lib/table-selection.js +468 -0
- data/vendor/assets/javascripts/aloha/plugins/common/table/lib/table.js +2110 -0
- data/vendor/assets/javascripts/aloha/plugins/common/table/nls/ca/i18n.js +28 -0
- data/vendor/assets/javascripts/aloha/plugins/common/table/nls/de/i18n.js +29 -0
- data/vendor/assets/javascripts/aloha/plugins/common/table/nls/i18n.js +38 -0
- data/vendor/assets/javascripts/aloha/plugins/common/table/nls/mk/i18n.js +28 -0
- data/vendor/assets/javascripts/aloha/plugins/common/table/nls/pt-br/i18n.js +28 -0
- data/vendor/assets/javascripts/aloha/plugins/common/table/nls/ru/i18n.js +28 -0
- data/vendor/assets/javascripts/aloha/plugins/common/table/nls/uk/i18n.js +28 -0
- data/vendor/assets/javascripts/aloha/plugins/common/table/nls/zh-hans/i18n.js +28 -0
- data/vendor/assets/javascripts/aloha/plugins/common/table/package.json +1 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/css/jquery-ui-1.9m6.css +430 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/css/ui.css +689 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/img/blockquote.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/img/character-picker.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/img/em.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/img/format-block.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/img/format-inline.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/img/indent.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/img/jqueryui/ui-icons_222222_256x240.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/img/justify.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/img/language-annotation.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/img/metaview.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/img/metaview/anchor.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/img/metaview/blockquote.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/img/metaview/caption.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/img/metaview/cite.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/img/metaview/dd.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/img/metaview/div.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/img/metaview/dl.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/img/metaview/dt.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/img/metaview/h1.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/img/metaview/h2.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/img/metaview/h3.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/img/metaview/h4.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/img/metaview/h5.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/img/metaview/h6.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/img/metaview/p.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/img/metaview/pre.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/img/metaview/q.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/img/metaview/table.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/img/metaview/td.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/img/metaview/th.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/img/multisplit-close.gif +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/img/multisplit-open.gif +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/img/outdent.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/img/quote.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/img/removeformat.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/img/strong.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/img/tree.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/lib/arena.js +11 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/lib/autocomplete.js +70 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/lib/button.js +114 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/lib/component.js +121 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/lib/container.js +210 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/lib/context.js +53 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/lib/dialog.js +215 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/lib/floating.js +405 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/lib/menuButton.js +169 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/lib/multiSplit.js +237 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/lib/port-helper-attribute-field.js +440 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/lib/port-helper-multi-split.js +71 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/lib/scopes.js +187 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/lib/settings.js +202 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/lib/subguarded.js +183 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/lib/surface.js +106 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/lib/tab.js +316 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/lib/text.js +33 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/lib/toggleButton.js +57 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/lib/toolbar.js +251 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/lib/ui-plugin.js +169 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/lib/ui.js +181 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/lib/utils.js +104 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/nls/ca/i18n.js +46 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/nls/de/i18n.js +48 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/nls/i18n.js +75 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/nls/mk/i18n.js +46 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/nls/pt-br/i18n.js +46 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/nls/ru/i18n.js +46 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/nls/uk/i18n.js +46 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/nls/zh-hans/i18n.js +46 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/vendor/jquery-ui-autocomplete-html.js +42 -0
- data/vendor/assets/javascripts/aloha/plugins/common/undo/lib/undo-plugin.js +165 -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 +121 -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 +237 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/attributes/nls/ca/i18n.js +5 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/attributes/nls/de/i18n.js +5 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/attributes/nls/i18n.js +14 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/attributes/nls/mk/i18n.js +5 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/attributes/nls/pt-br/i18n.js +5 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/attributes/nls/ru/i18n.js +5 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/attributes/nls/uk/i18n.js +5 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/attributes/nls/zh-hans/i18n.js +5 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/captioned-image/css/captioned-image.css +15 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/captioned-image/lib/captioned-image-plugin.js +555 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/cite/README +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/cite/css/cite.css +39 -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 +614 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/cite/nls/ca/i18n.js +4 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/cite/nls/de/i18n.js +4 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/cite/nls/i18n.js +13 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/cite/nls/mk/i18n.js +4 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/cite/nls/pt-br/i18n.js +4 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/cite/nls/ru/i18n.js +4 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/cite/nls/uk/i18n.js +4 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/cite/nls/zh-hans/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/lib/comments-plugin.js +692 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/comments/lib/comments.css +442 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/comments/package.json +1 -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/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 +363 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/lib/dropfilesrepository.js +365 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/nls/ca/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/nls/de/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/nls/i18n.js +12 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/nls/mk/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/nls/pt-br/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/nls/ru/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/nls/uk/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/nls/zh-hans/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/package.json +1 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/formatlesspaste/README.md +1 -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 +97 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/formatlesspaste/lib/formatlesspaste-plugin.js +230 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/formatlesspaste/nls/ca/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/formatlesspaste/nls/de/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/formatlesspaste/nls/i18n.js +12 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/formatlesspaste/nls/mk/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/formatlesspaste/nls/pt-br/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/formatlesspaste/nls/ru/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/formatlesspaste/nls/uk/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/formatlesspaste/nls/zh-hans/i18n.js +3 -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 +254 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/headerids/nls/ca/i18n.js +6 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/headerids/nls/de/i18n.js +6 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/headerids/nls/i18n.js +15 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/headerids/nls/mk/i18n.js +6 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/headerids/nls/pt-br/i18n.js +6 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/headerids/nls/ru/i18n.js +6 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/headerids/nls/uk/i18n.js +6 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/headerids/nls/zh-hans/i18n.js +6 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/hints/README.md +12 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/hints/css/hints.css +29 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/hints/lib/hints-plugin.js +97 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/hints/package.json +9 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/hints/vendor/tipsy.js +242 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/imagebrowser/README +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/imagebrowser/lib/imagebrowser-plugin.js +160 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/imagebrowser/nls/ca/i18n.js +6 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/imagebrowser/nls/de/i18n.js +6 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/imagebrowser/nls/i18n.js +15 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/imagebrowser/nls/mk/i18n.js +6 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/imagebrowser/nls/pt-br/i18n.js +6 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/imagebrowser/nls/ru/i18n.js +6 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/imagebrowser/nls/uk/i18n.js +6 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/imagebrowser/nls/zh-hans/i18n.js +6 -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 +161 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/nls/ca/i18n.js +6 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/nls/de/i18n.js +6 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/nls/i18n.js +15 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/nls/mk/i18n.js +6 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/nls/pt-br/i18n.js +6 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/nls/ru/i18n.js +6 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/nls/uk/i18n.js +6 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/nls/zh-hans/i18n.js +6 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkchecker/nls/ca/i18n.js +28 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkchecker/nls/de/i18n.js +28 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkchecker/nls/i18n.js +37 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkchecker/nls/mk/i18n.js +28 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkchecker/nls/pt-br/i18n.js +28 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkchecker/nls/ru/i18n.js +28 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkchecker/nls/uk/i18n.js +28 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkchecker/nls/zh-hans/i18n.js +28 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkchecker/package.json +1 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkchecker/proxy.php.example +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 +269 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/listenforcer/lib/listenforcer-plugin.js +190 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/metaview/README +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/metaview/css/metaview.css +78 -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/hr.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 +185 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/metaview/nls/ca/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/metaview/nls/de/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/metaview/nls/i18n.js +12 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/metaview/nls/mk/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/metaview/nls/pt-br/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/metaview/nls/ru/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/metaview/nls/uk/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/metaview/nls/zh-hans/i18n.js +3 -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/img/headers.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/numerated-headers/lib/numerated-headers-plugin.js +421 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/numerated-headers/nls/ca/i18n.js +5 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/numerated-headers/nls/de/i18n.js +6 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/numerated-headers/nls/i18n.js +15 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/numerated-headers/nls/mk/i18n.js +5 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/numerated-headers/nls/pt-br/i18n.js +5 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/numerated-headers/nls/ru/i18n.js +5 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/numerated-headers/nls/uk/i18n.js +5 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/numerated-headers/nls/zh-hans/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 +304 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/ribbon/README.md +8 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/ribbon/css/ribbon.css +54 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/ribbon/img/fade-in.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/ribbon/img/fade-out.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/ribbon/lib/ribbon-plugin.js +144 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/ribbon/package.json +1 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/sourceview/css/sourceview.css +18 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/sourceview/lib/sourceview-plugin.js +252 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/sourceview/vendor/htmlbeautifier.js +468 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/textcolor/css/textcolor.css +65 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/textcolor/img/icon.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/textcolor/lib/textcolor-plugin.js +420 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/textcolor/nls/de/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/textcolor/nls/i18n.js +6 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/toc/lib/toc-plugin.js +399 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/toc/nls/ca/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/toc/nls/de/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/toc/nls/i18n.js +12 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/toc/nls/mk/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/toc/nls/pt-br/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/toc/nls/ru/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/toc/nls/uk/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/toc/nls/zh-hans/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/toc/package.json +1 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/validation/lib/validation-plugin.js +277 -0
- data/vendor/assets/stylesheets/aloha-common-extra.css +24 -0
- data/vendor/assets/stylesheets/aloha-core.css +19 -0
- data/vendor/assets/stylesheets/aloha-reset.css +24 -0
- data/vendor/assets/stylesheets/aloha-sidebar.css +296 -0
- data/vendor/assets/stylesheets/aloha.css +31 -0
- metadata +898 -0
@@ -0,0 +1,1045 @@
|
|
1
|
+
/* sidebar.js is part of Aloha Editor project http://aloha-editor.org
|
2
|
+
*
|
3
|
+
* Aloha Editor is a WYSIWYG HTML5 inline editing library and editor.
|
4
|
+
* Copyright (c) 2010-2012 Gentics Software GmbH, Vienna, Austria.
|
5
|
+
* Contributors http://aloha-editor.org/contribution.php
|
6
|
+
*
|
7
|
+
* Aloha Editor is free software; you can redistribute it and/or
|
8
|
+
* modify it under the terms of the GNU General Public License
|
9
|
+
* as published by the Free Software Foundation; either version 2
|
10
|
+
* of the License, or 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 General Public License for more details.
|
16
|
+
*
|
17
|
+
* You should have received a copy of the GNU General Public License
|
18
|
+
* along with this program; if not, write to the Free Software
|
19
|
+
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
20
|
+
*
|
21
|
+
* As an additional permission to the GNU GPL version 2, you may distribute
|
22
|
+
* non-source (e.g., minimized or compacted) forms of the Aloha-Editor
|
23
|
+
* source code without the copy of the GNU GPL normally required,
|
24
|
+
* provided you include this license notice and a URL through which
|
25
|
+
* recipients can access the Corresponding Source.
|
26
|
+
*/
|
27
|
+
/**
|
28
|
+
* @todo: - Make the sidebars resizable using drag handles.
|
29
|
+
* - Make overlayPage setting settable from external config.
|
30
|
+
*/
|
31
|
+
|
32
|
+
define([
|
33
|
+
'aloha/core',
|
34
|
+
'jquery',
|
35
|
+
'aloha/selection',
|
36
|
+
'PubSub'
|
37
|
+
], function (
|
38
|
+
Aloha,
|
39
|
+
$,
|
40
|
+
Selection,
|
41
|
+
PubSub
|
42
|
+
) {
|
43
|
+
'use strict';
|
44
|
+
|
45
|
+
var uid = +(new Date());
|
46
|
+
|
47
|
+
// Extend jQuery easing animations.
|
48
|
+
//debugger;
|
49
|
+
if (!$.easing.easeOutExpo) {
|
50
|
+
$.extend($.easing, {
|
51
|
+
easeOutExpo: function (x, t, b, c, d) {
|
52
|
+
return (t == d) ? b + c : c * (-Math.pow(2, -10 * t / d) + 1) + b;
|
53
|
+
},
|
54
|
+
easeOutElastic: function (x, t, b, c, d) {
|
55
|
+
var m = Math,
|
56
|
+
s = 1.70158,
|
57
|
+
p = 0,
|
58
|
+
a = c;
|
59
|
+
if (!t) {
|
60
|
+
return b;
|
61
|
+
}
|
62
|
+
if ((t /= d) == 1) {
|
63
|
+
return b + c;
|
64
|
+
}
|
65
|
+
if (!p) {
|
66
|
+
p = d * 0.3;
|
67
|
+
}
|
68
|
+
if (a < m.abs(c)) {
|
69
|
+
a = c;
|
70
|
+
s = p / 4;
|
71
|
+
} else {
|
72
|
+
s = p / (2 * m.PI) * m.asin(c / a);
|
73
|
+
}
|
74
|
+
return a * m.pow(2, -10 * t) * m.sin((t * d - s) * (2 * m.PI) / p) + c + b;
|
75
|
+
}
|
76
|
+
});
|
77
|
+
}
|
78
|
+
|
79
|
+
var Panel = function Panel(opts) {
|
80
|
+
this.id = null;
|
81
|
+
this.folds = {};
|
82
|
+
this.button = null;
|
83
|
+
this.title = $('<div class="aloha-sidebar-panel-title">' + '<span class="aloha-sidebar-panel-title-arrow"></span>' + '<span class="aloha-sidebar-panel-title-text">Untitled</span>' + '</div>');
|
84
|
+
this.content = $('<div class="aloha-sidebar-panel-content">' + '<div class="aloha-sidebar-panel-content-inner">' + '<div class="aloha-sidebar-panel-content-inner-text"></div>' + '</div>' + '</div>');
|
85
|
+
this.element = null;
|
86
|
+
this.effectiveElement = null;
|
87
|
+
this.expanded = false;
|
88
|
+
this.isActive = true;
|
89
|
+
this.init(opts);
|
90
|
+
};
|
91
|
+
|
92
|
+
var Sidebar = function Sidebar(opts) {
|
93
|
+
var sidebar = this;
|
94
|
+
this.id = 'aloha-sidebar-' + (++uid);
|
95
|
+
this.panels = {};
|
96
|
+
this.container = $('<div class="aloha-ui aloha-sidebar-bar">' + '<div class="aloha-sidebar-handle">' + '<span class="aloha-sidebar-handle-icon"></span>' + '</div>' + '<div class="aloha-sidebar-inner">' + '<ul class="aloha-sidebar-panels"></ul>' + '</div>' + '</div>');
|
97
|
+
this.width = 300;
|
98
|
+
this.opened = false;
|
99
|
+
this.isOpen = false;
|
100
|
+
this.isCompletelyOpen = false;
|
101
|
+
this.settings = {
|
102
|
+
// We automatically set this to true when we are in IE, where
|
103
|
+
// rotating elements using filters causes undesirable rendering
|
104
|
+
// ugliness. Our solution is to fallback to swapping icon images.
|
105
|
+
// We set this as a sidebar property so that it can overridden by
|
106
|
+
// whoever thinks they are smarter than we are.
|
107
|
+
rotateIcons: !$.browser.msie,
|
108
|
+
overlayPage: true
|
109
|
+
};
|
110
|
+
|
111
|
+
$(function () {
|
112
|
+
if (!((typeof Aloha.settings.sidebar !== 'undefined') && Aloha.settings.sidebar.disabled)) {
|
113
|
+
sidebar.init(opts);
|
114
|
+
}
|
115
|
+
});
|
116
|
+
};
|
117
|
+
|
118
|
+
/**
|
119
|
+
* The last calculated view port height.
|
120
|
+
* @type {number}
|
121
|
+
*/
|
122
|
+
var previousViewportHeight = null;
|
123
|
+
var previousActivePanelIds = null;
|
124
|
+
|
125
|
+
$.extend(Sidebar.prototype, {
|
126
|
+
|
127
|
+
// We build as much of the sidebar as we can before appending it to DOM
|
128
|
+
// to minimize reflow.
|
129
|
+
init: function (opts) {
|
130
|
+
var that = this;
|
131
|
+
var panels;
|
132
|
+
|
133
|
+
if (typeof opts === 'object') {
|
134
|
+
panels = opts.panels;
|
135
|
+
delete opts.panels;
|
136
|
+
}
|
137
|
+
|
138
|
+
$.extend(this, opts);
|
139
|
+
|
140
|
+
if (typeof panels === 'object') {
|
141
|
+
$.each(panels, function () {
|
142
|
+
that.addPanel(this, true);
|
143
|
+
});
|
144
|
+
}
|
145
|
+
|
146
|
+
var bar = this.container;
|
147
|
+
|
148
|
+
if (this.position === 'right') {
|
149
|
+
bar.addClass('aloha-sidebar-right');
|
150
|
+
}
|
151
|
+
|
152
|
+
bar.hide().appendTo($('body')).click(function () {
|
153
|
+
that.barClicked.apply(that, arguments);
|
154
|
+
}).find('.aloha-sidebar-panels').width(this.width);
|
155
|
+
|
156
|
+
// IE7 needs us to explicitly set the container width, since it is
|
157
|
+
// unable to determine it on its own.
|
158
|
+
bar.width(this.width);
|
159
|
+
this.width = bar.width();
|
160
|
+
|
161
|
+
this.updateHeight();
|
162
|
+
this.initToggler();
|
163
|
+
|
164
|
+
this.container.css(this.position === 'right' ? 'marginRight' : 'marginLeft', -this.width);
|
165
|
+
|
166
|
+
if (this.opened) {
|
167
|
+
this.open(0);
|
168
|
+
}
|
169
|
+
|
170
|
+
this.toggleHandleIcon(this.isOpen);
|
171
|
+
this.subscribeToEvents();
|
172
|
+
|
173
|
+
$(window).resize(function () {
|
174
|
+
that.updateHeight();
|
175
|
+
that.correctHeight();
|
176
|
+
});
|
177
|
+
|
178
|
+
this.correctHeight();
|
179
|
+
},
|
180
|
+
|
181
|
+
show: function () {
|
182
|
+
this.container.css('display', 'block');
|
183
|
+
return this;
|
184
|
+
},
|
185
|
+
|
186
|
+
hide: function () {
|
187
|
+
this.container.css('display', 'none');
|
188
|
+
return this;
|
189
|
+
},
|
190
|
+
|
191
|
+
/**
|
192
|
+
* Determines the effective elements at the current selection.
|
193
|
+
* Iterates through all panels and checks whether the panel should be
|
194
|
+
* activated for any of the effective elements in the selection.
|
195
|
+
*
|
196
|
+
* @param {Aloha.RangeObject} range The current selection range.
|
197
|
+
*/
|
198
|
+
checkActivePanels: function (range) {
|
199
|
+
var effective = [];
|
200
|
+
|
201
|
+
if (typeof range !== 'undefined' && typeof range.markupEffectiveAtStart !== 'undefined') {
|
202
|
+
var l = range.markupEffectiveAtStart.length;
|
203
|
+
var i;
|
204
|
+
for (i = 0; i < l; ++i) {
|
205
|
+
effective.push($(range.markupEffectiveAtStart[i]));
|
206
|
+
}
|
207
|
+
}
|
208
|
+
|
209
|
+
var that = this;
|
210
|
+
|
211
|
+
$.each(this.panels, function () {
|
212
|
+
that.showActivePanel(this, effective);
|
213
|
+
});
|
214
|
+
|
215
|
+
this.correctHeight();
|
216
|
+
},
|
217
|
+
|
218
|
+
subscribeToEvents: function () {
|
219
|
+
var that = this;
|
220
|
+
|
221
|
+
PubSub.sub('aloha.selection.context-change', function (message) {
|
222
|
+
if (that.isOpen) {
|
223
|
+
that.checkActivePanels(message.range);
|
224
|
+
}
|
225
|
+
that.lastRange = message.range;
|
226
|
+
});
|
227
|
+
|
228
|
+
Aloha.bind('aloha-editable-deactivated', function (event, params) {
|
229
|
+
if (that.isOpen) {
|
230
|
+
that.checkActivePanels();
|
231
|
+
}
|
232
|
+
that.lastRange = null;
|
233
|
+
});
|
234
|
+
|
235
|
+
this.container.mousedown(function (e) {
|
236
|
+
e.originalEvent.stopSelectionUpdate = true;
|
237
|
+
Aloha.eventHandled = true;
|
238
|
+
});
|
239
|
+
|
240
|
+
this.container.mouseup(function (e) {
|
241
|
+
e.originalEvent.stopSelectionUpdate = true;
|
242
|
+
Aloha.eventHandled = false;
|
243
|
+
});
|
244
|
+
},
|
245
|
+
|
246
|
+
/**
|
247
|
+
* Dynamically set appropriate heights for panels.
|
248
|
+
* The height for each panel is determined by the amount of space that
|
249
|
+
* is available in the viewport and the number of panels that need to
|
250
|
+
* share that space.
|
251
|
+
*/
|
252
|
+
correctHeight: function () {
|
253
|
+
if (!this.isOpen) {
|
254
|
+
return;
|
255
|
+
}
|
256
|
+
if (!this.isCompletelyOpen) {
|
257
|
+
this.correctHeightWhenCompletelyOpen = true;
|
258
|
+
return;
|
259
|
+
}
|
260
|
+
|
261
|
+
var viewportHeight = $(window).height();
|
262
|
+
var activePanelIds = [];
|
263
|
+
var panels = [];
|
264
|
+
var panelId;
|
265
|
+
for (panelId in this.panels) {
|
266
|
+
if (this.panels.hasOwnProperty(panelId)) {
|
267
|
+
if (this.panels[panelId].isActive) {
|
268
|
+
panels.push(this.panels[panelId]);
|
269
|
+
activePanelIds.push(panelId);
|
270
|
+
}
|
271
|
+
}
|
272
|
+
}
|
273
|
+
|
274
|
+
if (0 === panels.length) {
|
275
|
+
return;
|
276
|
+
}
|
277
|
+
|
278
|
+
activePanelIds = activePanelIds.sort().join(',');
|
279
|
+
|
280
|
+
if (previousActivePanelIds === activePanelIds && previousViewportHeight === viewportHeight) {
|
281
|
+
return;
|
282
|
+
}
|
283
|
+
|
284
|
+
previousViewportHeight = viewportHeight;
|
285
|
+
previousActivePanelIds = activePanelIds;
|
286
|
+
|
287
|
+
var height = this.container.find('.aloha-sidebar-inner').height();
|
288
|
+
var remainingHeight = height - ((panels[0].title.outerHeight() + 10) * panels.length);
|
289
|
+
var panel;
|
290
|
+
var targetHeight;
|
291
|
+
var panelInner;
|
292
|
+
var panelText;
|
293
|
+
var undone;
|
294
|
+
var toadd = 0;
|
295
|
+
var math = Math;
|
296
|
+
var j;
|
297
|
+
|
298
|
+
while (panels.length > 0 && remainingHeight > 0) {
|
299
|
+
remainingHeight += toadd;
|
300
|
+
toadd = 0;
|
301
|
+
undone = [];
|
302
|
+
|
303
|
+
for (j = panels.length - 1; j >= 0; --j) {
|
304
|
+
panel = panels[j];
|
305
|
+
panelInner = panel.content.find('.aloha-sidebar-panel-content-inner');
|
306
|
+
|
307
|
+
targetHeight = math.min(
|
308
|
+
panelInner.height('auto').height(),
|
309
|
+
math.floor(remainingHeight / (j + 1))
|
310
|
+
);
|
311
|
+
|
312
|
+
panelInner.height(targetHeight);
|
313
|
+
remainingHeight -= targetHeight;
|
314
|
+
panelText = panelInner.find('.aloha-sidebar-panel-content-inner-text');
|
315
|
+
|
316
|
+
if (panelText.height() > targetHeight) {
|
317
|
+
undone.push(panel);
|
318
|
+
toadd += targetHeight;
|
319
|
+
panelInner.css({
|
320
|
+
'overflow-x': 'hidden',
|
321
|
+
'overflow-y': 'scroll'
|
322
|
+
});
|
323
|
+
} else {
|
324
|
+
panelInner.css('overflow-y', 'hidden');
|
325
|
+
}
|
326
|
+
|
327
|
+
if (panel.expanded) {
|
328
|
+
panel.expand();
|
329
|
+
}
|
330
|
+
}
|
331
|
+
|
332
|
+
panels = undone;
|
333
|
+
}
|
334
|
+
},
|
335
|
+
|
336
|
+
/**
|
337
|
+
* Checks whether this panel should be activated (ie: made visible) for
|
338
|
+
* any of the elements specified in a given list of elements.
|
339
|
+
*
|
340
|
+
* We have to add a null object to the list of elements to allow us to
|
341
|
+
* check whether the panel should be visible when we have no effective
|
342
|
+
* elements in the current selection
|
343
|
+
*
|
344
|
+
* @param {object} panel The Panel object we will test
|
345
|
+
* @param {Array.<jQuery.<HTMLElement>>} elements The effective
|
346
|
+
* elements, any of
|
347
|
+
* which may activate
|
348
|
+
* the panel.
|
349
|
+
*/
|
350
|
+
showActivePanel: function (panel, elements) {
|
351
|
+
elements.push(null);
|
352
|
+
|
353
|
+
var li = panel.content.parent('li');
|
354
|
+
var activeOn = panel.activeOn;
|
355
|
+
var effective = $();
|
356
|
+
var count = 0;
|
357
|
+
var j = elements.length;
|
358
|
+
var i;
|
359
|
+
|
360
|
+
for (i = 0; i < j; ++i) {
|
361
|
+
if (activeOn(elements[i])) {
|
362
|
+
++count;
|
363
|
+
if (elements[i]) {
|
364
|
+
$.merge(effective, elements[i]);
|
365
|
+
}
|
366
|
+
}
|
367
|
+
}
|
368
|
+
|
369
|
+
if (count) {
|
370
|
+
panel.activate(effective);
|
371
|
+
} else {
|
372
|
+
panel.deactivate();
|
373
|
+
}
|
374
|
+
},
|
375
|
+
|
376
|
+
/**
|
377
|
+
* Sets up the functionality, event listeners, and animation of the
|
378
|
+
* sidebar handle
|
379
|
+
*/
|
380
|
+
initToggler: function () {
|
381
|
+
var that = this;
|
382
|
+
var bar = this.container;
|
383
|
+
var icon = bar.find('.aloha-sidebar-handle-icon');
|
384
|
+
var toggledClass = 'aloha-sidebar-toggled';
|
385
|
+
var bounceTimer;
|
386
|
+
var isRight = (this.position === 'right');
|
387
|
+
|
388
|
+
if (this.opened) {
|
389
|
+
this.rotateHandleArrow(isRight ? 0 : 180, 0);
|
390
|
+
}
|
391
|
+
|
392
|
+
// configure the position of the sidebar handle
|
393
|
+
$(function () {
|
394
|
+
if (typeof Aloha.settings.sidebar !== 'undefined' && Aloha.settings.sidebar.handle && Aloha.settings.sidebar.handle.top) {
|
395
|
+
$(bar.find('.aloha-sidebar-handle'))[0].style.top = Aloha.settings.sidebar.handle.top;
|
396
|
+
}
|
397
|
+
});
|
398
|
+
|
399
|
+
bar.find('.aloha-sidebar-handle').click(function () {
|
400
|
+
if (bounceTimer) {
|
401
|
+
clearInterval(bounceTimer);
|
402
|
+
}
|
403
|
+
|
404
|
+
icon.stop().css('marginLeft', 4);
|
405
|
+
|
406
|
+
if (that.isOpen) {
|
407
|
+
$(this).removeClass(toggledClass);
|
408
|
+
that.close();
|
409
|
+
that.isOpen = false;
|
410
|
+
} else {
|
411
|
+
$(this).addClass(toggledClass);
|
412
|
+
that.open();
|
413
|
+
that.isOpen = true;
|
414
|
+
}
|
415
|
+
}).hover(function () {
|
416
|
+
var flag = that.isOpen ? -1 : 1;
|
417
|
+
|
418
|
+
if (bounceTimer) {
|
419
|
+
clearInterval(bounceTimer);
|
420
|
+
}
|
421
|
+
|
422
|
+
icon.stop();
|
423
|
+
|
424
|
+
$(this).stop().animate(
|
425
|
+
isRight ? {
|
426
|
+
marginLeft: '-=' + (flag * 5)
|
427
|
+
} : {
|
428
|
+
marginRight: '-=' + (flag * 5)
|
429
|
+
},
|
430
|
+
200
|
431
|
+
);
|
432
|
+
|
433
|
+
bounceTimer = setInterval(function () {
|
434
|
+
flag *= -1;
|
435
|
+
icon.animate(
|
436
|
+
isRight ? {
|
437
|
+
left: '-=' + (flag * 4)
|
438
|
+
} : {
|
439
|
+
right: '-=' + (flag * 4)
|
440
|
+
},
|
441
|
+
300
|
442
|
+
);
|
443
|
+
}, 300);
|
444
|
+
}, function () {
|
445
|
+
if (bounceTimer) {
|
446
|
+
clearInterval(bounceTimer);
|
447
|
+
}
|
448
|
+
|
449
|
+
icon.stop().css(isRight ? 'left' : 'right', 5);
|
450
|
+
|
451
|
+
$(this).stop().animate(
|
452
|
+
isRight ? {
|
453
|
+
marginLeft: 0
|
454
|
+
} : {
|
455
|
+
marginRight: 0
|
456
|
+
},
|
457
|
+
600,
|
458
|
+
'easeOutElastic'
|
459
|
+
);
|
460
|
+
});
|
461
|
+
},
|
462
|
+
|
463
|
+
/**
|
464
|
+
* Rounds the top corners of the first visible panel, and the bottom
|
465
|
+
* corners of the last visible panel elements in the panels ul list.
|
466
|
+
* @deprecated
|
467
|
+
* @fixme: css3
|
468
|
+
*/
|
469
|
+
roundCorners: function () {
|
470
|
+
|
471
|
+
var bar = this.container;
|
472
|
+
var lis = bar.find('.aloha-sidebar-panels>li:not(.aloha-sidebar-deactivated)');
|
473
|
+
var topClass = 'aloha-sidebar-panel-top';
|
474
|
+
var bottomClass = 'aloha-sidebar-panel-bottom';
|
475
|
+
|
476
|
+
bar.find('.aloha-sidebar-panel-top, .aloha-sidebar-panel-bottom').removeClass(topClass).removeClass(bottomClass);
|
477
|
+
|
478
|
+
lis.first().find('.aloha-sidebar-panel-title').addClass(topClass);
|
479
|
+
lis.last().find('.aloha-sidebar-panel-content').addClass(bottomClass);
|
480
|
+
},
|
481
|
+
|
482
|
+
/**
|
483
|
+
* Updates the height of the inner div of the sidebar. This is done
|
484
|
+
* whenever the viewport is resized.
|
485
|
+
*/
|
486
|
+
updateHeight: function () {
|
487
|
+
var h = $(window).height();
|
488
|
+
this.container.height(h).find('.aloha-sidebar-inner').height(h);
|
489
|
+
},
|
490
|
+
|
491
|
+
/**
|
492
|
+
* Delegate all sidebar onclick events to the container.
|
493
|
+
* Then use handleBarclick method until we bubble up to the first
|
494
|
+
* significant element that we can interact with.
|
495
|
+
*/
|
496
|
+
barClicked: function (ev) {
|
497
|
+
this.handleBarclick($(ev.target));
|
498
|
+
},
|
499
|
+
|
500
|
+
/**
|
501
|
+
* We handle all click events on the sidebar from here--dispatching
|
502
|
+
* calls to which ever methods that should be invoked for the each
|
503
|
+
* interaction.
|
504
|
+
*/
|
505
|
+
handleBarclick: function (el) {
|
506
|
+
if (el.hasClass('aloha-sidebar-panel-title')) {
|
507
|
+
this.togglePanel(el);
|
508
|
+
} else if (!el.hasClass('aloha-sidebar-panel-content') && !el.hasClass('aloha-sidebar-handle') && !el.hasClass('aloha-sidebar-bar')) {
|
509
|
+
this.handleBarclick(el.parent());
|
510
|
+
}
|
511
|
+
},
|
512
|
+
|
513
|
+
getPanelById: function (id) {
|
514
|
+
return this.panels[id];
|
515
|
+
},
|
516
|
+
|
517
|
+
getPanelByElement: function (el) {
|
518
|
+
var li = (el[0].tagName === 'LI') ? el : el.parent('li');
|
519
|
+
return this.getPanelById(li[0].id);
|
520
|
+
},
|
521
|
+
|
522
|
+
togglePanel: function (el) {
|
523
|
+
this.getPanelByElement(el).toggle();
|
524
|
+
},
|
525
|
+
|
526
|
+
/**
|
527
|
+
* Animation to rotate the sidebar arrow
|
528
|
+
*
|
529
|
+
* @param {number} angle The angle two which the arrow should rotate
|
530
|
+
* (0 or 180).
|
531
|
+
* @param {number|String} duration (Optional) How long the animation
|
532
|
+
* should play for.
|
533
|
+
*/
|
534
|
+
rotateHandleIcon: function (angle, duration) {
|
535
|
+
var arr = this.container.find('.aloha-sidebar-handle-icon');
|
536
|
+
arr.animate({
|
537
|
+
angle: angle
|
538
|
+
}, {
|
539
|
+
duration: (typeof duration === 'number' || typeof duration === 'string') ? duration : 500,
|
540
|
+
easing: 'easeOutExpo',
|
541
|
+
step: function (val, fx) {
|
542
|
+
arr.css({
|
543
|
+
'-o-transform': 'rotate(' + val + 'deg)',
|
544
|
+
'-webkit-transform': 'rotate(' + val + 'deg)',
|
545
|
+
'-moz-transform': 'rotate(' + val + 'deg)',
|
546
|
+
'-ms-transform': 'rotate(' + val + 'deg)'
|
547
|
+
// We cannot use Microsoft Internet Explorer filters
|
548
|
+
// because Microsoft Internet Explore 8 does not support
|
549
|
+
// Microsoft Internet Explorer filters correctly. It
|
550
|
+
// breaks the layout
|
551
|
+
// filter : 'progid:DXImageTransform.Microsoft.BasicImage(rotation=' + (angle / 90) + ')'
|
552
|
+
});
|
553
|
+
}
|
554
|
+
});
|
555
|
+
},
|
556
|
+
|
557
|
+
/**
|
558
|
+
* Sets the handle icon to the "i am opened, click me to close the
|
559
|
+
* sidebar" state, or vice versa. The direction of the arrow depends
|
560
|
+
* on whether the sidebar is on the left or right, and whether it is
|
561
|
+
* in an opened state or not.
|
562
|
+
*
|
563
|
+
* @param {boolean} isOpen Whether or not the sidebar is in the opened
|
564
|
+
* state.
|
565
|
+
*/
|
566
|
+
toggleHandleIcon: function (isOpen) {
|
567
|
+
var isPointingLeft = (this.position === 'right') ^ isOpen;
|
568
|
+
|
569
|
+
if (this.settings.rotateIcons) {
|
570
|
+
this.rotateHandleIcon(isPointingLeft ? 180 : 0, 0);
|
571
|
+
} else {
|
572
|
+
var icon = this.container.find('.aloha-sidebar-handle-icon');
|
573
|
+
|
574
|
+
if (isPointingLeft) {
|
575
|
+
icon.addClass('aloha-sidebar-handle-icon-left');
|
576
|
+
} else {
|
577
|
+
icon.removeClass('aloha-sidebar-handle-icon-left');
|
578
|
+
}
|
579
|
+
}
|
580
|
+
},
|
581
|
+
|
582
|
+
/**
|
583
|
+
* Slides the sidebar into view
|
584
|
+
*/
|
585
|
+
open: function (duration, callback) {
|
586
|
+
if (this.isOpen) {
|
587
|
+
return this;
|
588
|
+
}
|
589
|
+
|
590
|
+
var isRight = (this.position === 'right');
|
591
|
+
var anim = isRight ? {
|
592
|
+
marginRight: 0
|
593
|
+
} : {
|
594
|
+
marginLeft: 0
|
595
|
+
};
|
596
|
+
var sidebar = this;
|
597
|
+
|
598
|
+
this.toggleHandleIcon(true);
|
599
|
+
this.container.animate(anim, (typeof duration === 'number' || typeof duration === 'string') ? duration : 500, 'easeOutExpo');
|
600
|
+
|
601
|
+
if (!this.settings.overlayPage) {
|
602
|
+
$('body').animate(
|
603
|
+
isRight ? {
|
604
|
+
marginRight: '+=' + this.width
|
605
|
+
} : {
|
606
|
+
marginLeft: '+=' + this.width
|
607
|
+
},
|
608
|
+
500,
|
609
|
+
'easeOutExpo',
|
610
|
+
function () {
|
611
|
+
sidebar.isCompletelyOpen = true;
|
612
|
+
if (sidebar.correctHeightWhenCompletelyOpen) {
|
613
|
+
sidebar.correctHeight();
|
614
|
+
}
|
615
|
+
}
|
616
|
+
);
|
617
|
+
}
|
618
|
+
|
619
|
+
this.isOpen = true;
|
620
|
+
this.correctHeight();
|
621
|
+
if (this.lastRange) {
|
622
|
+
this.checkActivePanels(this.lastRange);
|
623
|
+
}
|
624
|
+
$('body').trigger('aloha-sidebar-opened', this);
|
625
|
+
|
626
|
+
return this;
|
627
|
+
},
|
628
|
+
|
629
|
+
/**
|
630
|
+
* Slides that sidebar out of view.
|
631
|
+
*/
|
632
|
+
close: function (duration, callback) {
|
633
|
+
if (!this.isOpen) {
|
634
|
+
return this;
|
635
|
+
}
|
636
|
+
|
637
|
+
var isRight = (this.position === 'right');
|
638
|
+
var anim = isRight ? {
|
639
|
+
marginRight: -this.width
|
640
|
+
} : {
|
641
|
+
marginLeft: -this.width
|
642
|
+
};
|
643
|
+
|
644
|
+
this.toggleHandleIcon(false);
|
645
|
+
this.container.animate(anim, (typeof duration === 'number' || typeof duration === 'string') ? duration : 500, 'easeOutExpo');
|
646
|
+
|
647
|
+
if (!this.settings.overlayPage) {
|
648
|
+
$('body').animate(
|
649
|
+
isRight ? {
|
650
|
+
marginRight: '-=' + this.width
|
651
|
+
} : {
|
652
|
+
marginLeft: '-=' + this.width
|
653
|
+
},
|
654
|
+
500,
|
655
|
+
'easeOutExpo'
|
656
|
+
);
|
657
|
+
}
|
658
|
+
|
659
|
+
this.isOpen = false;
|
660
|
+
this.isCompletelyOpen = false;
|
661
|
+
|
662
|
+
return this;
|
663
|
+
},
|
664
|
+
|
665
|
+
/**
|
666
|
+
* Activates the given panel and passes to it the given element as the
|
667
|
+
* the effective that we want it to think activated it.
|
668
|
+
*
|
669
|
+
* @param {object|String} panel Panel instance or the id of a panel
|
670
|
+
* object.
|
671
|
+
* @param {jQuery} element Element to pass to the panel as effective
|
672
|
+
* element (the element that activated it).
|
673
|
+
*/
|
674
|
+
activatePanel: function (panel, element) {
|
675
|
+
if (typeof panel === 'string') {
|
676
|
+
panel = this.getPanelById(panel);
|
677
|
+
}
|
678
|
+
|
679
|
+
if (panel) {
|
680
|
+
panel.activate(element);
|
681
|
+
}
|
682
|
+
|
683
|
+
this.roundCorners();
|
684
|
+
|
685
|
+
return this;
|
686
|
+
},
|
687
|
+
|
688
|
+
/**
|
689
|
+
* Invokes the expand method for the given panel so that it expands its
|
690
|
+
* height to display its contents
|
691
|
+
*
|
692
|
+
* @param {object|String} panel Panel instance or the id of a panel
|
693
|
+
* object.
|
694
|
+
* @param {funtion} callback
|
695
|
+
*/
|
696
|
+
expandPanel: function (panel, callback) {
|
697
|
+
if (typeof panel === 'string') {
|
698
|
+
panel = this.getPanelById(panel);
|
699
|
+
}
|
700
|
+
|
701
|
+
if (panel) {
|
702
|
+
panel.expand(callback);
|
703
|
+
}
|
704
|
+
|
705
|
+
return this;
|
706
|
+
},
|
707
|
+
|
708
|
+
/**
|
709
|
+
* Collapses the panel contents by invoking the given panel's collapse
|
710
|
+
* method.
|
711
|
+
*
|
712
|
+
* @param {object|String} panel Panel instance or the id of a panel
|
713
|
+
* object.
|
714
|
+
* @param {funtion} callback
|
715
|
+
*/
|
716
|
+
collapsePanel: function (panel, callback) {
|
717
|
+
if (typeof panel === 'string') {
|
718
|
+
panel = this.getPanelById(panel);
|
719
|
+
}
|
720
|
+
|
721
|
+
if (panel) {
|
722
|
+
panel.collapse(callback);
|
723
|
+
}
|
724
|
+
|
725
|
+
return this;
|
726
|
+
},
|
727
|
+
|
728
|
+
/**
|
729
|
+
* Adds a panel to this sidebar instance.
|
730
|
+
* We try and build as much of the panel DOM as we can before inserting
|
731
|
+
* it into the DOM in order to reduce reflow.
|
732
|
+
*
|
733
|
+
* @param {object} panel - either a panel instance or an associative
|
734
|
+
* array containing settings for the construction
|
735
|
+
* of a new panel.
|
736
|
+
* @param {boolean} deferRounding - (Optional) If true, the rounding-off
|
737
|
+
* of the top most and bottom most panels
|
738
|
+
* will not be automatically done. Set
|
739
|
+
* this to true when adding a lot of panels
|
740
|
+
* at once.
|
741
|
+
* @return {object} The newly created panel.
|
742
|
+
*/
|
743
|
+
addPanel: function (panel, deferRounding) {
|
744
|
+
if (!(panel instanceof Panel)) {
|
745
|
+
if (!panel.width) {
|
746
|
+
panel.width = this.width;
|
747
|
+
}
|
748
|
+
panel.sidebar = this;
|
749
|
+
panel = new Panel(panel);
|
750
|
+
}
|
751
|
+
|
752
|
+
this.panels[panel.id] = panel;
|
753
|
+
this.container.find('.aloha-sidebar-panels').append(panel.element);
|
754
|
+
this.checkActivePanels(Selection.getRangeObject());
|
755
|
+
return panel;
|
756
|
+
}
|
757
|
+
|
758
|
+
});
|
759
|
+
|
760
|
+
// ------------------------------------------------------------------------
|
761
|
+
// Panel prototype
|
762
|
+
// ------------------------------------------------------------------------
|
763
|
+
$.extend(Panel.prototype, {
|
764
|
+
|
765
|
+
init: function (opts) {
|
766
|
+
this.setTitle(opts.title).setContent(opts.content);
|
767
|
+
|
768
|
+
delete opts.title;
|
769
|
+
delete opts.content;
|
770
|
+
|
771
|
+
$.extend(this, opts);
|
772
|
+
|
773
|
+
if (!this.id) {
|
774
|
+
this.id = 'aloha-sidebar-' + (++uid);
|
775
|
+
}
|
776
|
+
|
777
|
+
var li = this.element = $('<li id="' + this.id + '">').append(this.title, this.content);
|
778
|
+
|
779
|
+
if (this.expanded) {
|
780
|
+
this.content.height('auto');
|
781
|
+
}
|
782
|
+
|
783
|
+
this.toggleTitleIcon(this.expanded);
|
784
|
+
this.coerceActiveOn();
|
785
|
+
|
786
|
+
// Disable text selection on title element.
|
787
|
+
this.title.attr('unselectable', 'on').css('-moz-user-select', 'none').each(function () {
|
788
|
+
this.onselectstart = function () {
|
789
|
+
return false;
|
790
|
+
};
|
791
|
+
});
|
792
|
+
|
793
|
+
if (typeof this.onInit === 'function') {
|
794
|
+
this.onInit.apply(this);
|
795
|
+
}
|
796
|
+
},
|
797
|
+
|
798
|
+
/**
|
799
|
+
* @param {boolean} isExpanded Whether or not the panel is in an
|
800
|
+
* expanded state.
|
801
|
+
*/
|
802
|
+
toggleTitleIcon: function (isExpanded) {
|
803
|
+
if (this.sidebar.settings.rotateIcons) {
|
804
|
+
this.rotateTitleIcon(isExpanded ? 90 : 0);
|
805
|
+
} else {
|
806
|
+
var icon = this.title.find('.aloha-sidebar-panel-title-arrow');
|
807
|
+
|
808
|
+
if (isExpanded) {
|
809
|
+
icon.addClass('aloha-sidebar-panel-title-arrow-down');
|
810
|
+
} else {
|
811
|
+
icon.removeClass('aloha-sidebar-panel-title-arrow-down');
|
812
|
+
}
|
813
|
+
}
|
814
|
+
},
|
815
|
+
|
816
|
+
/**
|
817
|
+
* Normalizes the activeOn property into a predicate function.
|
818
|
+
*/
|
819
|
+
coerceActiveOn: function () {
|
820
|
+
if (typeof this.activeOn !== 'function') {
|
821
|
+
var activeOn = this.activeOn;
|
822
|
+
|
823
|
+
this.activeOn = (function () {
|
824
|
+
var typeofActiveOn = typeof activeOn,
|
825
|
+
fn;
|
826
|
+
|
827
|
+
if (typeofActiveOn === 'boolean') {
|
828
|
+
fn = function () {
|
829
|
+
return activeOn;
|
830
|
+
};
|
831
|
+
} else if (typeofActiveOn === 'undefined') {
|
832
|
+
fn = function () {
|
833
|
+
return true;
|
834
|
+
};
|
835
|
+
} else if (typeofActiveOn === 'string') {
|
836
|
+
fn = function (el) {
|
837
|
+
return el ? el.is(activeOn) : false;
|
838
|
+
};
|
839
|
+
} else {
|
840
|
+
fn = function () {
|
841
|
+
return false;
|
842
|
+
};
|
843
|
+
}
|
844
|
+
|
845
|
+
return fn;
|
846
|
+
}());
|
847
|
+
}
|
848
|
+
},
|
849
|
+
|
850
|
+
/**
|
851
|
+
* Activates (displays) this panel.
|
852
|
+
*/
|
853
|
+
activate: function (effective) {
|
854
|
+
this.isActive = true;
|
855
|
+
this.content.parent('li').show().removeClass('aloha-sidebar-deactivated');
|
856
|
+
this.effectiveElement = effective;
|
857
|
+
if (typeof this.onActivate === 'function') {
|
858
|
+
this.onActivate.call(this, effective);
|
859
|
+
}
|
860
|
+
},
|
861
|
+
|
862
|
+
/**
|
863
|
+
* Hides this panel.
|
864
|
+
*/
|
865
|
+
deactivate: function () {
|
866
|
+
if (!this.isActive) {
|
867
|
+
return;
|
868
|
+
}
|
869
|
+
this.isActive = false;
|
870
|
+
this.content.parent('li').hide().addClass('aloha-sidebar-deactivated');
|
871
|
+
this.effectiveElement = null;
|
872
|
+
},
|
873
|
+
|
874
|
+
toggle: function () {
|
875
|
+
if (this.expanded) {
|
876
|
+
this.collapse();
|
877
|
+
} else {
|
878
|
+
this.expand();
|
879
|
+
}
|
880
|
+
},
|
881
|
+
|
882
|
+
/**
|
883
|
+
* Displays the panel's contents.
|
884
|
+
*/
|
885
|
+
expand: function (callback) {
|
886
|
+
var that = this;
|
887
|
+
var el = this.content;
|
888
|
+
var old_h = el.height();
|
889
|
+
var new_h = el.height('auto').height();
|
890
|
+
el.height(old_h).stop().animate(
|
891
|
+
{height: new_h},
|
892
|
+
500,
|
893
|
+
'easeOutExpo',
|
894
|
+
function () {
|
895
|
+
if (typeof callback === 'function') {
|
896
|
+
callback.call(that);
|
897
|
+
}
|
898
|
+
}
|
899
|
+
);
|
900
|
+
this.element.removeClass('collapsed');
|
901
|
+
this.toggleTitleIcon(true);
|
902
|
+
this.expanded = true;
|
903
|
+
return this;
|
904
|
+
},
|
905
|
+
|
906
|
+
/**
|
907
|
+
* Hides the panel's contents--leaving only it's header.
|
908
|
+
*/
|
909
|
+
collapse: function (duration, callback) {
|
910
|
+
var that = this;
|
911
|
+
this.element.addClass('collapsed');
|
912
|
+
this.content.stop().animate(
|
913
|
+
{ height: 3 },
|
914
|
+
250,
|
915
|
+
'easeOutExpo',
|
916
|
+
function () {
|
917
|
+
if (typeof callback === 'function') {
|
918
|
+
callback.call(that);
|
919
|
+
}
|
920
|
+
}
|
921
|
+
);
|
922
|
+
this.toggleTitleIcon(false);
|
923
|
+
this.expanded = false;
|
924
|
+
return this;
|
925
|
+
},
|
926
|
+
|
927
|
+
/**
|
928
|
+
* May also be called by the Sidebar to update title of panel
|
929
|
+
*
|
930
|
+
* @param {string} html Markup string, DOM object, or jQuery object.
|
931
|
+
*/
|
932
|
+
setTitle: function (html) {
|
933
|
+
this.title.find('.aloha-sidebar-panel-title-text').html(html);
|
934
|
+
return this;
|
935
|
+
},
|
936
|
+
|
937
|
+
/**
|
938
|
+
* May also be called by the Sidebar to update content of panel
|
939
|
+
*
|
940
|
+
* @param {string|jQuery.<HTMLElement>|HTMLElement} html Markup string,
|
941
|
+
* DOM object, or
|
942
|
+
* jQuery object.
|
943
|
+
*/
|
944
|
+
setContent: function (html) {
|
945
|
+
// We do this so that empty panels don't appear collapsed
|
946
|
+
if (!html || html === '') {
|
947
|
+
html = ' ';
|
948
|
+
}
|
949
|
+
|
950
|
+
this.content.find('.aloha-sidebar-panel-content-inner-text').html(html);
|
951
|
+
return this;
|
952
|
+
},
|
953
|
+
|
954
|
+
rotateTitleIcon: function (angle, duration) {
|
955
|
+
var arr = this.title.find('.aloha-sidebar-panel-title-arrow');
|
956
|
+
arr.animate({
|
957
|
+
angle: angle
|
958
|
+
}, {
|
959
|
+
duration: (typeof duration === 'number') ? duration : 500,
|
960
|
+
easing: 'easeOutExpo',
|
961
|
+
step: function (val, fx) {
|
962
|
+
arr.css({
|
963
|
+
'-o-transform': 'rotate(' + val + 'deg)',
|
964
|
+
'-webkit-transform': 'rotate(' + val + 'deg)',
|
965
|
+
'-moz-transform': 'rotate(' + val + 'deg)',
|
966
|
+
'-ms-transform': 'rotate(' + val + 'deg)'
|
967
|
+
// filter : 'progid:DXImageTransform.Microsoft.BasicImage(rotation=' + (angle / 90) + ')'
|
968
|
+
});
|
969
|
+
}
|
970
|
+
});
|
971
|
+
},
|
972
|
+
|
973
|
+
/**
|
974
|
+
* Walks up the ancestors chain for the given effective element, and
|
975
|
+
* renders subpanels using the specified renderer function.
|
976
|
+
*
|
977
|
+
* @param {jQuery.<HTMLElement>} effective The effective element, whose
|
978
|
+
* lineage we want to render.
|
979
|
+
* @param {function} renderer (Optional) function that will render each
|
980
|
+
* element in the parental
|
981
|
+
* lineage of the effective
|
982
|
+
* element.
|
983
|
+
*/
|
984
|
+
renderEffectiveParents: function (effective, renderer) {
|
985
|
+
var el = effective.first();
|
986
|
+
var content = [];
|
987
|
+
var path = [];
|
988
|
+
var activeOn = this.activeOn;
|
989
|
+
var l;
|
990
|
+
var pathRev;
|
991
|
+
|
992
|
+
while (el.length > 0 && !el.is('.aloha-editable')) {
|
993
|
+
if (activeOn(el)) {
|
994
|
+
path.push('<span>' + el[0].tagName.toLowerCase() + '</span>');
|
995
|
+
l = path.length;
|
996
|
+
pathRev = [];
|
997
|
+
while (l--) {
|
998
|
+
pathRev.push(path[l]);
|
999
|
+
}
|
1000
|
+
content.push(
|
1001
|
+
'<div class="aloha-sidebar-panel-parent">'
|
1002
|
+
+ '<div class="aloha-sidebar-panel-parent-path">'
|
1003
|
+
+ pathRev.join('')
|
1004
|
+
+ '</div>'
|
1005
|
+
+ '<div class="aloha-sidebar-panel-parent-content'
|
1006
|
+
+ 'aloha-sidebar-opened">'
|
1007
|
+
+ ((typeof renderer === 'function') ? renderer(el) : '----') + '</div>' + '</div>'
|
1008
|
+
);
|
1009
|
+
}
|
1010
|
+
el = el.parent();
|
1011
|
+
}
|
1012
|
+
|
1013
|
+
this.setContent(content.join(''));
|
1014
|
+
|
1015
|
+
$('.aloha-sidebar-panel-parent-path').click(function () {
|
1016
|
+
var $content = $(this).parent().find('.aloha-sidebar-panel-parent-content');
|
1017
|
+
if ($content.hasClass('aloha-sidebar-opened')) {
|
1018
|
+
$content.hide().removeClass('aloha-sidebar-opened');
|
1019
|
+
} else {
|
1020
|
+
$content.show().addClass('aloha-sidebar-opened');
|
1021
|
+
}
|
1022
|
+
});
|
1023
|
+
|
1024
|
+
this.content.height('auto').find('.aloha-sidebar-panel-content-inner').height('auto');
|
1025
|
+
}
|
1026
|
+
|
1027
|
+
});
|
1028
|
+
|
1029
|
+
var left = new Sidebar({
|
1030
|
+
position: 'left',
|
1031
|
+
width: 250 // TODO define in config
|
1032
|
+
});
|
1033
|
+
|
1034
|
+
var right = new Sidebar({
|
1035
|
+
position: 'right',
|
1036
|
+
width: 250 // TODO define in config
|
1037
|
+
});
|
1038
|
+
|
1039
|
+
Aloha.Sidebar = {
|
1040
|
+
left: left,
|
1041
|
+
right: right
|
1042
|
+
};
|
1043
|
+
|
1044
|
+
return Aloha.Sidebar;
|
1045
|
+
});
|