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,14 @@
|
|
1
|
+
define({
|
2
|
+
"button.addlink.tooltip": "Insereix un enllaç",
|
3
|
+
"button.removelink.tooltip": "Suprimeix l\'enllaç",
|
4
|
+
"newlink.defaulttext": "Enllaç nou",
|
5
|
+
"floatingmenu.tab.link": "Enllaç",
|
6
|
+
"link.target.self": "Ell mateix",
|
7
|
+
"link.target.blank": "En blanc",
|
8
|
+
"link.target.parent": "Pare",
|
9
|
+
"link.target.top": "Superior",
|
10
|
+
"link.target.framename": "Nom del marc",
|
11
|
+
"link.target.legend": "Objectiu",
|
12
|
+
"link.title.legend": "TÃtol",
|
13
|
+
"insertLink": "ctrl+k"
|
14
|
+
});
|
@@ -0,0 +1,14 @@
|
|
1
|
+
define({
|
2
|
+
"button.addlink.tooltip": "Verweis einfügen",
|
3
|
+
"button.removelink.tooltip": "Verweis entfernen",
|
4
|
+
"newlink.defaulttext": "Neuer Verweis",
|
5
|
+
"floatingmenu.tab.link": "Verweis",
|
6
|
+
"link.target.self": "Gleiches Fenster",
|
7
|
+
"link.target.blank": "Neues Fenster",
|
8
|
+
"link.target.parent": "Elternfenster",
|
9
|
+
"link.target.top": "Hauptfenster",
|
10
|
+
"link.target.framename": "Framename",
|
11
|
+
"link.target.legend": "Ziel",
|
12
|
+
"link.title.legend": "Titel",
|
13
|
+
"insertLink": "Ctrl+k"
|
14
|
+
});
|
@@ -0,0 +1,23 @@
|
|
1
|
+
define({
|
2
|
+
"root": {
|
3
|
+
"button.addlink.tooltip": "Insert Link",
|
4
|
+
"button.removelink.tooltip": "Remove Link",
|
5
|
+
"newlink.defaulttext": "New Link",
|
6
|
+
"floatingmenu.tab.link": "Link",
|
7
|
+
"link.target.self": "Self",
|
8
|
+
"link.target.blank": "Blank",
|
9
|
+
"link.target.parent": "Parent",
|
10
|
+
"link.target.top": "Top",
|
11
|
+
"link.target.framename": "Framename",
|
12
|
+
"link.target.legend": "Target",
|
13
|
+
"link.title.legend": "Title",
|
14
|
+
"insertLink": "ctrl+k"
|
15
|
+
},
|
16
|
+
"ca": true,
|
17
|
+
"de": true,
|
18
|
+
"mk": true,
|
19
|
+
"pt-br": true,
|
20
|
+
"ru": true,
|
21
|
+
"uk": true,
|
22
|
+
"zh-hans": true
|
23
|
+
});
|
@@ -0,0 +1,14 @@
|
|
1
|
+
define({
|
2
|
+
"button.addlink.tooltip": "ÐнеÑи линк",
|
3
|
+
"button.removelink.tooltip": "ÐдÑÑÑани линк",
|
4
|
+
"newlink.defaulttext": "Ðов линк",
|
5
|
+
"floatingmenu.tab.link": "Ðинк",
|
6
|
+
"link.target.self": "СебеÑи",
|
7
|
+
"link.target.blank": "ÐÑазно",
|
8
|
+
"link.target.parent": "РодиÑел",
|
9
|
+
"link.target.top": "ÐаÑгоÑе",
|
10
|
+
"link.target.framename": "Ðме на ÑамкаÑа",
|
11
|
+
"link.target.legend": "ÐеÑа",
|
12
|
+
"link.title.legend": "ÐаÑлов",
|
13
|
+
"insertLink": "ctrl+k"
|
14
|
+
});
|
@@ -0,0 +1,14 @@
|
|
1
|
+
define({
|
2
|
+
"button.addlink.tooltip": "Inserir link",
|
3
|
+
"button.removelink.tooltip": "Remover link",
|
4
|
+
"newlink.defaulttext": "Novo link",
|
5
|
+
"floatingmenu.tab.link": "Link",
|
6
|
+
"link.target.self": "Auto",
|
7
|
+
"link.target.blank": "Em branco",
|
8
|
+
"link.target.parent": "Parente",
|
9
|
+
"link.target.top": "Topo",
|
10
|
+
"link.target.framename": "Nome do frame",
|
11
|
+
"link.target.legend": "Alvo",
|
12
|
+
"link.title.legend": "TÃtulo",
|
13
|
+
"insertLink": "Ctrl+K"
|
14
|
+
});
|
@@ -0,0 +1,14 @@
|
|
1
|
+
define({
|
2
|
+
"button.addlink.tooltip": "ÐÑÑавиÑÑ ÑÑÑлкÑ",
|
3
|
+
"button.removelink.tooltip": "УбÑаÑÑ ÑÑÑлкÑ",
|
4
|
+
"newlink.defaulttext": "ÐÐ¾Ð²Ð°Ñ ÑÑÑлка",
|
5
|
+
"floatingmenu.tab.link": "СÑÑлка",
|
6
|
+
"link.target.self": "ТекÑÑее окно",
|
7
|
+
"link.target.blank": "Ðовое окно",
|
8
|
+
"link.target.parent": "РодиÑелÑÑкий ÑÑейм",
|
9
|
+
"link.target.top": "ÐовеÑÑ
вÑеÑ
ÑÑеймов",
|
10
|
+
"link.target.framename": "ÐÐ¼Ñ ÑÑейма",
|
11
|
+
"link.target.legend": "ЦелÑ",
|
12
|
+
"link.title.legend": "Ðазвание",
|
13
|
+
"insertLink": "ctrl+k"
|
14
|
+
});
|
@@ -0,0 +1,14 @@
|
|
1
|
+
define({
|
2
|
+
"button.addlink.tooltip": "ÐÑÑавиÑи поÑиланнÑ",
|
3
|
+
"button.removelink.tooltip": "ÐÑибÑаÑи поÑиланнÑ",
|
4
|
+
"newlink.defaulttext": "Ðове поÑиланнÑ",
|
5
|
+
"floatingmenu.tab.link": "ÐоÑиланнÑ",
|
6
|
+
"link.target.self": "ÐоÑоÑне вÑкно",
|
7
|
+
"link.target.blank": "Ðове вÑкно",
|
8
|
+
"link.target.parent": "ÐаÑÑкÑвÑÑкий ÑÑейм",
|
9
|
+
"link.target.top": "ÐовеÑÑ
ÑÑÑÑ
ÑÑеймÑв",
|
10
|
+
"link.target.framename": "Ðазва ÑÑейма",
|
11
|
+
"link.target.legend": "ЦÑлÑ",
|
12
|
+
"link.title.legend": "Ðазва",
|
13
|
+
"insertLink": "ctrl+k"
|
14
|
+
});
|
@@ -0,0 +1,14 @@
|
|
1
|
+
define({
|
2
|
+
"button.addlink.tooltip": "æå
¥é¾æ¥",
|
3
|
+
"button.removelink.tooltip": "移é¤é¾æ¥",
|
4
|
+
"newlink.defaulttext": "æ°é¾æ¥",
|
5
|
+
"floatingmenu.tab.link": "é¾æ¥",
|
6
|
+
"link.target.self": "æ¬é¡µé¢",
|
7
|
+
"link.target.blank": "æ°é¡µé¢",
|
8
|
+
"link.target.parent": "ç¶é¡µé¢",
|
9
|
+
"link.target.top": "æä¸å±é¡µé¢",
|
10
|
+
"link.target.framename": "æ¡æ¶å",
|
11
|
+
"link.target.legend": "ç®æ ",
|
12
|
+
"link.title.legend": "æ é¢",
|
13
|
+
"insertLink": "ctrl+k"
|
14
|
+
});
|
@@ -0,0 +1,878 @@
|
|
1
|
+
/* list-plugin.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
|
+
define([
|
28
|
+
'aloha',
|
29
|
+
'jquery',
|
30
|
+
'aloha/plugin',
|
31
|
+
'ui/ui',
|
32
|
+
'ui/scopes',
|
33
|
+
'ui/button',
|
34
|
+
'ui/toggleButton',
|
35
|
+
'i18n!list/nls/i18n',
|
36
|
+
'i18n!aloha/nls/i18n',
|
37
|
+
'aloha/engine',
|
38
|
+
'PubSub'
|
39
|
+
], function(
|
40
|
+
Aloha,
|
41
|
+
jQuery,
|
42
|
+
Plugin,
|
43
|
+
Ui,
|
44
|
+
Scopes,
|
45
|
+
Button,
|
46
|
+
ToggleButton,
|
47
|
+
i18n,
|
48
|
+
i18nCore,
|
49
|
+
Engine,
|
50
|
+
PubSub
|
51
|
+
) {
|
52
|
+
'use strict';
|
53
|
+
|
54
|
+
var GENTICS = window.GENTICS;
|
55
|
+
|
56
|
+
/**
|
57
|
+
* Transforms the given list element and its sub elements (if they are in the selection) into
|
58
|
+
* the given transformTo target.
|
59
|
+
* @param domToTransform - The list object that should be transformed
|
60
|
+
* @param transformTo - Transformationtarget e.g. 'ul' / 'ol'
|
61
|
+
*/
|
62
|
+
function transformExistingListAndSubLists (domToTransform, transformTo) {
|
63
|
+
// find and transform sublists if they are in the selection
|
64
|
+
jQuery(domToTransform).find(domToTransform.nodeName).each(function(){
|
65
|
+
if (isListInSelection(this)) {
|
66
|
+
Aloha.Markup.transformDomObject(this, transformTo, Aloha.Selection.rangeObject);
|
67
|
+
}
|
68
|
+
});
|
69
|
+
|
70
|
+
// the element itself
|
71
|
+
Aloha.Markup.transformDomObject(domToTransform, transformTo, Aloha.Selection.rangeObject);
|
72
|
+
}
|
73
|
+
|
74
|
+
/**
|
75
|
+
* Checks if a dom element is in the given Slectiontree.
|
76
|
+
* @param needle - the searched element
|
77
|
+
* @return returns true if the needle is found in the current selection tree.
|
78
|
+
*/
|
79
|
+
function isListInSelection(needle) {
|
80
|
+
var selectionTree = Aloha.Selection.getSelectionTree();
|
81
|
+
return checkSelectionTreeEntryForElement(selectionTree, needle);
|
82
|
+
}
|
83
|
+
|
84
|
+
/**
|
85
|
+
* Checks if the given needle is in the given treeElement or in one of its sub elements.
|
86
|
+
* @param treeElement - the tree element to be searched in
|
87
|
+
* @param needle - the searched element
|
88
|
+
*/
|
89
|
+
function checkSelectionTreeEntryForElement(treeElementArray, needle) {
|
90
|
+
var found = false;
|
91
|
+
jQuery.each(treeElementArray, function(index, element){
|
92
|
+
if ((element.domobj === needle && element.selection !== "none") || checkSelectionTreeEntryForElement(element.children, needle)) {
|
93
|
+
found = true;
|
94
|
+
}
|
95
|
+
});
|
96
|
+
return found;
|
97
|
+
}
|
98
|
+
|
99
|
+
/**
|
100
|
+
* Register the ListPlugin as Aloha.Plugin
|
101
|
+
*/
|
102
|
+
var ListPlugin = Plugin.create('list', {
|
103
|
+
/**
|
104
|
+
* default button configuration
|
105
|
+
*/
|
106
|
+
config: [ 'ul', 'ol' ],
|
107
|
+
|
108
|
+
/**
|
109
|
+
* List of transformable elements
|
110
|
+
*/
|
111
|
+
transformableElements: {'p' : true, 'h1' : true, 'h2' : true, 'h3' : true, 'h4' : true, 'h5' : true, 'h6' : true, 'ul' : true, 'ol' : true},
|
112
|
+
|
113
|
+
/**
|
114
|
+
* Initialize the plugin, register the buttons
|
115
|
+
*/
|
116
|
+
init: function() {
|
117
|
+
|
118
|
+
var that = this;
|
119
|
+
|
120
|
+
this._orderedListButton = Ui.adopt("orderedList", ToggleButton, {
|
121
|
+
tooltip: i18n.t("button.createolist.tooltip"),
|
122
|
+
icon: "aloha-icon aloha-icon-orderedlist",
|
123
|
+
scope: 'Aloha.continuoustext',
|
124
|
+
click: function(){
|
125
|
+
that.transformList(true);
|
126
|
+
}
|
127
|
+
});
|
128
|
+
|
129
|
+
this._unorderedListButton = Ui.adopt("unorderedList", ToggleButton, {
|
130
|
+
tooltip: i18n.t("button.createulist.tooltip"),
|
131
|
+
icon: "aloha-icon aloha-icon-unorderedlist",
|
132
|
+
scope: 'Aloha.continuoustext',
|
133
|
+
click: function(){
|
134
|
+
that.transformList(false);
|
135
|
+
}
|
136
|
+
});
|
137
|
+
|
138
|
+
this._indentListButton = Ui.adopt("indentList", Button, {
|
139
|
+
tooltip: i18n.t('button.indentlist.tooltip'),
|
140
|
+
icon: 'aloha-icon aloha-icon-indent',
|
141
|
+
scope: 'Aloha.continuoustext',
|
142
|
+
click: function() {
|
143
|
+
that.indentList();
|
144
|
+
}
|
145
|
+
});
|
146
|
+
|
147
|
+
this._outdentListButton = Ui.adopt("outdentList", Button, {
|
148
|
+
tooltip: i18n.t('button.outdentlist.tooltip'),
|
149
|
+
icon: 'aloha-icon aloha-icon-outdent',
|
150
|
+
scope: 'Aloha.continuoustext',
|
151
|
+
click: function() {
|
152
|
+
that.outdentList();
|
153
|
+
}
|
154
|
+
});
|
155
|
+
|
156
|
+
Scopes.createScope('Aloha.List', 'Aloha.continuoustext');
|
157
|
+
|
158
|
+
// add the event handler for context selection change
|
159
|
+
PubSub.sub('aloha.selection.context-change', function(message){
|
160
|
+
var i,
|
161
|
+
effectiveMarkup,
|
162
|
+
rangeObject = message.range;
|
163
|
+
|
164
|
+
// Hide all buttons in the list tab will make the list tab disappear
|
165
|
+
that._outdentListButton.show(false);
|
166
|
+
that._indentListButton.show(false);
|
167
|
+
that._unorderedListButton.setState(false);
|
168
|
+
that._orderedListButton.setState(false);
|
169
|
+
|
170
|
+
for ( i = 0; i < rangeObject.markupEffectiveAtStart.length; i++) {
|
171
|
+
effectiveMarkup = rangeObject.markupEffectiveAtStart[ i ];
|
172
|
+
if (Aloha.Selection.standardTagNameComparator(effectiveMarkup, jQuery('<ul></ul>'))) {
|
173
|
+
that._unorderedListButton.setState(true);
|
174
|
+
// Show all buttons in the list tab
|
175
|
+
that._outdentListButton.show(true);
|
176
|
+
that._indentListButton.show(true);
|
177
|
+
break;
|
178
|
+
}
|
179
|
+
if (Aloha.Selection.standardTagNameComparator(effectiveMarkup, jQuery('<ol></ol>'))) {
|
180
|
+
that._orderedListButton.setState(true);
|
181
|
+
// Show all buttons in the list tab
|
182
|
+
that._outdentListButton.show(true);
|
183
|
+
that._indentListButton.show(true);
|
184
|
+
break;
|
185
|
+
}
|
186
|
+
}
|
187
|
+
|
188
|
+
if (Aloha.activeEditable) {
|
189
|
+
that.applyButtonConfig(Aloha.activeEditable.obj);
|
190
|
+
}
|
191
|
+
});
|
192
|
+
|
193
|
+
// add the key handler for Tab
|
194
|
+
Aloha.Markup.addKeyHandler(9, function(event) {
|
195
|
+
return that.processTab(event);
|
196
|
+
});
|
197
|
+
},
|
198
|
+
|
199
|
+
/**
|
200
|
+
* Applys a configuration specific for an editable
|
201
|
+
* buttons not available in this configuration are hidden
|
202
|
+
* @param {jQuery} obj jQuery object of the activated editable
|
203
|
+
*/
|
204
|
+
applyButtonConfig: function (obj) {
|
205
|
+
var config = this.getEditableConfig(obj);
|
206
|
+
|
207
|
+
if (Aloha.Selection.rangeObject.unmodifiableMarkupAtStart[0]) {
|
208
|
+
// show/hide them according to the config
|
209
|
+
if (jQuery.inArray('ul', config) != -1 && Aloha.Selection.canTag1WrapTag2(Aloha.Selection.rangeObject.unmodifiableMarkupAtStart[0].nodeName, "ul") != -1) {
|
210
|
+
this._unorderedListButton.show(true);
|
211
|
+
} else {
|
212
|
+
this._unorderedListButton.show(false);
|
213
|
+
}
|
214
|
+
|
215
|
+
if (jQuery.inArray('ol', config) != -1 && Aloha.Selection.canTag1WrapTag2(Aloha.Selection.rangeObject.unmodifiableMarkupAtStart[0].nodeName, "ol") != -1) {
|
216
|
+
this._orderedListButton.show(true);
|
217
|
+
} else {
|
218
|
+
this._orderedListButton.show(false);
|
219
|
+
}
|
220
|
+
|
221
|
+
}
|
222
|
+
},
|
223
|
+
|
224
|
+
/**
|
225
|
+
* Process Tab and Shift-Tab pressed in lists
|
226
|
+
*/
|
227
|
+
processTab: function (event) {
|
228
|
+
if (event.keyCode === 9/*tab*/ ) {
|
229
|
+
if (event.shiftKey) {
|
230
|
+
return this.outdentList();
|
231
|
+
} else {
|
232
|
+
return this.indentList();
|
233
|
+
}
|
234
|
+
}
|
235
|
+
return true;
|
236
|
+
},
|
237
|
+
|
238
|
+
/**
|
239
|
+
* For the current selection, get the DOM object, which will be transformed to/from the list
|
240
|
+
* @return dom object or false
|
241
|
+
*/
|
242
|
+
getStartingDomObjectToTransform: function () {
|
243
|
+
var rangeObject = Aloha.Selection.rangeObject,
|
244
|
+
i, effectiveMarkup;
|
245
|
+
|
246
|
+
for ( i = 0; i < rangeObject.markupEffectiveAtStart.length; i++) {
|
247
|
+
effectiveMarkup = rangeObject.markupEffectiveAtStart[ i ];
|
248
|
+
if (this.transformableElements[effectiveMarkup.nodeName.toLowerCase()]) {
|
249
|
+
return effectiveMarkup;
|
250
|
+
}
|
251
|
+
}
|
252
|
+
|
253
|
+
return false;
|
254
|
+
},
|
255
|
+
|
256
|
+
/**
|
257
|
+
* For the current selection, get the nearest list item as dom object
|
258
|
+
* @return dom object or false
|
259
|
+
*/
|
260
|
+
getNearestSelectedListItem: function () {
|
261
|
+
var rangeObject = Aloha.Selection.rangeObject,
|
262
|
+
i, effectiveMarkup;
|
263
|
+
|
264
|
+
for ( i = 0; i < rangeObject.markupEffectiveAtStart.length; i++) {
|
265
|
+
effectiveMarkup = rangeObject.markupEffectiveAtStart[ i ];
|
266
|
+
if (GENTICS.Utils.Dom.isListElement(effectiveMarkup)) {
|
267
|
+
return effectiveMarkup;
|
268
|
+
}
|
269
|
+
}
|
270
|
+
|
271
|
+
return false;
|
272
|
+
},
|
273
|
+
|
274
|
+
/**
|
275
|
+
* Transform the current selection to/from a list
|
276
|
+
* @param ordered true when transforming to/from an ordered list, false for unordered lists
|
277
|
+
*/
|
278
|
+
transformList: function (ordered) {
|
279
|
+
var domToTransform = this.getStartingDomObjectToTransform(),
|
280
|
+
lastLi, i, jqNewLi, jqList, selectedSiblings, jqParentList,
|
281
|
+
newPara, jqToTransform, nodeName;
|
282
|
+
|
283
|
+
// visible is set to true, but the button is not visible
|
284
|
+
this._outdentListButton.show(true);
|
285
|
+
this._indentListButton.show(true);
|
286
|
+
|
287
|
+
if (!domToTransform) {
|
288
|
+
// wrap a paragraph around the selection
|
289
|
+
Aloha.Selection.changeMarkupOnSelection(jQuery('<p></p>'));
|
290
|
+
domToTransform = this.getStartingDomObjectToTransform();
|
291
|
+
|
292
|
+
if (!domToTransform) {
|
293
|
+
if ( Aloha.Selection.rangeObject.startContainer.contentEditable ) {
|
294
|
+
// create a new list with an empty item
|
295
|
+
jqList = ordered ? jQuery('<ol></ol>') : jQuery('<ul></ul>');
|
296
|
+
jqNewLi = jQuery('<li></li>');
|
297
|
+
jqList.append(jqNewLi);
|
298
|
+
|
299
|
+
var li = jqNewLi.get(0);
|
300
|
+
var editable = Aloha.getActiveEditable().obj;
|
301
|
+
//IE7 requires an (empty or non-empty) text node
|
302
|
+
//inside the li for the selection to work.
|
303
|
+
li.appendChild(document.createTextNode(""));
|
304
|
+
|
305
|
+
editable.append(jqList);
|
306
|
+
editable.focus();
|
307
|
+
|
308
|
+
var range = Aloha.createRange();
|
309
|
+
var selection = Aloha.getSelection();
|
310
|
+
range.setStart( li.firstChild, 0 );
|
311
|
+
range.setEnd( li.firstChild, 0 );
|
312
|
+
selection.removeAllRanges();
|
313
|
+
selection.addRange( range );
|
314
|
+
Aloha.Selection.updateSelection();
|
315
|
+
|
316
|
+
return;
|
317
|
+
} else {
|
318
|
+
Aloha.Log.error(this, 'Could not transform selection into a list');
|
319
|
+
return;
|
320
|
+
}
|
321
|
+
}
|
322
|
+
}
|
323
|
+
|
324
|
+
// check the dom object
|
325
|
+
nodeName = domToTransform.nodeName.toLowerCase();
|
326
|
+
|
327
|
+
if (nodeName == 'ul' && !ordered) {
|
328
|
+
// first check whether the list is nested into another list
|
329
|
+
jqList = jQuery(domToTransform);
|
330
|
+
|
331
|
+
jqParentList = jqList.parent();
|
332
|
+
if (jqParentList.length > 0
|
333
|
+
&& GENTICS.Utils.Dom.isListElement(jqParentList.get(0))) {
|
334
|
+
// when the list is nested into another, our list items will be
|
335
|
+
// added to the list items of the outer list
|
336
|
+
|
337
|
+
// find the place where to put the children of the inner list
|
338
|
+
if (jqParentList.get(0).nodeName.toLowerCase() === 'li') {
|
339
|
+
// inner table is nested in a li (this conforms to the html5 spec)
|
340
|
+
jqParentList.after(jqList.children());
|
341
|
+
jqList.remove();
|
342
|
+
} else {
|
343
|
+
// inner table is nested in the outer list directly (this violates the html5 spec)
|
344
|
+
jqList.children().unwrap();
|
345
|
+
}
|
346
|
+
} else {
|
347
|
+
// we are in an unordered list and shall transform it to paragraphs
|
348
|
+
|
349
|
+
// transform all li into p
|
350
|
+
jqToTransform = jQuery(domToTransform);
|
351
|
+
jQuery.each(jqToTransform.children('li'), function(index, li) {
|
352
|
+
newPara = Aloha.Markup.transformDomObject(li, 'p', Aloha.Selection.rangeObject);
|
353
|
+
// if any lists are in the paragraph, move the to after the paragraph
|
354
|
+
newPara.after(newPara.children('ol,ul'));
|
355
|
+
Engine.ensureContainerEditable(newPara.get(0));
|
356
|
+
});
|
357
|
+
|
358
|
+
// unwrap the li (remove the enclosing ul)
|
359
|
+
jqToTransform.children().unwrap();
|
360
|
+
}
|
361
|
+
} else if (nodeName == 'ul' && ordered) {
|
362
|
+
// we are in an unordered list and shall transform it to an ordered list
|
363
|
+
|
364
|
+
// transform the ul into an ol
|
365
|
+
transformExistingListAndSubLists(domToTransform, 'ol');
|
366
|
+
|
367
|
+
// merge adjacent lists
|
368
|
+
this.mergeAdjacentLists(jQuery(domToTransform));
|
369
|
+
} else if (nodeName == 'ol' && !ordered) {
|
370
|
+
// we are in an ordered list and shall transform it to an unordered list
|
371
|
+
|
372
|
+
// transform the ol into an ul
|
373
|
+
transformExistingListAndSubLists(domToTransform, 'ul');
|
374
|
+
|
375
|
+
// merge adjacent lists
|
376
|
+
this.mergeAdjacentLists(jQuery(domToTransform));
|
377
|
+
} else if (nodeName == 'ol' && ordered) {
|
378
|
+
// first check whether the list is nested into another list
|
379
|
+
jqList = jQuery(domToTransform);
|
380
|
+
|
381
|
+
jqParentList = jqList.parent();
|
382
|
+
if (jqParentList.length > 0
|
383
|
+
&& GENTICS.Utils.Dom.isListElement(jqParentList.get(0))) {
|
384
|
+
// when the list is nested into another, our list items will be
|
385
|
+
// added to the list items of the outer list
|
386
|
+
|
387
|
+
// find the place where to put the children of the inner list
|
388
|
+
if (jqParentList.get(0).nodeName.toLowerCase() === 'li') {
|
389
|
+
// inner table is nested in a li (this conforms to the html5 spec)
|
390
|
+
jqParentList.after(jqList.children());
|
391
|
+
jqList.remove();
|
392
|
+
} else {
|
393
|
+
// inner table is nested in the outer list directly (this violates the html5 spec)
|
394
|
+
jqList.children().unwrap();
|
395
|
+
}
|
396
|
+
} else {
|
397
|
+
// we are in an unordered list and shall transform it to paragraphs
|
398
|
+
|
399
|
+
// transform all li into p
|
400
|
+
jqToTransform = jQuery(domToTransform);
|
401
|
+
jQuery.each(jqToTransform.children('li'), function(index, li) {
|
402
|
+
newPara = Aloha.Markup.transformDomObject(li, 'p', Aloha.Selection.rangeObject);
|
403
|
+
// if any lists are in the paragraph, move the to after the paragraph
|
404
|
+
newPara.after(newPara.children('ol,ul'));
|
405
|
+
Engine.ensureContainerEditable(newPara.get(0));
|
406
|
+
});
|
407
|
+
|
408
|
+
// unwrap the li (remove the enclosing ul)
|
409
|
+
jqToTransform.children().unwrap();
|
410
|
+
}
|
411
|
+
} else {
|
412
|
+
// we are in something different from a list and shall transform it into a list
|
413
|
+
|
414
|
+
// get the also selected siblings of the dom object
|
415
|
+
selectedSiblings = Aloha.Selection.rangeObject.getSelectedSiblings(domToTransform);
|
416
|
+
|
417
|
+
// create a new list
|
418
|
+
jqList = ordered ? jQuery('<ol></ol>') : jQuery('<ul></ul>');
|
419
|
+
// add a new list item
|
420
|
+
jqNewLi = jQuery('<li></li>');
|
421
|
+
// add the li into the list
|
422
|
+
jqList.append(jqNewLi);
|
423
|
+
// append the contents of the old dom element to the li
|
424
|
+
jQuery(domToTransform).contents().appendTo(jqNewLi);
|
425
|
+
// replace the old dom element with the new list
|
426
|
+
jQuery(domToTransform).replaceWith(jqList);
|
427
|
+
|
428
|
+
// update the selection range
|
429
|
+
if (Aloha.Selection.rangeObject.startContainer == domToTransform) {
|
430
|
+
Aloha.Selection.rangeObject.startContainer = jqNewLi.get(0);
|
431
|
+
}
|
432
|
+
if (Aloha.Selection.rangeObject.endContainer == domToTransform) {
|
433
|
+
Aloha.Selection.rangeObject.endContainer = jqNewLi.get(0);
|
434
|
+
}
|
435
|
+
|
436
|
+
var lastAppendedLi = jqNewLi;
|
437
|
+
|
438
|
+
// now also transform all siblings
|
439
|
+
if (selectedSiblings) {
|
440
|
+
lastLi = false;
|
441
|
+
for ( i = 0; i < selectedSiblings.length; ++i) {
|
442
|
+
if (GENTICS.Utils.Dom.isBlockLevelElement(selectedSiblings[i])) {
|
443
|
+
if (lastLi) {
|
444
|
+
lastLi = false;
|
445
|
+
}
|
446
|
+
|
447
|
+
// transform the block level element
|
448
|
+
jqNewLi = Aloha.Markup.transformDomObject(selectedSiblings[i], 'li', Aloha.Selection.rangeObject);
|
449
|
+
jqList.append(jqNewLi);
|
450
|
+
lastAppendedLi = jqNewLi;
|
451
|
+
} else {
|
452
|
+
if (selectedSiblings[i].nodeType == 3
|
453
|
+
&& jQuery.trim(selectedSiblings[i].data).length === 0) {
|
454
|
+
continue;
|
455
|
+
}
|
456
|
+
if (!lastLi) {
|
457
|
+
lastLi = jQuery('<li></li>');
|
458
|
+
jqList.append(lastLi);
|
459
|
+
lastAppendedLi = lastLi;
|
460
|
+
}
|
461
|
+
lastLi.append(selectedSiblings[i]);
|
462
|
+
}
|
463
|
+
}
|
464
|
+
}
|
465
|
+
|
466
|
+
// merge adjacent lists
|
467
|
+
this.mergeAdjacentLists(jqList);
|
468
|
+
|
469
|
+
//use rangy to change the selection to the contents of
|
470
|
+
//the last li that was appended to the list
|
471
|
+
var li = lastAppendedLi.get(0);
|
472
|
+
if (GENTICS.Utils.Dom.isEmpty(li)) {
|
473
|
+
var range = Aloha.createRange();
|
474
|
+
var selection = Aloha.getSelection();
|
475
|
+
//IE7 requires an (empty or non-empty) text node
|
476
|
+
//inside the li for the selection to work.
|
477
|
+
li.appendChild(document.createTextNode(""));
|
478
|
+
range.selectNodeContents( li.lastChild );
|
479
|
+
selection.removeAllRanges();
|
480
|
+
selection.addRange( range );
|
481
|
+
Aloha.Selection.updateSelection();
|
482
|
+
}
|
483
|
+
}
|
484
|
+
|
485
|
+
// refresh the selection
|
486
|
+
this.refreshSelection();
|
487
|
+
},
|
488
|
+
|
489
|
+
|
490
|
+
/**
|
491
|
+
* Indent the selected list items by moving them into a new created, nested list
|
492
|
+
*/
|
493
|
+
indentList: function () {
|
494
|
+
var listItem = this.getNearestSelectedListItem(),
|
495
|
+
i, jqNewList, selectedSiblings, jqOldList, jqItemBefore;
|
496
|
+
|
497
|
+
if (listItem) {
|
498
|
+
jqItemBefore = jQuery(listItem).prev('li');
|
499
|
+
|
500
|
+
// when we are in the first li of a list, there is no indenting
|
501
|
+
if (jqItemBefore.length === 0) {
|
502
|
+
// but we handled the TAB keystroke
|
503
|
+
return false;
|
504
|
+
}
|
505
|
+
jqOldList = jQuery(listItem).parent();
|
506
|
+
|
507
|
+
// get the also selected siblings of the dom object
|
508
|
+
selectedSiblings = Aloha.Selection.rangeObject.getSelectedSiblings(listItem);
|
509
|
+
|
510
|
+
// create the new list element by cloning the selected list element's parent
|
511
|
+
jqNewList = jQuery(listItem).parent().clone(false).empty();
|
512
|
+
jqNewList.append(listItem);
|
513
|
+
|
514
|
+
// we found a list item before the first selected one, so append the new list to it
|
515
|
+
jqItemBefore.append(jqNewList);
|
516
|
+
|
517
|
+
// check for multiple selected items
|
518
|
+
if (selectedSiblings) {
|
519
|
+
for ( i = 0; i < selectedSiblings.length; ++i) {
|
520
|
+
jqNewList.append(jQuery(selectedSiblings[i]));
|
521
|
+
}
|
522
|
+
}
|
523
|
+
|
524
|
+
// merge adjacent lists
|
525
|
+
this.mergeAdjacentLists(jqNewList, true);
|
526
|
+
|
527
|
+
// refresh the selection
|
528
|
+
this.refreshSelection();
|
529
|
+
|
530
|
+
return false;
|
531
|
+
}
|
532
|
+
|
533
|
+
return true;
|
534
|
+
},
|
535
|
+
|
536
|
+
/**
|
537
|
+
* Outdent nested list items by moving them into the outer list
|
538
|
+
*/
|
539
|
+
outdentList: function () {
|
540
|
+
var
|
541
|
+
listItem = this.getNearestSelectedListItem(),
|
542
|
+
i, jqNewPostList,
|
543
|
+
jqListItem, jqList, jqParentList, wrappingLi,
|
544
|
+
selectedSiblings, lastSelected;
|
545
|
+
|
546
|
+
if (listItem) {
|
547
|
+
// check whether the list is nested into another list
|
548
|
+
jqListItem = jQuery(listItem);
|
549
|
+
jqList = jqListItem.parent();
|
550
|
+
|
551
|
+
// get the parent list
|
552
|
+
jqParentList = jqList.parents('ul,ol');
|
553
|
+
|
554
|
+
// check whether the inner list is directly inserted into a li element
|
555
|
+
wrappingLi = jqList.parent('li');
|
556
|
+
|
557
|
+
if (jqParentList.length > 0
|
558
|
+
&& GENTICS.Utils.Dom.isListElement(jqParentList.get(0))) {
|
559
|
+
// the list is nested into another list
|
560
|
+
|
561
|
+
// get the also selected siblings of the dom object
|
562
|
+
selectedSiblings = Aloha.Selection.rangeObject.getSelectedSiblings(listItem);
|
563
|
+
|
564
|
+
// check for multiple selected items
|
565
|
+
if (selectedSiblings && selectedSiblings.length > 0) {
|
566
|
+
lastSelected = jQuery(selectedSiblings[selectedSiblings.length - 1]);
|
567
|
+
} else {
|
568
|
+
lastSelected = jqListItem;
|
569
|
+
}
|
570
|
+
|
571
|
+
// check whether we found not selected li's after the selection
|
572
|
+
if (lastSelected.nextAll('li').length > 0) {
|
573
|
+
jqNewPostList = jqList.clone(false).empty();
|
574
|
+
jqNewPostList.append(lastSelected.nextAll());
|
575
|
+
lastSelected.append(jqNewPostList);
|
576
|
+
}
|
577
|
+
|
578
|
+
// now move all selected li's into the higher list
|
579
|
+
if (wrappingLi.length > 0) {
|
580
|
+
wrappingLi.after(jqListItem);
|
581
|
+
} else {
|
582
|
+
jqList.before(jqListItem);
|
583
|
+
}
|
584
|
+
|
585
|
+
// check for multiple selected items
|
586
|
+
if (selectedSiblings && selectedSiblings.length > 0) {
|
587
|
+
for ( i = selectedSiblings.length - 1; i >= 0; --i) {
|
588
|
+
jqListItem.after(jQuery(selectedSiblings[i]));
|
589
|
+
}
|
590
|
+
}
|
591
|
+
|
592
|
+
// finally check whether there are elements left in the list
|
593
|
+
if (jqList.contents('li').length === 0) {
|
594
|
+
// list is completely empty, so remove it
|
595
|
+
jqList.remove();
|
596
|
+
}
|
597
|
+
|
598
|
+
// check whether the wrapping li is empty now
|
599
|
+
if (wrappingLi.length > 0 && wrappingLi.contents().length === 0) {
|
600
|
+
wrappingLi.remove();
|
601
|
+
}
|
602
|
+
|
603
|
+
// refresh the selection
|
604
|
+
this.refreshSelection();
|
605
|
+
}
|
606
|
+
|
607
|
+
return false;
|
608
|
+
}
|
609
|
+
|
610
|
+
return true;
|
611
|
+
},
|
612
|
+
|
613
|
+
/**
|
614
|
+
* Refresh the current selection and set to focus to the current editable again
|
615
|
+
*/
|
616
|
+
refreshSelection: function () {
|
617
|
+
Aloha.Selection.rangeObject.update();
|
618
|
+
Aloha.Selection.rangeObject.select();
|
619
|
+
Aloha.Selection.updateSelection();
|
620
|
+
},
|
621
|
+
|
622
|
+
/**
|
623
|
+
* Merge adjacent lists (of same type) into the first list
|
624
|
+
* @param jqList jQuery object of a list
|
625
|
+
* @param allTypes true if all types of lists may be merged, false if only same types may be merged
|
626
|
+
*/
|
627
|
+
mergeAdjacentLists: function (jqList, allTypes) {
|
628
|
+
// first get the first previous sibling of same type
|
629
|
+
var firstList = jqList.get(0), jqNextList;
|
630
|
+
|
631
|
+
while (
|
632
|
+
firstList.previousSibling
|
633
|
+
&& firstList.previousSibling.nodeType === 1
|
634
|
+
&& this.isMergable(firstList.previousSibling, firstList, allTypes)
|
635
|
+
) {
|
636
|
+
firstList = firstList.previousSibling;
|
637
|
+
}
|
638
|
+
|
639
|
+
jqList = jQuery(firstList);
|
640
|
+
// now merge all adjacent lists into this one
|
641
|
+
while (
|
642
|
+
firstList.nextSibling
|
643
|
+
&& (
|
644
|
+
(
|
645
|
+
firstList.nextSibling.nodeType === 1
|
646
|
+
&& this.isMergable(firstList.nextSibling, firstList, allTypes)
|
647
|
+
) || (
|
648
|
+
firstList.nextSibling.nodeType === 3
|
649
|
+
&& jQuery.trim(firstList.nextSibling.data).length === 0
|
650
|
+
)
|
651
|
+
)
|
652
|
+
) {
|
653
|
+
jqNextList = jQuery(firstList.nextSibling);
|
654
|
+
if (firstList.nextSibling.nodeType == 1) {
|
655
|
+
jqNextList.contents().appendTo(jqList);
|
656
|
+
}
|
657
|
+
jqNextList.remove();
|
658
|
+
}
|
659
|
+
},
|
660
|
+
|
661
|
+
/**
|
662
|
+
* Check whether the given DOM element toCheck is mergeable into the DOM element mergeInto
|
663
|
+
* @param toCheck DOM element to check
|
664
|
+
* @param mergeInto DOM element into which toCheck shall be merged
|
665
|
+
* @param allTypes true if all types of lists may be merged, false if only same types may be merged
|
666
|
+
*/
|
667
|
+
isMergable: function (toCheck, mergeInto, allTypes) {
|
668
|
+
if (allTypes) {
|
669
|
+
return toCheck.nodeName.toLowerCase() == 'ul' || toCheck.nodeName.toLowerCase() == 'ol';
|
670
|
+
} else {
|
671
|
+
return toCheck.nodeName == mergeInto.nodeName;
|
672
|
+
}
|
673
|
+
}
|
674
|
+
});
|
675
|
+
|
676
|
+
/**
|
677
|
+
*
|
678
|
+
*/
|
679
|
+
Engine.commands['insertorderedlist'] = {
|
680
|
+
action: function(value, range) {
|
681
|
+
ListPlugin.transformList(true);
|
682
|
+
if (range && Aloha.Selection.rangeObject) {
|
683
|
+
range.startContainer = Aloha.Selection.rangeObject.startContainer;
|
684
|
+
range.startOffset = Aloha.Selection.rangeObject.startOffset;
|
685
|
+
range.endContainer = Aloha.Selection.rangeObject.endContainer;
|
686
|
+
range.endOffset = Aloha.Selection.rangeObject.endOffset;
|
687
|
+
}
|
688
|
+
},
|
689
|
+
indeterm: function() {
|
690
|
+
// TODO
|
691
|
+
},
|
692
|
+
state: function() {
|
693
|
+
for ( i = 0; i < rangeObject.markupEffectiveAtStart.length; i++) {
|
694
|
+
effectiveMarkup = rangeObject.markupEffectiveAtStart[ i ];
|
695
|
+
if (Aloha.Selection.standardTagNameComparator(effectiveMarkup, jQuery('<ul></ul>'))) {
|
696
|
+
return false;
|
697
|
+
}
|
698
|
+
if (Aloha.Selection.standardTagNameComparator(effectiveMarkup, jQuery('<ol></ol>'))) {
|
699
|
+
return true;
|
700
|
+
}
|
701
|
+
}
|
702
|
+
|
703
|
+
return false;
|
704
|
+
}
|
705
|
+
};
|
706
|
+
|
707
|
+
Engine.commands['insertunorderedlist'] = {
|
708
|
+
action: function(value, range) {
|
709
|
+
ListPlugin.transformList(false);
|
710
|
+
if (range && Aloha.Selection.rangeObject) {
|
711
|
+
range.startContainer = Aloha.Selection.rangeObject.startContainer;
|
712
|
+
range.startOffset = Aloha.Selection.rangeObject.startOffset;
|
713
|
+
range.endContainer = Aloha.Selection.rangeObject.endContainer;
|
714
|
+
range.endOffset = Aloha.Selection.rangeObject.endOffset;
|
715
|
+
}
|
716
|
+
},
|
717
|
+
indeterm: function() {
|
718
|
+
// TODO
|
719
|
+
},
|
720
|
+
state: function() {
|
721
|
+
for ( i = 0; i < rangeObject.markupEffectiveAtStart.length; i++) {
|
722
|
+
effectiveMarkup = rangeObject.markupEffectiveAtStart[ i ];
|
723
|
+
if (Aloha.Selection.standardTagNameComparator(effectiveMarkup, jQuery('<ul></ul>'))) {
|
724
|
+
return true;
|
725
|
+
}
|
726
|
+
if (Aloha.Selection.standardTagNameComparator(effectiveMarkup, jQuery('<ol></ol>'))) {
|
727
|
+
return false;
|
728
|
+
}
|
729
|
+
}
|
730
|
+
|
731
|
+
return false;
|
732
|
+
}
|
733
|
+
};
|
734
|
+
|
735
|
+
Engine.commands['indent'] = {
|
736
|
+
action: function(value, range) {
|
737
|
+
ListPlugin.indentList();
|
738
|
+
if (range && Aloha.Selection.rangeObject) {
|
739
|
+
range.startContainer = Aloha.Selection.rangeObject.startContainer;
|
740
|
+
range.startOffset = Aloha.Selection.rangeObject.startOffset;
|
741
|
+
range.endContainer = Aloha.Selection.rangeObject.endContainer;
|
742
|
+
range.endOffset = Aloha.Selection.rangeObject.endOffset;
|
743
|
+
}
|
744
|
+
},
|
745
|
+
indeterm: function() {
|
746
|
+
// TODO
|
747
|
+
},
|
748
|
+
state: function() {
|
749
|
+
// TODO
|
750
|
+
return false;
|
751
|
+
}
|
752
|
+
};
|
753
|
+
|
754
|
+
Engine.commands['outdent'] = {
|
755
|
+
action: function(value, range) {
|
756
|
+
ListPlugin.outdentList();
|
757
|
+
if (range && Aloha.Selection.rangeObject) {
|
758
|
+
range.startContainer = Aloha.Selection.rangeObject.startContainer;
|
759
|
+
range.startOffset = Aloha.Selection.rangeObject.startOffset;
|
760
|
+
range.endContainer = Aloha.Selection.rangeObject.endContainer;
|
761
|
+
range.endOffset = Aloha.Selection.rangeObject.endOffset;
|
762
|
+
}
|
763
|
+
},
|
764
|
+
indeterm: function() {
|
765
|
+
// TODO
|
766
|
+
},
|
767
|
+
state: function() {
|
768
|
+
// TODO
|
769
|
+
return false;
|
770
|
+
}
|
771
|
+
};
|
772
|
+
|
773
|
+
/**
|
774
|
+
* A key handler that should be run as a keyup handler for the
|
775
|
+
* backspace and del keys. keyup fires after the browser has already
|
776
|
+
* performed the delete - this handler will perform a cleanup if
|
777
|
+
* necessary.
|
778
|
+
*
|
779
|
+
* Will work around an IE bug which breaks nested lists in the
|
780
|
+
* following situation, where [] is the selection, if backspace is
|
781
|
+
* pressed (same goes for the del key if the selection is at the end
|
782
|
+
* of the li that occurs before the selection):
|
783
|
+
*
|
784
|
+
* <ul>
|
785
|
+
* <li>one</li>
|
786
|
+
* <li><ul><li>two</li></ul></li>
|
787
|
+
* </ul>
|
788
|
+
* <p>[]</p>
|
789
|
+
*
|
790
|
+
* The browser behaviour, if one would presses backspace, results in
|
791
|
+
* the following:
|
792
|
+
*
|
793
|
+
* <ul>
|
794
|
+
* <li>one</li>
|
795
|
+
* <ul><li>two</li></ul>
|
796
|
+
* </ul>
|
797
|
+
*
|
798
|
+
* which is invalid HTML since the <ul>s are nested directly inside
|
799
|
+
* each other.
|
800
|
+
*
|
801
|
+
* Also, the following situation will cause the kind of invalid HTML
|
802
|
+
* as above.
|
803
|
+
* <ul>
|
804
|
+
* <li>one</li>
|
805
|
+
* <li><ul><li>two</li></ul></li>
|
806
|
+
* <li>[]three</li>
|
807
|
+
* </ul>
|
808
|
+
*
|
809
|
+
* Also, the following situtation:
|
810
|
+
* <ul>
|
811
|
+
* <li>one</li>
|
812
|
+
* <li><ul><li>two</li></ul>
|
813
|
+
* <p>[]three</p>
|
814
|
+
* <li>four</li>
|
815
|
+
* </li>
|
816
|
+
* </ul>
|
817
|
+
*
|
818
|
+
* And similar situations, some of which are not so easy to reproduce.
|
819
|
+
*
|
820
|
+
* @param event a jQuery key event
|
821
|
+
* @return false if no action needed to be taken, true if cleanup has been performed
|
822
|
+
*/
|
823
|
+
function deleteWorkaroundHandler(event) {
|
824
|
+
if (8/*backspace*/ != event.keyCode && 46/*del*/ != event.keyCode) {
|
825
|
+
return false;
|
826
|
+
}
|
827
|
+
|
828
|
+
var rangeObj = Aloha.getSelection().getRangeAt(0);
|
829
|
+
var startContainer = rangeObj.startContainer;
|
830
|
+
|
831
|
+
//the hack is only relevant if after the deletion has been
|
832
|
+
//performed we are inside a li of a nested list
|
833
|
+
var $nestedList = jQuery(startContainer).closest('ul, ol');
|
834
|
+
if ( ! $nestedList.length ) {
|
835
|
+
return false;
|
836
|
+
}
|
837
|
+
var $parentList = $nestedList.parent().closest('ul, ol');
|
838
|
+
if ( ! $parentList.length ) {
|
839
|
+
return false;
|
840
|
+
}
|
841
|
+
|
842
|
+
var ranges = Aloha.getSelection().getAllRanges();
|
843
|
+
|
844
|
+
var actionPerformed = false;
|
845
|
+
$parentList.each(function(){
|
846
|
+
actionPerformed = actionPerformed || fixListNesting(jQuery(this));
|
847
|
+
});
|
848
|
+
|
849
|
+
if (actionPerformed) {
|
850
|
+
Aloha.getSelection().setRanges(ranges);
|
851
|
+
for (var i = 0; i < ranges.length; i++) {
|
852
|
+
ranges[i].detach();
|
853
|
+
}
|
854
|
+
}
|
855
|
+
|
856
|
+
return actionPerformed;
|
857
|
+
}
|
858
|
+
|
859
|
+
/**
|
860
|
+
* If uls or ols are nested directly inside the given list (invalid
|
861
|
+
* HTML), they will be cleaned up by being appended to the preceding
|
862
|
+
* li.
|
863
|
+
*/
|
864
|
+
function fixListNesting($list) {
|
865
|
+
var actionPerformed = false;
|
866
|
+
$list.children('ul, ol').each(function(){
|
867
|
+
Aloha.Log.debug("performing list-nesting cleanup");
|
868
|
+
if ( ! jQuery(this).prev('li').append(this).length ) {
|
869
|
+
//if there is no preceding li, create a new one and append to that
|
870
|
+
jQuery(this).parent().prepend(document.createElement('li')).append(this);
|
871
|
+
}
|
872
|
+
actionPerformed = true;
|
873
|
+
});
|
874
|
+
return actionPerformed;
|
875
|
+
}
|
876
|
+
|
877
|
+
return ListPlugin;
|
878
|
+
});
|