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,247 @@
|
|
1
|
+
/* slowlinklist.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
|
+
/* Aloha Link List Repository
|
28
|
+
* --------------------------
|
29
|
+
* A simple demo repository of links, which is deliberatly slow, in order to
|
30
|
+
* simulate lags when querying repositories.
|
31
|
+
*/
|
32
|
+
define(
|
33
|
+
[ 'aloha', 'jquery' ],
|
34
|
+
function ( Aloha, jQuery ) {
|
35
|
+
'use strict'
|
36
|
+
|
37
|
+
/**
|
38
|
+
* Internal data as array with following format:
|
39
|
+
*
|
40
|
+
* [
|
41
|
+
* { name: 'Aloha Editor - The HTML5 Editor', url:'http://aloha-editor.com', type:'website' },
|
42
|
+
* { name: 'Aloha Logo', url:'http://www.aloha-editor.com/images/aloha-editor-logo.png', type:'image' }
|
43
|
+
* ];
|
44
|
+
*
|
45
|
+
* @private
|
46
|
+
*/
|
47
|
+
var urlset = [
|
48
|
+
{ name: 'Aloha Test', url: '#alohatest', type: 'website' },
|
49
|
+
{ name: 'Test One', url: '#test1', type: 'website' },
|
50
|
+
{ name: 'Test Two', url: '#test2', type: 'website' },
|
51
|
+
{ name: 'Test Three', url: '#test3', type: 'website' },
|
52
|
+
{ name: 'Test Four', url: '#test4', type: 'image' }
|
53
|
+
];
|
54
|
+
|
55
|
+
new ( Aloha.AbstractRepository.extend( {
|
56
|
+
|
57
|
+
_constructor: function () {
|
58
|
+
this._super( 'slowlinklist' );
|
59
|
+
},
|
60
|
+
|
61
|
+
/**
|
62
|
+
* Internal folder structure
|
63
|
+
* @hide
|
64
|
+
*/
|
65
|
+
folder: [],
|
66
|
+
|
67
|
+
/**
|
68
|
+
* initalize LinkList, parse all links, build folder structure and add
|
69
|
+
* additional properties to the items
|
70
|
+
*/
|
71
|
+
init: function () {
|
72
|
+
// Add ECMA262-5 Array method filter if not supported natively.
|
73
|
+
// But we will be very conservative and add to this single array
|
74
|
+
// object so that we do not tamper with the native Array prototype
|
75
|
+
// object
|
76
|
+
if ( !( 'filter' in Array.prototype ) ) {
|
77
|
+
urlset.filter = function ( filter, that /*opt*/ ) {
|
78
|
+
var other = [],
|
79
|
+
v,
|
80
|
+
i = 0,
|
81
|
+
n = this.length;
|
82
|
+
|
83
|
+
for ( ; i < n; i++ ) {
|
84
|
+
if ( i in this && filter.call( that, v = this[ i ], i, this ) ) {
|
85
|
+
other.push( v );
|
86
|
+
}
|
87
|
+
}
|
88
|
+
|
89
|
+
return other;
|
90
|
+
};
|
91
|
+
}
|
92
|
+
|
93
|
+
var l = urlset.length;
|
94
|
+
|
95
|
+
// generate folder structure
|
96
|
+
for ( var i = 0; i < l; ++i ) {
|
97
|
+
var e = urlset[ i ];
|
98
|
+
e.repositoryId = this.repositoryId;
|
99
|
+
e.id = e.id ? e.id : e.url;
|
100
|
+
|
101
|
+
var u = e.uri = this.parseUri( e.url ),
|
102
|
+
// add hostname as root folder
|
103
|
+
path = this.addFolder( '', u.host ),
|
104
|
+
pathparts = u.path.split( '/' );
|
105
|
+
|
106
|
+
for ( var j = 0; j < pathparts.length; j++ ) {
|
107
|
+
if ( pathparts[ j ] &&
|
108
|
+
// It's a file because it has an extension.
|
109
|
+
// Could improve this one :)
|
110
|
+
pathparts[ j ].lastIndexOf( '.' ) < 0 ) {
|
111
|
+
path = this.addFolder( path, pathparts[ j ] );
|
112
|
+
}
|
113
|
+
}
|
114
|
+
|
115
|
+
e.parentId = path;
|
116
|
+
|
117
|
+
urlset[ i ] = new Aloha.RepositoryDocument( e );
|
118
|
+
}
|
119
|
+
|
120
|
+
this.repositoryName = 'Linklist';
|
121
|
+
},
|
122
|
+
|
123
|
+
/**
|
124
|
+
* @param {String} path
|
125
|
+
* @param {String} name
|
126
|
+
* @return {String}
|
127
|
+
*/
|
128
|
+
addFolder: function ( path, name ) {
|
129
|
+
var type = path ? 'folder' : 'hostname',
|
130
|
+
p = path ? path + '/' + name : name;
|
131
|
+
|
132
|
+
if ( name && !this.folder[ p ] ) {
|
133
|
+
this.folder[ p ] = new Aloha.RepositoryFolder( {
|
134
|
+
id: p,
|
135
|
+
name: name || p,
|
136
|
+
parentId: path,
|
137
|
+
type: 'host',
|
138
|
+
repositoryId: this.repositoryId
|
139
|
+
} );
|
140
|
+
}
|
141
|
+
|
142
|
+
return p;
|
143
|
+
},
|
144
|
+
|
145
|
+
/**
|
146
|
+
* Searches a repository for object items matching query if
|
147
|
+
* objectTypeFilter. If none is found it returns null.
|
148
|
+
*
|
149
|
+
* @param {Object} p
|
150
|
+
* @param {Function} callback
|
151
|
+
*/
|
152
|
+
query: function ( p, callback ) {
|
153
|
+
// Not supported; filter, orderBy, maxItems, skipcount, renditionFilter
|
154
|
+
var r = new RegExp( p.queryString, 'i' );
|
155
|
+
|
156
|
+
var d = urlset.filter( function ( e, i, a ) {
|
157
|
+
return (
|
158
|
+
( !p.queryString || e.name.match( r ) || e.url.match( r ) ) &&
|
159
|
+
( !p.objectTypeFilter || ( !p.objectTypeFilter.length ) || jQuery.inArray( e.type, p.objectTypeFilter ) > -1 ) &&
|
160
|
+
true //( !p.inFolderId || p.inFolderId == e.parentId )
|
161
|
+
);
|
162
|
+
} );
|
163
|
+
|
164
|
+
window.setTimeout( function () {
|
165
|
+
callback.call( this, d );
|
166
|
+
}, 2000 );
|
167
|
+
},
|
168
|
+
|
169
|
+
/**
|
170
|
+
* returns the folder structure as parsed at init
|
171
|
+
*
|
172
|
+
* @param {Object} p
|
173
|
+
* @param {Function} callback
|
174
|
+
*/
|
175
|
+
getChildren: function ( p, callback ) {
|
176
|
+
var d = [],
|
177
|
+
e;
|
178
|
+
|
179
|
+
for ( e in this.folder ) {
|
180
|
+
var l = this.folder[ e ].parentId;
|
181
|
+
if ( typeof this.folder[ e ] != 'function' && ( // extjs prevention
|
182
|
+
this.folder[ e ].parentId == p.inFolderId || // all subfolders
|
183
|
+
( !this.folder[ e ].parentId && p.inFolderId == this.repositoryId ) // the hostname
|
184
|
+
) ) {
|
185
|
+
d.push( this.folder[ e ] );
|
186
|
+
}
|
187
|
+
}
|
188
|
+
|
189
|
+
window.setTimeout( function () {
|
190
|
+
callback.call( this, d );
|
191
|
+
}, 2000 );
|
192
|
+
},
|
193
|
+
|
194
|
+
//parseUri 1.2.2
|
195
|
+
//(c) Steven Levithan <stevenlevithan.com>
|
196
|
+
//MIT License
|
197
|
+
//http://blog.stevenlevithan.com/archives/parseuri
|
198
|
+
parseUri: function(str) {
|
199
|
+
var o = {
|
200
|
+
strictMode: false,
|
201
|
+
key: [ "source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],
|
202
|
+
q: {
|
203
|
+
name: "queryKey",
|
204
|
+
parser: /(?:^|&)([^&=]*)=?([^&]*)/g
|
205
|
+
},
|
206
|
+
parser: {
|
207
|
+
strict: /^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,
|
208
|
+
loose: /^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/
|
209
|
+
}
|
210
|
+
},
|
211
|
+
m = o.parser[o.strictMode ? "strict" : "loose"].exec(str),
|
212
|
+
uri = {},
|
213
|
+
i = 14;
|
214
|
+
|
215
|
+
while (i--) uri[o.key[i]] = m[i] || "";
|
216
|
+
|
217
|
+
uri[o.q.name] = {};
|
218
|
+
uri[o.key[12]].replace(o.q.parser, function ($0, $1, $2) {
|
219
|
+
if ($1) uri[o.q.name][$1] = $2;
|
220
|
+
});
|
221
|
+
|
222
|
+
return uri;
|
223
|
+
},
|
224
|
+
|
225
|
+
/**
|
226
|
+
* Get the repositoryItem with given id
|
227
|
+
* Callback: {GENTICS.Aloha.Repository.Object} item with given id
|
228
|
+
* @param itemId {String} id of the repository item to fetch
|
229
|
+
* @param callback {function} callback function
|
230
|
+
*/
|
231
|
+
getObjectById: function ( itemId, callback ) {
|
232
|
+
var i = 0,
|
233
|
+
l = urlset.length,
|
234
|
+
d = [];
|
235
|
+
|
236
|
+
for ( ; i < l; i++ ) {
|
237
|
+
if ( urlset[ i ].id == itemId ) {
|
238
|
+
d.push( urlset[ i ] );
|
239
|
+
}
|
240
|
+
}
|
241
|
+
|
242
|
+
callback.call( this, d );
|
243
|
+
}
|
244
|
+
|
245
|
+
} ) )();
|
246
|
+
|
247
|
+
} );
|
@@ -0,0 +1,958 @@
|
|
1
|
+
/* link-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-2013 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
|
+
/* Aloha Link Plugin
|
28
|
+
* -----------------
|
29
|
+
* This plugin provides an interface to allow the user to insert, edit and
|
30
|
+
* remove links within an active editable.
|
31
|
+
* It presents its user interface in the Toolbar, in a Sidebar panel.
|
32
|
+
* Clicking on any links inside the editable activates the this plugin's
|
33
|
+
* floating menu scope.
|
34
|
+
*/
|
35
|
+
define( [
|
36
|
+
'aloha',
|
37
|
+
'aloha/plugin',
|
38
|
+
'aloha/ephemera',
|
39
|
+
'jquery',
|
40
|
+
'ui/port-helper-attribute-field',
|
41
|
+
'ui/ui',
|
42
|
+
'ui/scopes',
|
43
|
+
'ui/surface',
|
44
|
+
'ui/button',
|
45
|
+
'ui/toggleButton',
|
46
|
+
'i18n!link/nls/i18n',
|
47
|
+
'i18n!aloha/nls/i18n',
|
48
|
+
'aloha/console',
|
49
|
+
'PubSub',
|
50
|
+
'util/keys'
|
51
|
+
], function (
|
52
|
+
Aloha,
|
53
|
+
Plugin,
|
54
|
+
Ephemera,
|
55
|
+
jQuery,
|
56
|
+
AttributeField,
|
57
|
+
Ui,
|
58
|
+
Scopes,
|
59
|
+
Surface,
|
60
|
+
Button,
|
61
|
+
ToggleButton,
|
62
|
+
i18n,
|
63
|
+
i18nCore,
|
64
|
+
console,
|
65
|
+
PubSub,
|
66
|
+
Keys
|
67
|
+
) {
|
68
|
+
'use strict';
|
69
|
+
|
70
|
+
var GENTICS = window.GENTICS,
|
71
|
+
pluginNamespace = 'aloha-link',
|
72
|
+
oldValue = '',
|
73
|
+
newValue;
|
74
|
+
|
75
|
+
/**
|
76
|
+
* Properties for cleaning up markup immediately after inserting new link
|
77
|
+
* markup.
|
78
|
+
*
|
79
|
+
* Successive anchor elements are generally not merged, but an exception
|
80
|
+
* needs to be made in the process of creating links: adjacent fragments of
|
81
|
+
* new links are coalesced whenever possible.
|
82
|
+
*
|
83
|
+
* @type {object}
|
84
|
+
*/
|
85
|
+
var insertLinkPostCleanup = {
|
86
|
+
merge: true,
|
87
|
+
mergeable: function (node) {
|
88
|
+
return ('aloha-new-link' === node.className && node.nextSibling
|
89
|
+
&& 'aloha-new-link' === node.nextSibling.className);
|
90
|
+
}
|
91
|
+
};
|
92
|
+
|
93
|
+
Ephemera.classes('aloha-link-pointer', 'aloha-link-text');
|
94
|
+
|
95
|
+
function setupMousePointerFix() {
|
96
|
+
jQuery(document)
|
97
|
+
.bind('keydown.aloha-link.pointer-fix', function (e) {
|
98
|
+
// metaKey for OSX, 17 for PC (we can't check
|
99
|
+
// e.ctrlKey because it's only set on keyup or
|
100
|
+
// keypress, not on keydown).
|
101
|
+
if (e.metaKey || Keys.getToken(e.keyCode) === 'control') {
|
102
|
+
jQuery('body').addClass('aloha-link-pointer');
|
103
|
+
}
|
104
|
+
})
|
105
|
+
.bind('keyup.aloha-link.pointer-fix', function (e) {
|
106
|
+
if (e.metaKey || Keys.getToken(e.keyCode) === 'control') {
|
107
|
+
jQuery('body').removeClass('aloha-link-pointer');
|
108
|
+
}
|
109
|
+
});
|
110
|
+
}
|
111
|
+
|
112
|
+
function teardownMousePointerFix() {
|
113
|
+
jQuery(document).unbind('.aloha-link.pointer-fix');
|
114
|
+
}
|
115
|
+
|
116
|
+
function setupMetaClickLink(editable) {
|
117
|
+
editable.obj.delegate('a', 'click.aloha-link.meta-click-link', function (e) {
|
118
|
+
// Use metaKey for OSX and ctrlKey for PC
|
119
|
+
if (e.metaKey || e.ctrlKey) {
|
120
|
+
// blur current editable. user is waiting for the link to load
|
121
|
+
Aloha.activeEditable.blur();
|
122
|
+
// hack to guarantee a browser history entry
|
123
|
+
window.setTimeout(function () {
|
124
|
+
location.href = e.target;
|
125
|
+
}, 0);
|
126
|
+
e.stopPropagation();
|
127
|
+
return false;
|
128
|
+
}
|
129
|
+
});
|
130
|
+
}
|
131
|
+
|
132
|
+
function teardownMetaClickLink(editable) {
|
133
|
+
editable.obj.unbind('.aloha-link.meta-click-link');
|
134
|
+
}
|
135
|
+
|
136
|
+
return Plugin.create('link', {
|
137
|
+
/**
|
138
|
+
* Default configuration allows links everywhere
|
139
|
+
*/
|
140
|
+
config: [ 'a' ],
|
141
|
+
|
142
|
+
/**
|
143
|
+
* The value that will automatically be set to an anchor tag's title
|
144
|
+
* attribute if its href field matches the titleregex, and the editor
|
145
|
+
* has not manually defined the title attribute.
|
146
|
+
*
|
147
|
+
* @type {string}
|
148
|
+
*/
|
149
|
+
title: null,
|
150
|
+
|
151
|
+
/**
|
152
|
+
* Regular Expression string which the field's href value will be tested
|
153
|
+
* against in order to determine whether or not to set the configured
|
154
|
+
* title attribute value.
|
155
|
+
*
|
156
|
+
* @type {string}
|
157
|
+
*/
|
158
|
+
titleregex: null,
|
159
|
+
|
160
|
+
/**
|
161
|
+
* all links that match the targetregex will get set the target
|
162
|
+
* e.g. ^(?!.*aloha-editor.com).* matches all href except aloha-editor.com
|
163
|
+
*/
|
164
|
+
targetregex: '',
|
165
|
+
|
166
|
+
/**
|
167
|
+
* this target is set when either targetregex matches or not set
|
168
|
+
* e.g. _blank opens all links in new window
|
169
|
+
*/
|
170
|
+
target: '',
|
171
|
+
|
172
|
+
/**
|
173
|
+
* all links that match the cssclassregex will get set the css class
|
174
|
+
* e.g. ^(?!.*aloha-editor.com).* matches all href except aloha-editor.com
|
175
|
+
*/
|
176
|
+
cssclassregex: null,
|
177
|
+
|
178
|
+
/**
|
179
|
+
* this target is set when either cssclassregex matches or not set
|
180
|
+
*/
|
181
|
+
cssclass: '',
|
182
|
+
|
183
|
+
/**
|
184
|
+
* the defined object types to be used for this instance
|
185
|
+
*/
|
186
|
+
objectTypeFilter: [],
|
187
|
+
|
188
|
+
/**
|
189
|
+
* handle change on href change
|
190
|
+
* called function ( obj, href, item );
|
191
|
+
*/
|
192
|
+
onHrefChange: null,
|
193
|
+
|
194
|
+
/**
|
195
|
+
* This variable is used to ignore one selection changed event. We need
|
196
|
+
* to ignore one selectionchanged event when we set our own selection.
|
197
|
+
*/
|
198
|
+
ignoreNextSelectionChangedEvent: false,
|
199
|
+
|
200
|
+
/**
|
201
|
+
* Internal update interval reference to work around an ExtJS bug
|
202
|
+
*/
|
203
|
+
hrefUpdateInt: null,
|
204
|
+
|
205
|
+
/**
|
206
|
+
* HotKeys used for special actions
|
207
|
+
*/
|
208
|
+
hotKey: {
|
209
|
+
insertLink: i18n.t('insertLink', 'ctrl+k')
|
210
|
+
},
|
211
|
+
|
212
|
+
/**
|
213
|
+
* Default input value for a new link
|
214
|
+
*/
|
215
|
+
hrefValue: 'http://',
|
216
|
+
|
217
|
+
/**
|
218
|
+
* Initialize the plugin
|
219
|
+
*/
|
220
|
+
init: function () {
|
221
|
+
var plugin = this;
|
222
|
+
|
223
|
+
if ('undefined' !== typeof this.settings.title) {
|
224
|
+
this.title = this.settings.title;
|
225
|
+
}
|
226
|
+
if ('undefined' !== typeof this.settings.titleregex) {
|
227
|
+
this.titleregex = this.settings.titleregex;
|
228
|
+
}
|
229
|
+
if ( typeof this.settings.targetregex != 'undefined' ) {
|
230
|
+
this.targetregex = this.settings.targetregex;
|
231
|
+
}
|
232
|
+
if ( typeof this.settings.target != 'undefined' ) {
|
233
|
+
this.target = this.settings.target;
|
234
|
+
}
|
235
|
+
if ( typeof this.settings.cssclassregex != 'undefined' ) {
|
236
|
+
this.cssclassregex = this.settings.cssclassregex;
|
237
|
+
}
|
238
|
+
if ( typeof this.settings.cssclass != 'undefined' ) {
|
239
|
+
this.cssclass = this.settings.cssclass;
|
240
|
+
}
|
241
|
+
if ( typeof this.settings.objectTypeFilter != 'undefined' ) {
|
242
|
+
this.objectTypeFilter = this.settings.objectTypeFilter;
|
243
|
+
}
|
244
|
+
if ( typeof this.settings.onHrefChange != 'undefined' ) {
|
245
|
+
this.onHrefChange = this.settings.onHrefChange;
|
246
|
+
}
|
247
|
+
if ( typeof this.settings.hotKey != 'undefined' ) {
|
248
|
+
jQuery.extend(true, this.hotKey, this.settings.hotKey);
|
249
|
+
}
|
250
|
+
if ( typeof this.settings.hrefValue != 'undefined' ) {
|
251
|
+
this.hrefValue = this.settings.hrefValue;
|
252
|
+
}
|
253
|
+
|
254
|
+
this.createButtons();
|
255
|
+
this.subscribeEvents();
|
256
|
+
this.bindInteractions();
|
257
|
+
|
258
|
+
Aloha.bind('aloha-plugins-loaded', function () {
|
259
|
+
plugin.initSidebar(Aloha.Sidebar.right);
|
260
|
+
PubSub.pub('aloha.link.ready', {
|
261
|
+
plugin: plugin
|
262
|
+
})
|
263
|
+
});
|
264
|
+
},
|
265
|
+
|
266
|
+
nsSel: function () {
|
267
|
+
var stringBuilder = [], prefix = pluginNamespace;
|
268
|
+
jQuery.each( arguments, function () {
|
269
|
+
stringBuilder.push( '.' + ( this == '' ? prefix : prefix + '-' + this ) );
|
270
|
+
} );
|
271
|
+
return jQuery.trim(stringBuilder.join(' '));
|
272
|
+
},
|
273
|
+
|
274
|
+
//Creates string with this component's namepsace prefixed the each classname
|
275
|
+
nsClass: function () {
|
276
|
+
var stringBuilder = [], prefix = pluginNamespace;
|
277
|
+
jQuery.each( arguments, function () {
|
278
|
+
stringBuilder.push( this == '' ? prefix : prefix + '-' + this );
|
279
|
+
} );
|
280
|
+
return jQuery.trim(stringBuilder.join(' '));
|
281
|
+
},
|
282
|
+
|
283
|
+
initSidebar: function ( sidebar ) {
|
284
|
+
var pl = this;
|
285
|
+
pl.sidebar = sidebar;
|
286
|
+
sidebar.addPanel( {
|
287
|
+
|
288
|
+
id : pl.nsClass( 'sidebar-panel-target' ),
|
289
|
+
title : i18n.t( 'floatingmenu.tab.link' ),
|
290
|
+
content : '',
|
291
|
+
expanded : true,
|
292
|
+
activeOn : 'a, link',
|
293
|
+
|
294
|
+
onInit: function () {
|
295
|
+
var that = this,
|
296
|
+
content = this.setContent(
|
297
|
+
'<div class="' + pl.nsClass( 'target-container' ) + '"><fieldset><legend>' + i18n.t( 'link.target.legend' ) + '</legend><ul><li><input type="radio" name="targetGroup" class="' + pl.nsClass( 'radioTarget' ) + '" value="_self" /><span>' + i18n.t( 'link.target.self' ) + '</span></li>' +
|
298
|
+
'<li><input type="radio" name="targetGroup" class="' + pl.nsClass( 'radioTarget' ) + '" value="_blank" /><span>' + i18n.t( 'link.target.blank' ) + '</span></li>' +
|
299
|
+
'<li><input type="radio" name="targetGroup" class="' + pl.nsClass( 'radioTarget' ) + '" value="_parent" /><span>' + i18n.t( 'link.target.parent' ) + '</span></li>' +
|
300
|
+
'<li><input type="radio" name="targetGroup" class="' + pl.nsClass( 'radioTarget' ) + '" value="_top" /><span>' + i18n.t( 'link.target.top' ) + '</span></li>' +
|
301
|
+
'<li><input type="radio" name="targetGroup" class="' + pl.nsClass( 'radioTarget' ) + '" value="framename" /><span>' + i18n.t( 'link.target.framename' ) + '</span></li>' +
|
302
|
+
'<li><input type="text" class="' + pl.nsClass( 'framename' ) + '" /></li></ul></fieldset></div>' +
|
303
|
+
'<div class="' + pl.nsClass( 'title-container' ) + '" ><fieldset><legend>' + i18n.t( 'link.title.legend' ) + '</legend><input type="text" class="' + pl.nsClass( 'linkTitle' ) + '" /></fieldset></div>'
|
304
|
+
).content;
|
305
|
+
|
306
|
+
jQuery( pl.nsSel( 'framename' ) ).live( 'keyup', function () {
|
307
|
+
jQuery( that.effective ).attr( 'target', jQuery( this ).val().replace( '\"', '"' ).replace( "'", "'" ) );
|
308
|
+
} );
|
309
|
+
|
310
|
+
jQuery( pl.nsSel( 'radioTarget' ) ).live( 'change', function () {
|
311
|
+
if ( jQuery( this ).val() == 'framename' ) {
|
312
|
+
jQuery( pl.nsSel( 'framename' ) ).slideDown();
|
313
|
+
} else {
|
314
|
+
jQuery( pl.nsSel( 'framename' ) ).slideUp().val( '' );
|
315
|
+
jQuery( that.effective ).attr( 'target', jQuery( this ).val() );
|
316
|
+
}
|
317
|
+
} );
|
318
|
+
|
319
|
+
jQuery( pl.nsSel( 'linkTitle' ) ).live( 'keyup', function () {
|
320
|
+
jQuery( that.effective ).attr( 'title', jQuery( this ).val().replace( '\"', '"' ).replace( "'", "'" ) );
|
321
|
+
} );
|
322
|
+
},
|
323
|
+
|
324
|
+
onActivate: function ( effective ) {
|
325
|
+
var that = this;
|
326
|
+
that.effective = effective;
|
327
|
+
if ( jQuery( that.effective ).attr( 'target' ) != null ) {
|
328
|
+
var isFramename = true;
|
329
|
+
jQuery( pl.nsSel( 'framename' ) ).hide().val( '' );
|
330
|
+
jQuery( pl.nsSel( 'radioTarget' ) ).each( function () {
|
331
|
+
jQuery( this ).removeAttr('checked');
|
332
|
+
if ( jQuery( this ).val() === jQuery( that.effective ).attr( 'target' ) ) {
|
333
|
+
isFramename = false;
|
334
|
+
jQuery( this ).attr( 'checked', 'checked' );
|
335
|
+
}
|
336
|
+
} );
|
337
|
+
if ( isFramename ) {
|
338
|
+
jQuery( pl.nsSel( 'radioTarget[value="framename"]' ) ).attr( 'checked', 'checked' );
|
339
|
+
jQuery( pl.nsSel( 'framename' ) )
|
340
|
+
.val( jQuery( that.effective ).attr( 'target' ) )
|
341
|
+
.show();
|
342
|
+
}
|
343
|
+
} else {
|
344
|
+
jQuery( pl.nsSel( 'radioTarget' ) ).first().attr( 'checked', 'checked' );
|
345
|
+
jQuery( that.effective ).attr( 'target', jQuery( pl.nsSel( 'radioTarget' ) ).first().val() );
|
346
|
+
}
|
347
|
+
|
348
|
+
var that = this;
|
349
|
+
that.effective = effective;
|
350
|
+
jQuery( pl.nsSel( 'linkTitle' ) ).val( jQuery( that.effective ).attr( 'title' ) );
|
351
|
+
}
|
352
|
+
|
353
|
+
} );
|
354
|
+
|
355
|
+
sidebar.show();
|
356
|
+
},
|
357
|
+
|
358
|
+
/**
|
359
|
+
* Subscribe for events
|
360
|
+
*/
|
361
|
+
subscribeEvents: function () {
|
362
|
+
var that = this,
|
363
|
+
isEnabled = {};
|
364
|
+
|
365
|
+
var editablesCreated = 0;
|
366
|
+
|
367
|
+
// add the event handler for creation of editables
|
368
|
+
Aloha.bind('aloha-editable-created', function (event, editable) {
|
369
|
+
var config = that.getEditableConfig(editable.obj),
|
370
|
+
enabled = (jQuery.inArray('a', config) !== -1);
|
371
|
+
|
372
|
+
isEnabled[editable.getId()] = enabled;
|
373
|
+
|
374
|
+
if (!enabled) {
|
375
|
+
return;
|
376
|
+
}
|
377
|
+
|
378
|
+
// enable hotkey for inserting links
|
379
|
+
editable.obj.bind('keydown.aloha-link', that.hotKey.insertLink, function() {
|
380
|
+
if ( that.findLinkMarkup() ) {
|
381
|
+
// open the tab containing the href
|
382
|
+
that.hrefField.foreground();
|
383
|
+
that.hrefField.focus();
|
384
|
+
} else {
|
385
|
+
that.insertLink(true);
|
386
|
+
}
|
387
|
+
return false;
|
388
|
+
} );
|
389
|
+
|
390
|
+
editable.obj.find('a').each(function() {
|
391
|
+
that.addLinkEventHandlers(this);
|
392
|
+
});
|
393
|
+
|
394
|
+
if (0 === editablesCreated++) {
|
395
|
+
setupMousePointerFix();
|
396
|
+
}
|
397
|
+
});
|
398
|
+
|
399
|
+
Aloha.bind('aloha-editable-destroyed', function (event, editable) {
|
400
|
+
editable.obj.unbind('.aloha-link');
|
401
|
+
if (0 === --editablesCreated) {
|
402
|
+
teardownMousePointerFix();
|
403
|
+
}
|
404
|
+
});
|
405
|
+
|
406
|
+
Aloha.bind('aloha-editable-activated', function(event, props) {
|
407
|
+
if (isEnabled[Aloha.activeEditable.getId()]) {
|
408
|
+
that._formatLinkButton.show();
|
409
|
+
that._insertLinkButton.show();
|
410
|
+
} else {
|
411
|
+
that._formatLinkButton.hide();
|
412
|
+
that._insertLinkButton.hide();
|
413
|
+
}
|
414
|
+
setupMetaClickLink(props.editable);
|
415
|
+
});
|
416
|
+
|
417
|
+
var insideLinkScope = false;
|
418
|
+
|
419
|
+
Aloha.bind('aloha-selection-changed', function(event, rangeObject){
|
420
|
+
var enteredLinkScope = false;
|
421
|
+
if (Aloha.activeEditable && isEnabled[Aloha.activeEditable.getId()]) {
|
422
|
+
enteredLinkScope = selectionChangeHandler(that, rangeObject);
|
423
|
+
// Only foreground the tab containing the href field
|
424
|
+
// the first time the user enters the link scope to
|
425
|
+
// avoid intefering with the user's manual tab
|
426
|
+
// selection.
|
427
|
+
if (enteredLinkScope && insideLinkScope !== enteredLinkScope) {
|
428
|
+
that.hrefField.foreground();
|
429
|
+
}
|
430
|
+
}
|
431
|
+
insideLinkScope = enteredLinkScope;
|
432
|
+
});
|
433
|
+
|
434
|
+
// Fixes problem: if one clicks from inside an aloha link
|
435
|
+
// outside the editable and thereby deactivates the
|
436
|
+
// editable, the link scope will remain active.
|
437
|
+
var linkPlugin = this;
|
438
|
+
Aloha.bind('aloha-editable-deactivated', function (event, props) {
|
439
|
+
if (insideLinkScope) {
|
440
|
+
// Leave the link scope lazily to avoid flickering
|
441
|
+
// when switching between anchor element editables.
|
442
|
+
setTimeout(function () {
|
443
|
+
if (!insideLinkScope) {
|
444
|
+
linkPlugin.toggleLinkScope(false);
|
445
|
+
}
|
446
|
+
}, 100);
|
447
|
+
insideLinkScope = false;
|
448
|
+
}
|
449
|
+
teardownMetaClickLink(props.editable);
|
450
|
+
});
|
451
|
+
},
|
452
|
+
|
453
|
+
/**
|
454
|
+
* lets you toggle the link scope to true or false
|
455
|
+
* @param show bool
|
456
|
+
*/
|
457
|
+
toggleLinkScope: function ( show ) {
|
458
|
+
// Check before doing anything as a performance improvement.
|
459
|
+
// The _isScopeActive_editableId check ensures that when
|
460
|
+
// changing from a normal link in an editable to an editable
|
461
|
+
// that is a link itself, the removeLinkButton will be
|
462
|
+
// hidden.
|
463
|
+
if (this._isScopeActive === show && Aloha.activeEditable && this._isScopeActive_editableId === Aloha.activeEditable.getId()) {
|
464
|
+
return;
|
465
|
+
}
|
466
|
+
this._isScopeActive = show;
|
467
|
+
this._isScopeActive_editableId = Aloha.activeEditable && Aloha.activeEditable.getId();
|
468
|
+
if ( show ) {
|
469
|
+
this.hrefField.show();
|
470
|
+
this._insertLinkButton.hide();
|
471
|
+
// Never show the removeLinkButton when the link itself
|
472
|
+
// is the editable.
|
473
|
+
if (Aloha.activeEditable && Aloha.activeEditable.obj[0].nodeName === 'A') {
|
474
|
+
this._removeLinkButton.hide();
|
475
|
+
} else {
|
476
|
+
this._removeLinkButton.show();
|
477
|
+
}
|
478
|
+
this._formatLinkButton.setState(true);
|
479
|
+
Scopes.enterScope(this.name, 'link');
|
480
|
+
} else {
|
481
|
+
this.hrefField.hide();
|
482
|
+
this._insertLinkButton.show();
|
483
|
+
this._removeLinkButton.hide();
|
484
|
+
this._formatLinkButton.setState(false);
|
485
|
+
// The calls to enterScope and leaveScope by the link
|
486
|
+
// plugin are not balanced.
|
487
|
+
// When the selection is changed from one link to
|
488
|
+
// another, the link scope is incremented more than
|
489
|
+
// decremented, which necessitates the force=true
|
490
|
+
// argument to leaveScope.
|
491
|
+
Scopes.leaveScope(this.name, 'link', true);
|
492
|
+
}
|
493
|
+
},
|
494
|
+
|
495
|
+
/**
|
496
|
+
* Add event handlers to the given link object
|
497
|
+
* @param link object
|
498
|
+
*/
|
499
|
+
addLinkEventHandlers: function ( link ) {
|
500
|
+
var that = this;
|
501
|
+
|
502
|
+
// show pointer on mouse over
|
503
|
+
jQuery( link ).mouseenter( function ( e ) {
|
504
|
+
Aloha.Log.debug( that, 'mouse over link.' );
|
505
|
+
that.mouseOverLink = link;
|
506
|
+
that.updateMousePointer();
|
507
|
+
} );
|
508
|
+
|
509
|
+
// in any case on leave show text cursor
|
510
|
+
jQuery( link ).mouseleave( function ( e ) {
|
511
|
+
Aloha.Log.debug( that, 'mouse left link.' );
|
512
|
+
that.mouseOverLink = null;
|
513
|
+
that.updateMousePointer();
|
514
|
+
} );
|
515
|
+
|
516
|
+
// follow link on ctrl or meta + click
|
517
|
+
jQuery( link ).click( function ( e ) {
|
518
|
+
if ( e.metaKey ) {
|
519
|
+
// blur current editable. user is waiting for the link to load
|
520
|
+
Aloha.activeEditable.blur();
|
521
|
+
// hack to guarantee a browser history entry
|
522
|
+
window.setTimeout( function () {
|
523
|
+
location.href = e.target;
|
524
|
+
}, 0 );
|
525
|
+
e.stopPropagation();
|
526
|
+
|
527
|
+
return false;
|
528
|
+
}
|
529
|
+
} );
|
530
|
+
},
|
531
|
+
|
532
|
+
/**
|
533
|
+
* Initialize the buttons
|
534
|
+
*/
|
535
|
+
createButtons: function () {
|
536
|
+
var that = this;
|
537
|
+
|
538
|
+
this._formatLinkButton = Ui.adopt("formatLink", ToggleButton, {
|
539
|
+
tooltip: i18n.t("button.addlink.tooltip"),
|
540
|
+
icon: "aloha-icon aloha-icon-link",
|
541
|
+
scope: 'Aloha.continuoustext',
|
542
|
+
click: function() {
|
543
|
+
that.formatLink();
|
544
|
+
}
|
545
|
+
});
|
546
|
+
|
547
|
+
this._insertLinkButton = Ui.adopt("insertLink", Button, {
|
548
|
+
tooltip: i18n.t("button.addlink.tooltip"),
|
549
|
+
icon: "aloha-icon aloha-icon-link",
|
550
|
+
scope: 'Aloha.continuoustext',
|
551
|
+
click: function() {
|
552
|
+
that.insertLink(false);
|
553
|
+
}
|
554
|
+
});
|
555
|
+
|
556
|
+
this.hrefField = AttributeField({
|
557
|
+
name: 'editLink',
|
558
|
+
width: 320,
|
559
|
+
valueField: 'url',
|
560
|
+
cls: 'aloha-link-href-field',
|
561
|
+
scope: 'Aloha.continuoustext',
|
562
|
+
noTargetHighlight: true,
|
563
|
+
targetHighlightClass: 'aloha-focus'
|
564
|
+
});
|
565
|
+
this.hrefField.setTemplate('<span><b>{name}</b><br/>{url}</span>');
|
566
|
+
this.hrefField.setObjectTypeFilter( this.objectTypeFilter );
|
567
|
+
|
568
|
+
this._removeLinkButton = Ui.adopt("removeLink", Button, {
|
569
|
+
tooltip: i18n.t("button.removelink.tooltip"),
|
570
|
+
icon: "aloha-icon aloha-icon-unlink",
|
571
|
+
scope: 'Aloha.continuoustext',
|
572
|
+
click: function() {
|
573
|
+
that.removeLink();
|
574
|
+
}
|
575
|
+
});
|
576
|
+
},
|
577
|
+
|
578
|
+
/**
|
579
|
+
* Parse a all editables for links and bind an onclick event
|
580
|
+
* Add the link short cut to all edtiables
|
581
|
+
*/
|
582
|
+
bindInteractions: function () {
|
583
|
+
var that = this;
|
584
|
+
|
585
|
+
// update link object when src changes
|
586
|
+
this.hrefField.addListener( 'keyup', function ( event ) {
|
587
|
+
if (Keys.getToken(event.keyCode) === 'escape') {
|
588
|
+
var curval = that.hrefField.getValue();
|
589
|
+
if ( curval[ 0 ] == '/' || // local link
|
590
|
+
curval[ 0 ] == '#' || // inner document link
|
591
|
+
curval.match( /^.*\.([a-z]){2,4}$/i ) || // local file with extension
|
592
|
+
curval.match( /^([a-z]){3,10}:\/\/.+/i ) || // external link (http(s), ftp(s), ssh, file, skype, ... )
|
593
|
+
curval.match( /^(mailto|tel):.+/i ) // mailto / tel link
|
594
|
+
) {
|
595
|
+
// could be a link better leave it as it is
|
596
|
+
} else {
|
597
|
+
// the user searched for something and aborted
|
598
|
+
var hrefValue = that.hrefField.getValue();
|
599
|
+
|
600
|
+
// restore original value and hide combo list
|
601
|
+
that.hrefField.setValue( hrefValue );
|
602
|
+
|
603
|
+
if ( hrefValue == that.hrefValue || hrefValue == '' ) {
|
604
|
+
that.removeLink( false );
|
605
|
+
}
|
606
|
+
|
607
|
+
}
|
608
|
+
}
|
609
|
+
|
610
|
+
that.hrefChange();
|
611
|
+
|
612
|
+
// Terminate the link scope and show the final link.
|
613
|
+
if (Keys.getToken(event.keyCode) === 'enter') {
|
614
|
+
// Update the selection and place the cursor at the end of the link.
|
615
|
+
var range = Aloha.Selection.getRangeObject();
|
616
|
+
|
617
|
+
// workaround to keep the found markup otherwise removelink won't work
|
618
|
+
// var foundMarkup = that.findLinkMarkup( range );
|
619
|
+
// console.dir(foundMarkup);
|
620
|
+
// that.hrefField.setTargetObject(foundMarkup, 'href');
|
621
|
+
|
622
|
+
// We have to ignore the next 2 onselectionchange events.
|
623
|
+
// The first one we need to ignore is the one trigger when
|
624
|
+
// we reposition the selection to right at the end of the
|
625
|
+
// link.
|
626
|
+
// Not sure what the next event is yet but we need to
|
627
|
+
// ignore it as well, ignoring it prevents the value of
|
628
|
+
// hrefField from being set to the old value.
|
629
|
+
that.ignoreNextSelectionChangedEvent = true;
|
630
|
+
range.startContainer = range.endContainer;
|
631
|
+
range.startOffset = range.endOffset;
|
632
|
+
range.select();
|
633
|
+
that.ignoreNextSelectionChangedEvent = true;
|
634
|
+
|
635
|
+
var hrefValue = jQuery( that.hrefField.getInputElem() ).attr( 'value' );
|
636
|
+
|
637
|
+
if ( hrefValue == that.hrefValue || hrefValue == '' ) {
|
638
|
+
that.removeLink( false );
|
639
|
+
}
|
640
|
+
|
641
|
+
window.setTimeout( function () {
|
642
|
+
Scopes.setScope('Aloha.continuoustext');
|
643
|
+
}, 100 );
|
644
|
+
} else {
|
645
|
+
// Check whether the value in the input field has changed
|
646
|
+
// because if it has, then the ui-attribute object's store
|
647
|
+
// needs to be cleared. The reason we need to do this
|
648
|
+
// clearing is because once the auto-suggeset combo box is
|
649
|
+
// shown and/or populated, the next enter keypress event
|
650
|
+
// would be handled as if the user is selecting one of the
|
651
|
+
// elements in the down down list.
|
652
|
+
newValue = jQuery( that.hrefField.getInputElem() ).attr( 'value' );
|
653
|
+
if ( oldValue != newValue ) {
|
654
|
+
oldValue = newValue;
|
655
|
+
}
|
656
|
+
}
|
657
|
+
});
|
658
|
+
|
659
|
+
jQuery( document )
|
660
|
+
.keydown( function ( e ) {
|
661
|
+
Aloha.Log.debug( that, 'Meta key down.' );
|
662
|
+
that.metaKey = e.metaKey;
|
663
|
+
that.updateMousePointer();
|
664
|
+
} ).keyup( function ( e ) {
|
665
|
+
Aloha.Log.debug( that, 'Meta key up.' );
|
666
|
+
that.metaKey = e.metaKey;
|
667
|
+
that.updateMousePointer();
|
668
|
+
} );
|
669
|
+
},
|
670
|
+
|
671
|
+
/**
|
672
|
+
* Updates the mouse pointer
|
673
|
+
*/
|
674
|
+
updateMousePointer: function () {
|
675
|
+
if ( this.metaKey && this.mouseOverLink ) {
|
676
|
+
Aloha.Log.debug( this, 'set pointer' );
|
677
|
+
jQuery( this.mouseOverLink ).removeClass( 'aloha-link-text' );
|
678
|
+
jQuery( this.mouseOverLink ).addClass( 'aloha-link-pointer' );
|
679
|
+
} else {
|
680
|
+
jQuery( this.mouseOverLink ).removeClass( 'aloha-link-pointer' );
|
681
|
+
jQuery( this.mouseOverLink ).addClass( 'aloha-link-text' );
|
682
|
+
}
|
683
|
+
},
|
684
|
+
|
685
|
+
/**
|
686
|
+
* Check whether inside a link tag
|
687
|
+
* @param {GENTICS.Utils.RangeObject} range range where to insert the
|
688
|
+
* object (at start or end)
|
689
|
+
* @return markup
|
690
|
+
* @hide
|
691
|
+
*/
|
692
|
+
findLinkMarkup: function ( range ) {
|
693
|
+
if ( typeof range == 'undefined' ) {
|
694
|
+
range = Aloha.Selection.getRangeObject();
|
695
|
+
}
|
696
|
+
if ( Aloha.activeEditable ) {
|
697
|
+
// If the anchor element itself is the editable, we
|
698
|
+
// still want to show the link tab.
|
699
|
+
var limit = Aloha.activeEditable.obj;
|
700
|
+
if (limit[0] && limit[0].nodeName === 'A') {
|
701
|
+
limit = limit.parent();
|
702
|
+
}
|
703
|
+
return range.findMarkup(function () {
|
704
|
+
return this.nodeName == 'A';
|
705
|
+
}, limit);
|
706
|
+
} else {
|
707
|
+
return null;
|
708
|
+
}
|
709
|
+
},
|
710
|
+
|
711
|
+
/**
|
712
|
+
* Format the current selection or if collapsed the current word as
|
713
|
+
* link. If inside a link tag the link is removed.
|
714
|
+
*/
|
715
|
+
formatLink: function () {
|
716
|
+
if ( Aloha.activeEditable ) {
|
717
|
+
if ( this.findLinkMarkup( Aloha.Selection.getRangeObject() ) ) {
|
718
|
+
this.removeLink();
|
719
|
+
} else {
|
720
|
+
this.insertLink();
|
721
|
+
}
|
722
|
+
}
|
723
|
+
},
|
724
|
+
|
725
|
+
/**
|
726
|
+
* Insert a new link at the current selection. When the selection is
|
727
|
+
* collapsed, the link will have a default link text, otherwise the
|
728
|
+
* selected text will be the link text.
|
729
|
+
*/
|
730
|
+
insertLink: function ( extendToWord ) {
|
731
|
+
var that = this,
|
732
|
+
range = Aloha.Selection.getRangeObject(),
|
733
|
+
linkText,
|
734
|
+
newLink;
|
735
|
+
|
736
|
+
// There are occasions where we do not get a valid range, in such
|
737
|
+
// cases we should not try and add a link
|
738
|
+
if ( !( range.startContainer && range.endContainer ) ) {
|
739
|
+
return;
|
740
|
+
}
|
741
|
+
|
742
|
+
// do not nest a link inside a link
|
743
|
+
if ( this.findLinkMarkup( range ) ) {
|
744
|
+
return;
|
745
|
+
}
|
746
|
+
|
747
|
+
// activate floating menu tab
|
748
|
+
this.hrefField.foreground();
|
749
|
+
|
750
|
+
// if selection is collapsed then extend to the word.
|
751
|
+
if ( range.isCollapsed() && extendToWord !== false ) {
|
752
|
+
GENTICS.Utils.Dom.extendToWord( range );
|
753
|
+
}
|
754
|
+
if ( range.isCollapsed() ) {
|
755
|
+
// insert a link with text here
|
756
|
+
linkText = i18n.t( 'newlink.defaulttext' );
|
757
|
+
newLink = jQuery( '<a href="' + that.hrefValue + '" class="aloha-new-link">' + linkText + '</a>' );
|
758
|
+
GENTICS.Utils.Dom.insertIntoDOM( newLink, range, jQuery( Aloha.activeEditable.obj ) );
|
759
|
+
range.startContainer = range.endContainer = newLink.contents().get( 0 );
|
760
|
+
range.startOffset = 0;
|
761
|
+
range.endOffset = linkText.length;
|
762
|
+
} else {
|
763
|
+
newLink = jQuery( '<a href="' + that.hrefValue + '" class="aloha-new-link"></a>' );
|
764
|
+
GENTICS.Utils.Dom.addMarkup( range, newLink, false );
|
765
|
+
GENTICS.Utils.Dom.doCleanup(insertLinkPostCleanup, range);
|
766
|
+
}
|
767
|
+
|
768
|
+
Aloha.activeEditable.obj.find( 'a.aloha-new-link' ).each( function ( i ) {
|
769
|
+
that.addLinkEventHandlers( this );
|
770
|
+
jQuery(this).removeClass( 'aloha-new-link' );
|
771
|
+
} );
|
772
|
+
|
773
|
+
range.select();
|
774
|
+
|
775
|
+
|
776
|
+
// focus has to become before prefilling the attribute, otherwise
|
777
|
+
// Chrome and Firefox will not focus the element correctly.
|
778
|
+
this.hrefField.focus();
|
779
|
+
|
780
|
+
// prefill and select the new href
|
781
|
+
// We need this guard because sometimes the element has not yet been initialized
|
782
|
+
if ( this.hrefField.hasInputElem() ) {
|
783
|
+
jQuery( this.hrefField.getInputElem() ).attr( 'value', that.hrefValue ).select();
|
784
|
+
}
|
785
|
+
|
786
|
+
// because the Aloha Selection is deprecated I need to convert it to a ragne
|
787
|
+
var apiRange = Aloha.createRange();
|
788
|
+
apiRange.setStart(range.startContainer, range.startOffset);
|
789
|
+
apiRange.setEnd(range.endContainer, range.endOffset);
|
790
|
+
|
791
|
+
PubSub.pub('aloha.link.insert', {range: apiRange});
|
792
|
+
this.hrefChange();
|
793
|
+
},
|
794
|
+
|
795
|
+
/**
|
796
|
+
* Remove an a tag and clear the current item from the hrefField
|
797
|
+
*/
|
798
|
+
removeLink: function ( terminateLinkScope ) {
|
799
|
+
var range = Aloha.Selection.getRangeObject(),
|
800
|
+
foundMarkup = this.findLinkMarkup();
|
801
|
+
|
802
|
+
// clear the current item from the href field
|
803
|
+
this.hrefField.setItem(null);
|
804
|
+
if ( foundMarkup ) {
|
805
|
+
// remove the link
|
806
|
+
GENTICS.Utils.Dom.removeFromDOM( foundMarkup, range, true );
|
807
|
+
|
808
|
+
range.startContainer = range.endContainer;
|
809
|
+
range.startOffset = range.endOffset;
|
810
|
+
|
811
|
+
// select the (possibly modified) range
|
812
|
+
range.select();
|
813
|
+
|
814
|
+
if ( typeof terminateLinkScope == 'undefined' ||
|
815
|
+
terminateLinkScope === true ) {
|
816
|
+
Scopes.setScope('Aloha.continuoustext');
|
817
|
+
}
|
818
|
+
}
|
819
|
+
},
|
820
|
+
|
821
|
+
/**
|
822
|
+
* Automatically sets (or unsets) the title attribute value of the given
|
823
|
+
* AttributeField's target anchor element based on the link's href
|
824
|
+
* value.
|
825
|
+
*
|
826
|
+
* @param {AttributeField} field The AttributeField that is to be used.
|
827
|
+
* @param {string} value The value to which the title attribute is to be
|
828
|
+
* set to.
|
829
|
+
* @param {string} regex A string representing a regular expression
|
830
|
+
* against which to test the href value of the
|
831
|
+
* AttributeField `field`, to predicate whether
|
832
|
+
* the title field should be update or not.
|
833
|
+
*/
|
834
|
+
automaticallySetTitle: function (field, value, regex) {
|
835
|
+
var currentValue = jQuery(field.getTargetObject()).attr('title');
|
836
|
+
var canOverwriteTitle = !currentValue || value === currentValue;
|
837
|
+
if (value && canOverwriteTitle) {
|
838
|
+
field.setAttribute('title', value, regex, field.getValue());
|
839
|
+
}
|
840
|
+
},
|
841
|
+
|
842
|
+
/**
|
843
|
+
* Updates the link object depending on the src field
|
844
|
+
*/
|
845
|
+
hrefChange: function () {
|
846
|
+
var that = this;
|
847
|
+
|
848
|
+
this.automaticallySetTitle(
|
849
|
+
this.hrefField,
|
850
|
+
this.title,
|
851
|
+
this.titleregex
|
852
|
+
);
|
853
|
+
|
854
|
+
// For now hard coded attribute handling with regex.
|
855
|
+
// Avoid creating the target attribute, if it's unnecessary, so
|
856
|
+
// that XSS scanners (AntiSamy) don't complain.
|
857
|
+
if ( this.target != '' ) {
|
858
|
+
this.hrefField.setAttribute(
|
859
|
+
'target',
|
860
|
+
this.target,
|
861
|
+
this.targetregex,
|
862
|
+
this.hrefField.getValue()
|
863
|
+
);
|
864
|
+
}
|
865
|
+
|
866
|
+
if (null != this.cssclassregex) {
|
867
|
+
this.hrefField.setAttribute(
|
868
|
+
'class',
|
869
|
+
this.cssclass,
|
870
|
+
this.cssclassregex,
|
871
|
+
this.hrefField.getValue()
|
872
|
+
);
|
873
|
+
}
|
874
|
+
|
875
|
+
var href = that.hrefField.getValue();
|
876
|
+
var element = that.hrefField.getTargetObject();
|
877
|
+
|
878
|
+
Aloha.trigger('aloha-link-href-change', {
|
879
|
+
href: href,
|
880
|
+
obj: element,
|
881
|
+
item: that.hrefField.getItem()
|
882
|
+
});
|
883
|
+
|
884
|
+
PubSub.pub('aloha.link.changed', {
|
885
|
+
href: href,
|
886
|
+
element: element,
|
887
|
+
input: that.hrefField.getInputElem()
|
888
|
+
});
|
889
|
+
|
890
|
+
if ( typeof this.onHrefChange == 'function' ) {
|
891
|
+
this.onHrefChange.call(
|
892
|
+
this,
|
893
|
+
this.hrefField.getTargetObject(),
|
894
|
+
this.hrefField.getValue(),
|
895
|
+
this.hrefField.getItem()
|
896
|
+
);
|
897
|
+
}
|
898
|
+
}
|
899
|
+
});
|
900
|
+
|
901
|
+
function selectionChangeHandler(that, rangeObject) {
|
902
|
+
var foundMarkup,
|
903
|
+
enteredLinkScope = false;
|
904
|
+
|
905
|
+
// Check if we need to ignore this selection changed event for
|
906
|
+
// now and check whether the selection was placed within a
|
907
|
+
// editable area.
|
908
|
+
if ( !that.ignoreNextSelectionChangedEvent
|
909
|
+
&& Aloha.Selection.isSelectionEditable()
|
910
|
+
&& Aloha.activeEditable != null ) {
|
911
|
+
|
912
|
+
foundMarkup = that.findLinkMarkup(rangeObject);
|
913
|
+
|
914
|
+
if (foundMarkup) {
|
915
|
+
that.toggleLinkScope(true);
|
916
|
+
|
917
|
+
// now we are ready to set the target object
|
918
|
+
that.hrefField.setTargetObject(foundMarkup, 'href');
|
919
|
+
|
920
|
+
// if the selection-changed event was raised by the first click interaction on this page
|
921
|
+
// the hrefField component might not be initialized. When the user switches to the link
|
922
|
+
// tab to edit the link the field would be empty. We check for that situation and add a
|
923
|
+
// special interval check to set the value once again
|
924
|
+
if (jQuery('#' + that.hrefField.getInputId()).length == 0) {
|
925
|
+
// there must only be one update interval running at the same time
|
926
|
+
if (that.hrefUpdateInt !== null) {
|
927
|
+
clearInterval(that.hrefUpdateInt);
|
928
|
+
}
|
929
|
+
|
930
|
+
// register a timeout that will set the value as soon as the href field was initialized
|
931
|
+
that.hrefUpdateInt = setInterval( function () {
|
932
|
+
if (jQuery( '#' + that.hrefField.getInputId()).length > 0) { // the object was finally created
|
933
|
+
that.hrefField.setTargetObject(foundMarkup, 'href');
|
934
|
+
clearInterval(that.hrefUpdateInt);
|
935
|
+
}
|
936
|
+
}, 200);
|
937
|
+
}
|
938
|
+
Aloha.trigger('aloha-link-selected');
|
939
|
+
enteredLinkScope = true;
|
940
|
+
|
941
|
+
PubSub.pub('aloha.link.selected', {
|
942
|
+
input: that.hrefField.getInputElem(),
|
943
|
+
href: that.hrefField.getValue(),
|
944
|
+
element: that.hrefField.getTargetObject()
|
945
|
+
});
|
946
|
+
} else {
|
947
|
+
that.toggleLinkScope(false);
|
948
|
+
that.hrefField.setTargetObject(null);
|
949
|
+
Aloha.trigger('aloha-link-unselected');
|
950
|
+
}
|
951
|
+
} else {
|
952
|
+
that.toggleLinkScope(false);
|
953
|
+
}
|
954
|
+
|
955
|
+
that.ignoreNextSelectionChangedEvent = false;
|
956
|
+
return enteredLinkScope;
|
957
|
+
}
|
958
|
+
} );
|