spiderfw 0.6.38 → 0.6.39
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +13 -5
- data/CHANGELOG +23 -0
- data/VERSION +1 -1
- data/apps/core/admin/views/admin.layout.shtml +6 -0
- data/apps/core/auth/controllers/login_controller.rb +1 -1
- data/apps/core/components/assets.rb +55 -6
- data/apps/core/components/public/bootstrap/scss/_variables.scss +5 -2
- data/apps/core/components/public/bootstrap/scss/bootstrap.css +942 -236
- data/apps/core/components/public/bootstrap/scss/responsive.css +187 -30
- data/apps/core/components/public/css/tinymce/skins/lightgray/AbsoluteLayout.less +17 -0
- data/apps/core/components/public/css/tinymce/skins/lightgray/Animations.less +10 -0
- data/apps/core/components/public/css/tinymce/skins/lightgray/Button.less +172 -0
- data/apps/core/components/public/css/tinymce/skins/lightgray/ButtonGroup.less +71 -0
- data/apps/core/components/public/css/tinymce/skins/lightgray/Checkbox.less +49 -0
- data/apps/core/components/public/css/tinymce/skins/lightgray/ColorBox.less +6 -0
- data/apps/core/components/public/css/tinymce/skins/lightgray/ColorButton.less +72 -0
- data/apps/core/components/public/css/tinymce/skins/lightgray/ColorPicker.less +80 -0
- data/apps/core/components/public/css/tinymce/skins/lightgray/ComboBox.less +39 -0
- data/apps/core/components/public/css/tinymce/skins/lightgray/Container.less +9 -0
- data/apps/core/components/public/css/tinymce/skins/lightgray/Content.Inline.less +4 -0
- data/apps/core/components/public/css/tinymce/skins/lightgray/Content.Objects.less +166 -0
- data/apps/core/components/public/css/tinymce/skins/lightgray/Content.less +27 -0
- data/apps/core/components/public/css/tinymce/skins/lightgray/CropRect.less +54 -0
- data/apps/core/components/public/css/tinymce/skins/lightgray/FieldSet.less +15 -0
- data/apps/core/components/public/css/tinymce/skins/lightgray/FitLayout.less +9 -0
- data/apps/core/components/public/css/tinymce/skins/lightgray/FloatPanel.less +69 -0
- data/apps/core/components/public/css/tinymce/skins/lightgray/FlowLayout.less +36 -0
- data/apps/core/components/public/css/tinymce/skins/lightgray/Icons.Ie7.less +136 -0
- data/apps/core/components/public/css/tinymce/skins/lightgray/Icons.less +180 -0
- data/apps/core/components/public/css/tinymce/skins/lightgray/Iframe.less +6 -0
- data/apps/core/components/public/css/tinymce/skins/lightgray/ImagePanel.less +20 -0
- data/apps/core/components/public/css/tinymce/skins/lightgray/InfoBox.less +71 -0
- data/apps/core/components/public/css/tinymce/skins/lightgray/Label.less +38 -0
- data/apps/core/components/public/css/tinymce/skins/lightgray/ListBox.less +26 -0
- data/apps/core/components/public/css/tinymce/skins/lightgray/Menu.less +34 -0
- data/apps/core/components/public/css/tinymce/skins/lightgray/MenuBar.less +32 -0
- data/apps/core/components/public/css/tinymce/skins/lightgray/MenuButton.less +34 -0
- data/apps/core/components/public/css/tinymce/skins/lightgray/MenuItem.less +142 -0
- data/apps/core/components/public/css/tinymce/skins/lightgray/Mixins.less +54 -0
- data/apps/core/components/public/css/tinymce/skins/lightgray/Notification.less +144 -0
- data/apps/core/components/public/css/tinymce/skins/lightgray/Panel.less +7 -0
- data/apps/core/components/public/css/tinymce/skins/lightgray/Path.less +45 -0
- data/apps/core/components/public/css/tinymce/skins/lightgray/Progress.less +34 -0
- data/apps/core/components/public/css/tinymce/skins/lightgray/Radio.less +1 -0
- data/apps/core/components/public/css/tinymce/skins/lightgray/Reset.less +32 -0
- data/apps/core/components/public/css/tinymce/skins/lightgray/ResizeHandle.less +18 -0
- data/apps/core/components/public/css/tinymce/skins/lightgray/Scrollable.less +44 -0
- data/apps/core/components/public/css/tinymce/skins/lightgray/SelectBox.less +6 -0
- data/apps/core/components/public/css/tinymce/skins/lightgray/Slider.less +29 -0
- data/apps/core/components/public/css/tinymce/skins/lightgray/Spacer.less +5 -0
- data/apps/core/components/public/css/tinymce/skins/lightgray/SplitButton.less +49 -0
- data/apps/core/components/public/css/tinymce/skins/lightgray/StackLayout.less +5 -0
- data/apps/core/components/public/css/tinymce/skins/lightgray/TabPanel.less +44 -0
- data/apps/core/components/public/css/tinymce/skins/lightgray/TextBox.less +41 -0
- data/apps/core/components/public/css/tinymce/skins/lightgray/Throbber.less +19 -0
- data/apps/core/components/public/css/tinymce/skins/lightgray/TinyMCE.less +159 -0
- data/apps/core/components/public/css/tinymce/skins/lightgray/ToolTip.less +129 -0
- data/apps/core/components/public/css/tinymce/skins/lightgray/Variables.less +214 -0
- data/apps/core/components/public/css/tinymce/skins/lightgray/Window.less +127 -0
- data/apps/core/components/public/css/tinymce/skins/lightgray/content.inline.min.css +1 -0
- data/apps/core/components/public/css/tinymce/skins/lightgray/content.min.css +1 -0
- data/apps/core/components/public/css/tinymce/skins/lightgray/fonts/readme.md +1 -0
- data/apps/core/components/public/css/tinymce/skins/lightgray/fonts/tinymce-small.eot +0 -0
- data/apps/core/components/public/css/tinymce/skins/lightgray/fonts/tinymce-small.json +1277 -0
- data/apps/core/components/public/css/tinymce/skins/lightgray/fonts/tinymce-small.svg +63 -0
- data/apps/core/components/public/css/tinymce/skins/lightgray/fonts/tinymce-small.ttf +0 -0
- data/apps/core/components/public/css/tinymce/skins/lightgray/fonts/tinymce-small.woff +0 -0
- data/apps/core/components/public/css/tinymce/skins/lightgray/fonts/tinymce.eot +0 -0
- data/apps/core/components/public/css/tinymce/skins/lightgray/fonts/tinymce.json +3381 -0
- data/apps/core/components/public/css/tinymce/skins/lightgray/fonts/tinymce.svg +129 -0
- data/apps/core/components/public/css/tinymce/skins/lightgray/fonts/tinymce.ttf +0 -0
- data/apps/core/components/public/css/tinymce/skins/lightgray/fonts/tinymce.woff +0 -0
- data/apps/core/components/public/css/tinymce/skins/lightgray/img/anchor.gif +0 -0
- data/apps/core/components/public/css/tinymce/skins/lightgray/img/loader.gif +0 -0
- data/apps/core/components/public/css/tinymce/skins/lightgray/img/object.gif +0 -0
- data/apps/core/components/public/css/tinymce/skins/lightgray/img/trans.gif +0 -0
- data/apps/core/components/public/css/tinymce/skins/lightgray/skin.dev.less +46 -0
- data/apps/core/components/public/css/tinymce/skins/lightgray/skin.ie7.dev.less +46 -0
- data/apps/core/components/public/css/tinymce/skins/lightgray/skin.ie7.less +2542 -0
- data/apps/core/components/public/css/tinymce/skins/lightgray/skin.ie7.min.css +1 -0
- data/apps/core/components/public/css/tinymce/skins/lightgray/skin.less +2586 -0
- data/apps/core/components/public/css/tinymce/skins/lightgray/skin.min.css +1 -0
- data/apps/core/components/public/js/bootbox_2/bootbox.js +551 -0
- data/apps/core/components/public/js/jquery/jquery-ui-1.9.2/ui/i18n/jquery.ui.datepicker-it-min.js +4 -0
- data/apps/core/components/public/js/spider.js +7 -3
- data/apps/core/components/public/js/tinymce/classes/AddOnManager.js +265 -0
- data/apps/core/components/public/js/tinymce/classes/Compat.js +90 -0
- data/apps/core/components/public/js/tinymce/classes/DragDropOverrides.js +224 -0
- data/apps/core/components/public/js/tinymce/classes/Editor.js +2221 -0
- data/apps/core/components/public/js/tinymce/classes/EditorCommands.js +1028 -0
- data/apps/core/components/public/js/tinymce/classes/EditorManager.js +715 -0
- data/apps/core/components/public/js/tinymce/classes/EditorObservable.js +204 -0
- data/apps/core/components/public/js/tinymce/classes/EditorUpload.js +191 -0
- data/apps/core/components/public/js/tinymce/classes/EnterKey.js +676 -0
- data/apps/core/components/public/js/tinymce/classes/Env.js +177 -0
- data/apps/core/components/public/js/tinymce/classes/FocusManager.js +266 -0
- data/apps/core/components/public/js/tinymce/classes/ForceBlocks.js +138 -0
- data/apps/core/components/public/js/tinymce/classes/Formatter.js +2378 -0
- data/apps/core/components/public/js/tinymce/classes/LegacyInput.js +82 -0
- data/apps/core/components/public/js/tinymce/classes/Mode.js +54 -0
- data/apps/core/components/public/js/tinymce/classes/NodeChange.js +154 -0
- data/apps/core/components/public/js/tinymce/classes/NotificationManager.js +156 -0
- data/apps/core/components/public/js/tinymce/classes/Register.js +34 -0
- data/apps/core/components/public/js/tinymce/classes/SelectionOverrides.js +810 -0
- data/apps/core/components/public/js/tinymce/classes/Shortcuts.js +172 -0
- data/apps/core/components/public/js/tinymce/classes/UndoManager.js +346 -0
- data/apps/core/components/public/js/tinymce/classes/WindowManager.js +278 -0
- data/apps/core/components/public/js/tinymce/classes/caret/CaretBookmark.js +263 -0
- data/apps/core/components/public/js/tinymce/classes/caret/CaretCandidate.js +86 -0
- data/apps/core/components/public/js/tinymce/classes/caret/CaretContainer.js +151 -0
- data/apps/core/components/public/js/tinymce/classes/caret/CaretPosition.js +371 -0
- data/apps/core/components/public/js/tinymce/classes/caret/CaretUtils.js +302 -0
- data/apps/core/components/public/js/tinymce/classes/caret/CaretWalker.js +215 -0
- data/apps/core/components/public/js/tinymce/classes/caret/FakeCaret.js +192 -0
- data/apps/core/components/public/js/tinymce/classes/caret/LineUtils.js +135 -0
- data/apps/core/components/public/js/tinymce/classes/caret/LineWalker.js +166 -0
- data/apps/core/components/public/js/tinymce/classes/data/Binding.js +79 -0
- data/apps/core/components/public/js/tinymce/classes/data/ObservableArray.js +196 -0
- data/apps/core/components/public/js/tinymce/classes/data/ObservableObject.js +194 -0
- data/apps/core/components/public/js/tinymce/classes/dom/BookmarkManager.js +456 -0
- data/apps/core/components/public/js/tinymce/classes/dom/ControlSelection.js +634 -0
- data/apps/core/components/public/js/tinymce/classes/dom/DOMUtils.js +1853 -0
- data/apps/core/components/public/js/tinymce/classes/dom/Dimensions.js +64 -0
- data/apps/core/components/public/js/tinymce/classes/dom/DomQuery.js +1578 -0
- data/apps/core/components/public/js/tinymce/classes/dom/ElementUtils.js +118 -0
- data/apps/core/components/public/js/tinymce/classes/dom/EventUtils.js +583 -0
- data/apps/core/components/public/js/tinymce/classes/dom/NodePath.js +50 -0
- data/apps/core/components/public/js/tinymce/classes/dom/NodeType.js +110 -0
- data/apps/core/components/public/js/tinymce/classes/dom/Range.js +785 -0
- data/apps/core/components/public/js/tinymce/classes/dom/RangeUtils.js +628 -0
- data/apps/core/components/public/js/tinymce/classes/dom/ScriptLoader.js +254 -0
- data/apps/core/components/public/js/tinymce/classes/dom/Selection.js +1008 -0
- data/apps/core/components/public/js/tinymce/classes/dom/Serializer.js +506 -0
- data/apps/core/components/public/js/tinymce/classes/dom/Sizzle.jQuery.js +23 -0
- data/apps/core/components/public/js/tinymce/classes/dom/Sizzle.js +2039 -0
- data/apps/core/components/public/js/tinymce/classes/dom/StyleSheetLoader.js +190 -0
- data/apps/core/components/public/js/tinymce/classes/dom/TreeWalker.js +127 -0
- data/apps/core/components/public/js/tinymce/classes/dom/TridentSelection.js +508 -0
- data/apps/core/components/public/js/tinymce/classes/file/BlobCache.js +72 -0
- data/apps/core/components/public/js/tinymce/classes/file/Conversions.js +106 -0
- data/apps/core/components/public/js/tinymce/classes/file/ImageScanner.js +145 -0
- data/apps/core/components/public/js/tinymce/classes/file/Uploader.js +193 -0
- data/apps/core/components/public/js/tinymce/classes/fmt/Hooks.js +66 -0
- data/apps/core/components/public/js/tinymce/classes/fmt/Preview.js +151 -0
- data/apps/core/components/public/js/tinymce/classes/geom/ClientRect.js +136 -0
- data/apps/core/components/public/js/tinymce/classes/geom/Rect.js +214 -0
- data/apps/core/components/public/js/tinymce/classes/html/DomParser.js +822 -0
- data/apps/core/components/public/js/tinymce/classes/html/Entities.js +268 -0
- data/apps/core/components/public/js/tinymce/classes/html/Node.js +496 -0
- data/apps/core/components/public/js/tinymce/classes/html/SaxParser.js +474 -0
- data/apps/core/components/public/js/tinymce/classes/html/Schema.js +1004 -0
- data/apps/core/components/public/js/tinymce/classes/html/Serializer.js +158 -0
- data/apps/core/components/public/js/tinymce/classes/html/Styles.js +363 -0
- data/apps/core/components/public/js/tinymce/classes/html/Writer.js +199 -0
- data/apps/core/components/public/js/tinymce/classes/jquery.tinymce.js +377 -0
- data/apps/core/components/public/js/tinymce/classes/text/ExtendingChar.js +53 -0
- data/apps/core/components/public/js/tinymce/classes/text/Zwsp.js +36 -0
- data/apps/core/components/public/js/tinymce/classes/ui/AbsoluteLayout.js +63 -0
- data/apps/core/components/public/js/tinymce/classes/ui/BoxUtils.js +98 -0
- data/apps/core/components/public/js/tinymce/classes/ui/Button.js +199 -0
- data/apps/core/components/public/js/tinymce/classes/ui/ButtonGroup.js +62 -0
- data/apps/core/components/public/js/tinymce/classes/ui/Checkbox.js +162 -0
- data/apps/core/components/public/js/tinymce/classes/ui/ClassList.js +149 -0
- data/apps/core/components/public/js/tinymce/classes/ui/Collection.js +438 -0
- data/apps/core/components/public/js/tinymce/classes/ui/ColorBox.js +72 -0
- data/apps/core/components/public/js/tinymce/classes/ui/ColorButton.js +124 -0
- data/apps/core/components/public/js/tinymce/classes/ui/ColorPicker.js +206 -0
- data/apps/core/components/public/js/tinymce/classes/ui/ComboBox.js +306 -0
- data/apps/core/components/public/js/tinymce/classes/ui/Container.js +506 -0
- data/apps/core/components/public/js/tinymce/classes/ui/Control.js +1301 -0
- data/apps/core/components/public/js/tinymce/classes/ui/DomUtils.js +107 -0
- data/apps/core/components/public/js/tinymce/classes/ui/DragHelper.js +144 -0
- data/apps/core/components/public/js/tinymce/classes/ui/ElementPath.js +79 -0
- data/apps/core/components/public/js/tinymce/classes/ui/Factory.js +105 -0
- data/apps/core/components/public/js/tinymce/classes/ui/FieldSet.js +59 -0
- data/apps/core/components/public/js/tinymce/classes/ui/FilePicker.js +85 -0
- data/apps/core/components/public/js/tinymce/classes/ui/FitLayout.js +48 -0
- data/apps/core/components/public/js/tinymce/classes/ui/FlexLayout.js +246 -0
- data/apps/core/components/public/js/tinymce/classes/ui/FloatPanel.js +409 -0
- data/apps/core/components/public/js/tinymce/classes/ui/FlowLayout.js +46 -0
- data/apps/core/components/public/js/tinymce/classes/ui/Form.js +157 -0
- data/apps/core/components/public/js/tinymce/classes/ui/FormItem.js +56 -0
- data/apps/core/components/public/js/tinymce/classes/ui/FormatControls.js +535 -0
- data/apps/core/components/public/js/tinymce/classes/ui/GridLayout.js +233 -0
- data/apps/core/components/public/js/tinymce/classes/ui/Iframe.js +85 -0
- data/apps/core/components/public/js/tinymce/classes/ui/InfoBox.js +93 -0
- data/apps/core/components/public/js/tinymce/classes/ui/KeyboardNavigation.js +406 -0
- data/apps/core/components/public/js/tinymce/classes/ui/Label.js +144 -0
- data/apps/core/components/public/js/tinymce/classes/ui/Layout.js +120 -0
- data/apps/core/components/public/js/tinymce/classes/ui/ListBox.js +152 -0
- data/apps/core/components/public/js/tinymce/classes/ui/Menu.js +195 -0
- data/apps/core/components/public/js/tinymce/classes/ui/MenuBar.js +33 -0
- data/apps/core/components/public/js/tinymce/classes/ui/MenuButton.js +268 -0
- data/apps/core/components/public/js/tinymce/classes/ui/MenuItem.js +336 -0
- data/apps/core/components/public/js/tinymce/classes/ui/MessageBox.js +202 -0
- data/apps/core/components/public/js/tinymce/classes/ui/Movable.js +200 -0
- data/apps/core/components/public/js/tinymce/classes/ui/Notification.js +154 -0
- data/apps/core/components/public/js/tinymce/classes/ui/Panel.js +67 -0
- data/apps/core/components/public/js/tinymce/classes/ui/PanelButton.js +114 -0
- data/apps/core/components/public/js/tinymce/classes/ui/Path.js +127 -0
- data/apps/core/components/public/js/tinymce/classes/ui/Progress.js +81 -0
- data/apps/core/components/public/js/tinymce/classes/ui/Radio.js +29 -0
- data/apps/core/components/public/js/tinymce/classes/ui/ReflowQueue.js +79 -0
- data/apps/core/components/public/js/tinymce/classes/ui/Resizable.js +68 -0
- data/apps/core/components/public/js/tinymce/classes/ui/ResizeHandle.js +86 -0
- data/apps/core/components/public/js/tinymce/classes/ui/Scrollable.js +141 -0
- data/apps/core/components/public/js/tinymce/classes/ui/SelectBox.js +106 -0
- data/apps/core/components/public/js/tinymce/classes/ui/Selector.js +369 -0
- data/apps/core/components/public/js/tinymce/classes/ui/Slider.js +161 -0
- data/apps/core/components/public/js/tinymce/classes/ui/Spacer.js +39 -0
- data/apps/core/components/public/js/tinymce/classes/ui/SplitButton.js +146 -0
- data/apps/core/components/public/js/tinymce/classes/ui/StackLayout.js +34 -0
- data/apps/core/components/public/js/tinymce/classes/ui/TabPanel.js +178 -0
- data/apps/core/components/public/js/tinymce/classes/ui/TextBox.js +208 -0
- data/apps/core/components/public/js/tinymce/classes/ui/Throbber.js +88 -0
- data/apps/core/components/public/js/tinymce/classes/ui/Toolbar.js +56 -0
- data/apps/core/components/public/js/tinymce/classes/ui/Tooltip.js +73 -0
- data/apps/core/components/public/js/tinymce/classes/ui/Widget.js +151 -0
- data/apps/core/components/public/js/tinymce/classes/ui/Window.js +474 -0
- data/apps/core/components/public/js/tinymce/classes/util/Arr.js +153 -0
- data/apps/core/components/public/js/tinymce/classes/util/Class.js +167 -0
- data/apps/core/components/public/js/tinymce/classes/util/Color.js +235 -0
- data/apps/core/components/public/js/tinymce/classes/util/Delay.js +191 -0
- data/apps/core/components/public/js/tinymce/classes/util/EventDispatcher.js +294 -0
- data/apps/core/components/public/js/tinymce/classes/util/Fun.js +87 -0
- data/apps/core/components/public/js/tinymce/classes/util/I18n.js +116 -0
- data/apps/core/components/public/js/tinymce/classes/util/JSON.js +109 -0
- data/apps/core/components/public/js/tinymce/classes/util/JSONP.js +38 -0
- data/apps/core/components/public/js/tinymce/classes/util/JSONRequest.js +110 -0
- data/apps/core/components/public/js/tinymce/classes/util/LocalStorage.js +213 -0
- data/apps/core/components/public/js/tinymce/classes/util/Observable.js +129 -0
- data/apps/core/components/public/js/tinymce/classes/util/Promise.js +200 -0
- data/apps/core/components/public/js/tinymce/classes/util/Quirks.js +1701 -0
- data/apps/core/components/public/js/tinymce/classes/util/Tools.js +442 -0
- data/apps/core/components/public/js/tinymce/classes/util/URI.js +411 -0
- data/apps/core/components/public/js/tinymce/classes/util/VK.js +37 -0
- data/apps/core/components/public/js/tinymce/classes/util/XHR.js +110 -0
- data/apps/core/components/public/js/tinymce/jquery.tinymce.min.js +1 -0
- data/apps/core/components/public/js/tinymce/langs/it.js +219 -0
- data/apps/core/components/public/js/tinymce/langs/readme.md +3 -0
- data/apps/core/components/public/js/tinymce/license.txt +504 -0
- data/apps/core/components/public/js/tinymce/plugins/advlist/plugin.js +97 -0
- data/apps/core/components/public/js/tinymce/plugins/advlist/plugin.min.js +1 -0
- data/apps/core/components/public/js/tinymce/plugins/anchor/plugin.js +55 -0
- data/apps/core/components/public/js/tinymce/plugins/anchor/plugin.min.js +1 -0
- data/apps/core/components/public/js/tinymce/plugins/autolink/plugin.js +204 -0
- data/apps/core/components/public/js/tinymce/plugins/autolink/plugin.min.js +1 -0
- data/apps/core/components/public/js/tinymce/plugins/autoresize/plugin.js +162 -0
- data/apps/core/components/public/js/tinymce/plugins/autoresize/plugin.min.js +1 -0
- data/apps/core/components/public/js/tinymce/plugins/autosave/plugin.js +165 -0
- data/apps/core/components/public/js/tinymce/plugins/autosave/plugin.min.js +1 -0
- data/apps/core/components/public/js/tinymce/plugins/bbcode/plugin.js +123 -0
- data/apps/core/components/public/js/tinymce/plugins/bbcode/plugin.min.js +1 -0
- data/apps/core/components/public/js/tinymce/plugins/charmap/plugin.js +450 -0
- data/apps/core/components/public/js/tinymce/plugins/charmap/plugin.min.js +1 -0
- data/apps/core/components/public/js/tinymce/plugins/code/plugin.js +60 -0
- data/apps/core/components/public/js/tinymce/plugins/code/plugin.min.js +1 -0
- data/apps/core/components/public/js/tinymce/plugins/codesample/classes/Dialog.js +121 -0
- data/apps/core/components/public/js/tinymce/plugins/codesample/classes/Plugin.js +95 -0
- data/apps/core/components/public/js/tinymce/plugins/codesample/classes/Prism.js +937 -0
- data/apps/core/components/public/js/tinymce/plugins/codesample/classes/Utils.js +33 -0
- data/apps/core/components/public/js/tinymce/plugins/codesample/css/prism.css +138 -0
- data/apps/core/components/public/js/tinymce/plugins/codesample/plugin.dev.js +141 -0
- data/apps/core/components/public/js/tinymce/plugins/codesample/plugin.js +1299 -0
- data/apps/core/components/public/js/tinymce/plugins/codesample/plugin.min.js +1 -0
- data/apps/core/components/public/js/tinymce/plugins/colorpicker/plugin.js +112 -0
- data/apps/core/components/public/js/tinymce/plugins/colorpicker/plugin.min.js +1 -0
- data/apps/core/components/public/js/tinymce/plugins/compat3x/css/dialog.css +118 -0
- data/apps/core/components/public/js/tinymce/plugins/compat3x/img/buttons.png +0 -0
- data/apps/core/components/public/js/tinymce/plugins/compat3x/img/icons.gif +0 -0
- data/apps/core/components/public/js/tinymce/plugins/compat3x/img/items.gif +0 -0
- data/apps/core/components/public/js/tinymce/plugins/compat3x/img/menu_arrow.gif +0 -0
- data/apps/core/components/public/js/tinymce/plugins/compat3x/img/menu_check.gif +0 -0
- data/apps/core/components/public/js/tinymce/plugins/compat3x/img/progress.gif +0 -0
- data/apps/core/components/public/js/tinymce/plugins/compat3x/img/tabs.gif +0 -0
- data/apps/core/components/public/js/tinymce/plugins/compat3x/plugin.js +297 -0
- data/apps/core/components/public/js/tinymce/plugins/compat3x/plugin.min.js +1 -0
- data/apps/core/components/public/js/tinymce/plugins/compat3x/tiny_mce_popup.js +542 -0
- data/apps/core/components/public/js/tinymce/plugins/compat3x/utils/editable_selects.js +70 -0
- data/apps/core/components/public/js/tinymce/plugins/compat3x/utils/form_utils.js +210 -0
- data/apps/core/components/public/js/tinymce/plugins/compat3x/utils/mctabs.js +164 -0
- data/apps/core/components/public/js/tinymce/plugins/compat3x/utils/validate.js +252 -0
- data/apps/core/components/public/js/tinymce/plugins/contextmenu/plugin.js +88 -0
- data/apps/core/components/public/js/tinymce/plugins/contextmenu/plugin.min.js +1 -0
- data/apps/core/components/public/js/tinymce/plugins/directionality/plugin.js +64 -0
- data/apps/core/components/public/js/tinymce/plugins/directionality/plugin.min.js +1 -0
- data/apps/core/components/public/js/tinymce/plugins/emoticons/img/smiley-cool.gif +0 -0
- data/apps/core/components/public/js/tinymce/plugins/emoticons/img/smiley-cry.gif +0 -0
- data/apps/core/components/public/js/tinymce/plugins/emoticons/img/smiley-embarassed.gif +0 -0
- data/apps/core/components/public/js/tinymce/plugins/emoticons/img/smiley-foot-in-mouth.gif +0 -0
- data/apps/core/components/public/js/tinymce/plugins/emoticons/img/smiley-frown.gif +0 -0
- data/apps/core/components/public/js/tinymce/plugins/emoticons/img/smiley-innocent.gif +0 -0
- data/apps/core/components/public/js/tinymce/plugins/emoticons/img/smiley-kiss.gif +0 -0
- data/apps/core/components/public/js/tinymce/plugins/emoticons/img/smiley-laughing.gif +0 -0
- data/apps/core/components/public/js/tinymce/plugins/emoticons/img/smiley-money-mouth.gif +0 -0
- data/apps/core/components/public/js/tinymce/plugins/emoticons/img/smiley-sealed.gif +0 -0
- data/apps/core/components/public/js/tinymce/plugins/emoticons/img/smiley-smile.gif +0 -0
- data/apps/core/components/public/js/tinymce/plugins/emoticons/img/smiley-surprised.gif +0 -0
- data/apps/core/components/public/js/tinymce/plugins/emoticons/img/smiley-tongue-out.gif +0 -0
- data/apps/core/components/public/js/tinymce/plugins/emoticons/img/smiley-undecided.gif +0 -0
- data/apps/core/components/public/js/tinymce/plugins/emoticons/img/smiley-wink.gif +0 -0
- data/apps/core/components/public/js/tinymce/plugins/emoticons/img/smiley-yell.gif +0 -0
- data/apps/core/components/public/js/tinymce/plugins/emoticons/plugin.js +65 -0
- data/apps/core/components/public/js/tinymce/plugins/emoticons/plugin.min.js +1 -0
- data/apps/core/components/public/js/tinymce/plugins/example/dialog.html +8 -0
- data/apps/core/components/public/js/tinymce/plugins/example/plugin.js +68 -0
- data/apps/core/components/public/js/tinymce/plugins/example/plugin.min.js +1 -0
- data/apps/core/components/public/js/tinymce/plugins/example_dependency/plugin.js +22 -0
- data/apps/core/components/public/js/tinymce/plugins/example_dependency/plugin.min.js +1 -0
- data/apps/core/components/public/js/tinymce/plugins/fullpage/plugin.js +490 -0
- data/apps/core/components/public/js/tinymce/plugins/fullpage/plugin.min.js +1 -0
- data/apps/core/components/public/js/tinymce/plugins/fullscreen/plugin.js +154 -0
- data/apps/core/components/public/js/tinymce/plugins/fullscreen/plugin.min.js +1 -0
- data/apps/core/components/public/js/tinymce/plugins/hr/plugin.js +30 -0
- data/apps/core/components/public/js/tinymce/plugins/hr/plugin.min.js +1 -0
- data/apps/core/components/public/js/tinymce/plugins/image/plugin.js +630 -0
- data/apps/core/components/public/js/tinymce/plugins/image/plugin.min.js +1 -0
- data/apps/core/components/public/js/tinymce/plugins/imagetools/config/bolt/atomic.js +6 -0
- data/apps/core/components/public/js/tinymce/plugins/imagetools/config/bolt/browser.js +6 -0
- data/apps/core/components/public/js/tinymce/plugins/imagetools/config/bolt/demo.js +8 -0
- data/apps/core/components/public/js/tinymce/plugins/imagetools/config/bolt/prod.js +6 -0
- data/apps/core/components/public/js/tinymce/plugins/imagetools/plugin.js +2668 -0
- data/apps/core/components/public/js/tinymce/plugins/imagetools/plugin.min.js +1 -0
- data/apps/core/components/public/js/tinymce/plugins/imagetools/src/demo/html/demo.html +16 -0
- data/apps/core/components/public/js/tinymce/plugins/imagetools/src/demo/js/Demo.js +92 -0
- data/apps/core/components/public/js/tinymce/plugins/imagetools/src/main/js/CropRect.js +214 -0
- data/apps/core/components/public/js/tinymce/plugins/imagetools/src/main/js/Dialog.js +485 -0
- data/apps/core/components/public/js/tinymce/plugins/imagetools/src/main/js/ImagePanel.js +218 -0
- data/apps/core/components/public/js/tinymce/plugins/imagetools/src/main/js/Plugin.js +411 -0
- data/apps/core/components/public/js/tinymce/plugins/imagetools/src/main/js/UndoStack.js +57 -0
- data/apps/core/components/public/js/tinymce/plugins/importcss/plugin.js +227 -0
- data/apps/core/components/public/js/tinymce/plugins/importcss/plugin.min.js +1 -0
- data/apps/core/components/public/js/tinymce/plugins/insertdatetime/plugin.js +121 -0
- data/apps/core/components/public/js/tinymce/plugins/insertdatetime/plugin.min.js +1 -0
- data/apps/core/components/public/js/tinymce/plugins/layer/plugin.js +225 -0
- data/apps/core/components/public/js/tinymce/plugins/layer/plugin.min.js +1 -0
- data/apps/core/components/public/js/tinymce/plugins/legacyoutput/plugin.js +211 -0
- data/apps/core/components/public/js/tinymce/plugins/legacyoutput/plugin.min.js +1 -0
- data/apps/core/components/public/js/tinymce/plugins/link/plugin.js +403 -0
- data/apps/core/components/public/js/tinymce/plugins/link/plugin.min.js +1 -0
- data/apps/core/components/public/js/tinymce/plugins/lists/plugin.js +885 -0
- data/apps/core/components/public/js/tinymce/plugins/lists/plugin.min.js +1 -0
- data/apps/core/components/public/js/tinymce/plugins/media/moxieplayer.swf +0 -0
- data/apps/core/components/public/js/tinymce/plugins/media/plugin.js +878 -0
- data/apps/core/components/public/js/tinymce/plugins/media/plugin.min.js +1 -0
- data/apps/core/components/public/js/tinymce/plugins/nonbreaking/plugin.js +53 -0
- data/apps/core/components/public/js/tinymce/plugins/nonbreaking/plugin.min.js +1 -0
- data/apps/core/components/public/js/tinymce/plugins/noneditable/plugin.js +101 -0
- data/apps/core/components/public/js/tinymce/plugins/noneditable/plugin.min.js +1 -0
- data/apps/core/components/public/js/tinymce/plugins/pagebreak/plugin.js +88 -0
- data/apps/core/components/public/js/tinymce/plugins/pagebreak/plugin.min.js +1 -0
- data/apps/core/components/public/js/tinymce/plugins/paste/classes/Clipboard.js +672 -0
- data/apps/core/components/public/js/tinymce/plugins/paste/classes/Plugin.js +121 -0
- data/apps/core/components/public/js/tinymce/plugins/paste/classes/Quirks.js +159 -0
- data/apps/core/components/public/js/tinymce/plugins/paste/classes/Utils.js +140 -0
- data/apps/core/components/public/js/tinymce/plugins/paste/classes/WordFilter.js +500 -0
- data/apps/core/components/public/js/tinymce/plugins/paste/plugin.dev.js +142 -0
- data/apps/core/components/public/js/tinymce/plugins/paste/plugin.js +1708 -0
- data/apps/core/components/public/js/tinymce/plugins/paste/plugin.min.js +1 -0
- data/apps/core/components/public/js/tinymce/plugins/preview/plugin.js +88 -0
- data/apps/core/components/public/js/tinymce/plugins/preview/plugin.min.js +1 -0
- data/apps/core/components/public/js/tinymce/plugins/print/plugin.js +32 -0
- data/apps/core/components/public/js/tinymce/plugins/print/plugin.min.js +1 -0
- data/apps/core/components/public/js/tinymce/plugins/save/plugin.js +98 -0
- data/apps/core/components/public/js/tinymce/plugins/save/plugin.min.js +1 -0
- data/apps/core/components/public/js/tinymce/plugins/searchreplace/plugin.js +609 -0
- data/apps/core/components/public/js/tinymce/plugins/searchreplace/plugin.min.js +1 -0
- data/apps/core/components/public/js/tinymce/plugins/spellchecker/classes/DomTextMatcher.js +480 -0
- data/apps/core/components/public/js/tinymce/plugins/spellchecker/classes/Plugin.js +439 -0
- data/apps/core/components/public/js/tinymce/plugins/spellchecker/plugin.dev.js +139 -0
- data/apps/core/components/public/js/tinymce/plugins/spellchecker/plugin.js +1026 -0
- data/apps/core/components/public/js/tinymce/plugins/spellchecker/plugin.min.js +1 -0
- data/apps/core/components/public/js/tinymce/plugins/tabfocus/plugin.js +120 -0
- data/apps/core/components/public/js/tinymce/plugins/tabfocus/plugin.min.js +1 -0
- data/apps/core/components/public/js/tinymce/plugins/table/classes/CellSelection.js +202 -0
- data/apps/core/components/public/js/tinymce/plugins/table/classes/Dialogs.js +824 -0
- data/apps/core/components/public/js/tinymce/plugins/table/classes/Plugin.js +599 -0
- data/apps/core/components/public/js/tinymce/plugins/table/classes/Quirks.js +400 -0
- data/apps/core/components/public/js/tinymce/plugins/table/classes/ResizeBars.js +984 -0
- data/apps/core/components/public/js/tinymce/plugins/table/classes/TableGrid.js +941 -0
- data/apps/core/components/public/js/tinymce/plugins/table/classes/Utils.js +36 -0
- data/apps/core/components/public/js/tinymce/plugins/table/plugin.dev.js +142 -0
- data/apps/core/components/public/js/tinymce/plugins/table/plugin.js +4106 -0
- data/apps/core/components/public/js/tinymce/plugins/table/plugin.min.js +2 -0
- data/apps/core/components/public/js/tinymce/plugins/template/plugin.js +270 -0
- data/apps/core/components/public/js/tinymce/plugins/template/plugin.min.js +1 -0
- data/apps/core/components/public/js/tinymce/plugins/textcolor/plugin.js +282 -0
- data/apps/core/components/public/js/tinymce/plugins/textcolor/plugin.min.js +1 -0
- data/apps/core/components/public/js/tinymce/plugins/textpattern/plugin.js +268 -0
- data/apps/core/components/public/js/tinymce/plugins/textpattern/plugin.min.js +1 -0
- data/apps/core/components/public/js/tinymce/plugins/visualblocks/css/visualblocks.css +135 -0
- data/apps/core/components/public/js/tinymce/plugins/visualblocks/img/address.gif +0 -0
- data/apps/core/components/public/js/tinymce/plugins/visualblocks/img/article.gif +0 -0
- data/apps/core/components/public/js/tinymce/plugins/visualblocks/img/aside.gif +0 -0
- data/apps/core/components/public/js/tinymce/plugins/visualblocks/img/blockquote.gif +0 -0
- data/apps/core/components/public/js/tinymce/plugins/visualblocks/img/div.gif +0 -0
- data/apps/core/components/public/js/tinymce/plugins/visualblocks/img/dl.gif +0 -0
- data/apps/core/components/public/js/tinymce/plugins/visualblocks/img/figure.gif +0 -0
- data/apps/core/components/public/js/tinymce/plugins/visualblocks/img/h1.gif +0 -0
- data/apps/core/components/public/js/tinymce/plugins/visualblocks/img/h2.gif +0 -0
- data/apps/core/components/public/js/tinymce/plugins/visualblocks/img/h3.gif +0 -0
- data/apps/core/components/public/js/tinymce/plugins/visualblocks/img/h4.gif +0 -0
- data/apps/core/components/public/js/tinymce/plugins/visualblocks/img/h5.gif +0 -0
- data/apps/core/components/public/js/tinymce/plugins/visualblocks/img/h6.gif +0 -0
- data/apps/core/components/public/js/tinymce/plugins/visualblocks/img/hgroup.gif +0 -0
- data/apps/core/components/public/js/tinymce/plugins/visualblocks/img/ol.gif +0 -0
- data/apps/core/components/public/js/tinymce/plugins/visualblocks/img/p.gif +0 -0
- data/apps/core/components/public/js/tinymce/plugins/visualblocks/img/pre.gif +0 -0
- data/apps/core/components/public/js/tinymce/plugins/visualblocks/img/section.gif +0 -0
- data/apps/core/components/public/js/tinymce/plugins/visualblocks/img/ul.gif +0 -0
- data/apps/core/components/public/js/tinymce/plugins/visualblocks/plugin.js +86 -0
- data/apps/core/components/public/js/tinymce/plugins/visualblocks/plugin.min.js +1 -0
- data/apps/core/components/public/js/tinymce/plugins/visualchars/plugin.js +123 -0
- data/apps/core/components/public/js/tinymce/plugins/visualchars/plugin.min.js +1 -0
- data/apps/core/components/public/js/tinymce/plugins/wordcount/plugin.js +69 -0
- data/apps/core/components/public/js/tinymce/plugins/wordcount/plugin.min.js +1 -0
- data/apps/core/components/public/js/tinymce/skins/lightgray/AbsoluteLayout.less +17 -0
- data/apps/core/components/public/js/tinymce/skins/lightgray/Animations.less +10 -0
- data/apps/core/components/public/js/tinymce/skins/lightgray/Button.less +172 -0
- data/apps/core/components/public/js/tinymce/skins/lightgray/ButtonGroup.less +71 -0
- data/apps/core/components/public/js/tinymce/skins/lightgray/Checkbox.less +49 -0
- data/apps/core/components/public/js/tinymce/skins/lightgray/ColorBox.less +6 -0
- data/apps/core/components/public/js/tinymce/skins/lightgray/ColorButton.less +72 -0
- data/apps/core/components/public/js/tinymce/skins/lightgray/ColorPicker.less +80 -0
- data/apps/core/components/public/js/tinymce/skins/lightgray/ComboBox.less +39 -0
- data/apps/core/components/public/js/tinymce/skins/lightgray/Container.less +9 -0
- data/apps/core/components/public/js/tinymce/skins/lightgray/Content.Inline.less +4 -0
- data/apps/core/components/public/js/tinymce/skins/lightgray/Content.Objects.less +166 -0
- data/apps/core/components/public/js/tinymce/skins/lightgray/Content.less +27 -0
- data/apps/core/components/public/js/tinymce/skins/lightgray/CropRect.less +54 -0
- data/apps/core/components/public/js/tinymce/skins/lightgray/FieldSet.less +15 -0
- data/apps/core/components/public/js/tinymce/skins/lightgray/FitLayout.less +9 -0
- data/apps/core/components/public/js/tinymce/skins/lightgray/FloatPanel.less +69 -0
- data/apps/core/components/public/js/tinymce/skins/lightgray/FlowLayout.less +36 -0
- data/apps/core/components/public/js/tinymce/skins/lightgray/Icons.Ie7.less +136 -0
- data/apps/core/components/public/js/tinymce/skins/lightgray/Icons.less +180 -0
- data/apps/core/components/public/js/tinymce/skins/lightgray/Iframe.less +6 -0
- data/apps/core/components/public/js/tinymce/skins/lightgray/ImagePanel.less +20 -0
- data/apps/core/components/public/js/tinymce/skins/lightgray/InfoBox.less +71 -0
- data/apps/core/components/public/js/tinymce/skins/lightgray/Label.less +38 -0
- data/apps/core/components/public/js/tinymce/skins/lightgray/ListBox.less +26 -0
- data/apps/core/components/public/js/tinymce/skins/lightgray/Menu.less +34 -0
- data/apps/core/components/public/js/tinymce/skins/lightgray/MenuBar.less +32 -0
- data/apps/core/components/public/js/tinymce/skins/lightgray/MenuButton.less +34 -0
- data/apps/core/components/public/js/tinymce/skins/lightgray/MenuItem.less +142 -0
- data/apps/core/components/public/js/tinymce/skins/lightgray/Mixins.less +54 -0
- data/apps/core/components/public/js/tinymce/skins/lightgray/Notification.less +144 -0
- data/apps/core/components/public/js/tinymce/skins/lightgray/Panel.less +7 -0
- data/apps/core/components/public/js/tinymce/skins/lightgray/Path.less +45 -0
- data/apps/core/components/public/js/tinymce/skins/lightgray/Progress.less +34 -0
- data/apps/core/components/public/js/tinymce/skins/lightgray/Radio.less +1 -0
- data/apps/core/components/public/js/tinymce/skins/lightgray/Reset.less +32 -0
- data/apps/core/components/public/js/tinymce/skins/lightgray/ResizeHandle.less +18 -0
- data/apps/core/components/public/js/tinymce/skins/lightgray/Scrollable.less +44 -0
- data/apps/core/components/public/js/tinymce/skins/lightgray/SelectBox.less +6 -0
- data/apps/core/components/public/js/tinymce/skins/lightgray/Slider.less +29 -0
- data/apps/core/components/public/js/tinymce/skins/lightgray/Spacer.less +5 -0
- data/apps/core/components/public/js/tinymce/skins/lightgray/SplitButton.less +49 -0
- data/apps/core/components/public/js/tinymce/skins/lightgray/StackLayout.less +5 -0
- data/apps/core/components/public/js/tinymce/skins/lightgray/TabPanel.less +44 -0
- data/apps/core/components/public/js/tinymce/skins/lightgray/TextBox.less +41 -0
- data/apps/core/components/public/js/tinymce/skins/lightgray/Throbber.less +19 -0
- data/apps/core/components/public/js/tinymce/skins/lightgray/TinyMCE.less +159 -0
- data/apps/core/components/public/js/tinymce/skins/lightgray/ToolTip.less +129 -0
- data/apps/core/components/public/js/tinymce/skins/lightgray/Variables.less +214 -0
- data/apps/core/components/public/js/tinymce/skins/lightgray/Window.less +127 -0
- data/apps/core/components/public/js/tinymce/skins/lightgray/content.inline.min.css +1 -0
- data/apps/core/components/public/js/tinymce/skins/lightgray/content.min.css +1 -0
- data/apps/core/components/public/js/tinymce/skins/lightgray/fonts/readme.md +1 -0
- data/apps/core/components/public/js/tinymce/skins/lightgray/fonts/tinymce-small.eot +0 -0
- data/apps/core/components/public/js/tinymce/skins/lightgray/fonts/tinymce-small.json +1277 -0
- data/apps/core/components/public/js/tinymce/skins/lightgray/fonts/tinymce-small.svg +63 -0
- data/apps/core/components/public/js/tinymce/skins/lightgray/fonts/tinymce-small.ttf +0 -0
- data/apps/core/components/public/js/tinymce/skins/lightgray/fonts/tinymce-small.woff +0 -0
- data/apps/core/components/public/js/tinymce/skins/lightgray/fonts/tinymce.eot +0 -0
- data/apps/core/components/public/js/tinymce/skins/lightgray/fonts/tinymce.json +3381 -0
- data/apps/core/components/public/js/tinymce/skins/lightgray/fonts/tinymce.svg +129 -0
- data/apps/core/components/public/js/tinymce/skins/lightgray/fonts/tinymce.ttf +0 -0
- data/apps/core/components/public/js/tinymce/skins/lightgray/fonts/tinymce.woff +0 -0
- data/apps/core/components/public/js/tinymce/skins/lightgray/img/anchor.gif +0 -0
- data/apps/core/components/public/js/tinymce/skins/lightgray/img/loader.gif +0 -0
- data/apps/core/components/public/js/tinymce/skins/lightgray/img/object.gif +0 -0
- data/apps/core/components/public/js/tinymce/skins/lightgray/img/trans.gif +0 -0
- data/apps/core/components/public/js/tinymce/skins/lightgray/skin.dev.less +46 -0
- data/apps/core/components/public/js/tinymce/skins/lightgray/skin.ie7.dev.less +46 -0
- data/apps/core/components/public/js/tinymce/skins/lightgray/skin.ie7.less +2542 -0
- data/apps/core/components/public/js/tinymce/skins/lightgray/skin.ie7.min.css +1 -0
- data/apps/core/components/public/js/tinymce/skins/lightgray/skin.less +2586 -0
- data/apps/core/components/public/js/tinymce/skins/lightgray/skin.min.css +1 -0
- data/apps/core/components/public/js/tinymce/themes/modern/theme.js +878 -0
- data/apps/core/components/public/js/tinymce/themes/modern/theme.min.js +1 -0
- data/apps/core/components/public/js/tinymce/tinymce.dev.js +286 -0
- data/apps/core/components/public/js/tinymce/tinymce.js +45811 -0
- data/apps/core/components/public/js/tinymce/tinymce.min.js +13 -0
- data/apps/core/forms/widgets/form/form.rb +3 -1
- data/apps/core/forms/widgets/form/form.shtml +1 -0
- data/apps/core/forms/widgets/inputs/search_select/search_select.rb +1 -1
- data/apps/core/forms/widgets/inputs/select/select.rb +1 -1
- data/apps/core/forms/widgets/inputs/select/select.shtml +0 -1
- data/apps/messenger/backends/sms/skebby.rb +1 -1
- data/apps/messenger/controllers/mixins/messenger_helper.rb +23 -5
- data/lib/spiderfw/config/options/spider.rb +1 -1
- data/lib/spiderfw/controller/mixins/visual.rb +2 -0
- data/lib/spiderfw/http/adapters/rack.rb +10 -5
- data/lib/spiderfw/http/http.rb +4 -2
- data/lib/spiderfw/model/base_model.rb +4 -4
- data/lib/spiderfw/model/mappers/db_mapper.rb +4 -2
- data/lib/spiderfw/model/storage/db/adapters/mysql.rb +2 -1
- data/lib/spiderfw/model/storage/db/db_storage.rb +4 -0
- data/lib/spiderfw/spider.rb +6 -0
- data/lib/spiderfw/templates/layout.rb +1 -1
- data/lib/spiderfw/utils/monkey/object.rb +3 -0
- data/spider.gemspec +6 -2
- metadata +539 -42
- data/blueprints/.DS_Store +0 -0
@@ -0,0 +1,33 @@
|
|
1
|
+
/**
|
2
|
+
* MenuBar.js
|
3
|
+
*
|
4
|
+
* Released under LGPL License.
|
5
|
+
* Copyright (c) 1999-2015 Ephox Corp. All rights reserved
|
6
|
+
*
|
7
|
+
* License: http://www.tinymce.com/license
|
8
|
+
* Contributing: http://www.tinymce.com/contributing
|
9
|
+
*/
|
10
|
+
|
11
|
+
/**
|
12
|
+
* Creates a new menubar.
|
13
|
+
*
|
14
|
+
* @-x-less MenuBar.less
|
15
|
+
* @class tinymce.ui.MenuBar
|
16
|
+
* @extends tinymce.ui.Container
|
17
|
+
*/
|
18
|
+
define("tinymce/ui/MenuBar", [
|
19
|
+
"tinymce/ui/Toolbar"
|
20
|
+
], function(Toolbar) {
|
21
|
+
"use strict";
|
22
|
+
|
23
|
+
return Toolbar.extend({
|
24
|
+
Defaults: {
|
25
|
+
role: 'menubar',
|
26
|
+
containerCls: 'menubar',
|
27
|
+
ariaRoot: true,
|
28
|
+
defaults: {
|
29
|
+
type: 'menubutton'
|
30
|
+
}
|
31
|
+
}
|
32
|
+
});
|
33
|
+
});
|
@@ -0,0 +1,268 @@
|
|
1
|
+
/**
|
2
|
+
* MenuButton.js
|
3
|
+
*
|
4
|
+
* Released under LGPL License.
|
5
|
+
* Copyright (c) 1999-2015 Ephox Corp. All rights reserved
|
6
|
+
*
|
7
|
+
* License: http://www.tinymce.com/license
|
8
|
+
* Contributing: http://www.tinymce.com/contributing
|
9
|
+
*/
|
10
|
+
|
11
|
+
/**
|
12
|
+
* Creates a new menu button.
|
13
|
+
*
|
14
|
+
* @-x-less MenuButton.less
|
15
|
+
* @class tinymce.ui.MenuButton
|
16
|
+
* @extends tinymce.ui.Button
|
17
|
+
*/
|
18
|
+
define("tinymce/ui/MenuButton", [
|
19
|
+
"tinymce/ui/Button",
|
20
|
+
"tinymce/ui/Factory",
|
21
|
+
"tinymce/ui/MenuBar"
|
22
|
+
], function(Button, Factory, MenuBar) {
|
23
|
+
"use strict";
|
24
|
+
|
25
|
+
// TODO: Maybe add as some global function
|
26
|
+
function isChildOf(node, parent) {
|
27
|
+
while (node) {
|
28
|
+
if (parent === node) {
|
29
|
+
return true;
|
30
|
+
}
|
31
|
+
|
32
|
+
node = node.parentNode;
|
33
|
+
}
|
34
|
+
|
35
|
+
return false;
|
36
|
+
}
|
37
|
+
|
38
|
+
var MenuButton = Button.extend({
|
39
|
+
/**
|
40
|
+
* Constructs a instance with the specified settings.
|
41
|
+
*
|
42
|
+
* @constructor
|
43
|
+
* @param {Object} settings Name/value object with settings.
|
44
|
+
*/
|
45
|
+
init: function(settings) {
|
46
|
+
var self = this;
|
47
|
+
|
48
|
+
self._renderOpen = true;
|
49
|
+
|
50
|
+
self._super(settings);
|
51
|
+
settings = self.settings;
|
52
|
+
|
53
|
+
self.classes.add('menubtn');
|
54
|
+
|
55
|
+
if (settings.fixedWidth) {
|
56
|
+
self.classes.add('fixed-width');
|
57
|
+
}
|
58
|
+
|
59
|
+
self.aria('haspopup', true);
|
60
|
+
|
61
|
+
self.state.set('menu', settings.menu || self.render());
|
62
|
+
},
|
63
|
+
|
64
|
+
/**
|
65
|
+
* Shows the menu for the button.
|
66
|
+
*
|
67
|
+
* @method showMenu
|
68
|
+
*/
|
69
|
+
showMenu: function() {
|
70
|
+
var self = this, menu;
|
71
|
+
|
72
|
+
if (self.menu && self.menu.visible()) {
|
73
|
+
return self.hideMenu();
|
74
|
+
}
|
75
|
+
|
76
|
+
if (!self.menu) {
|
77
|
+
menu = self.state.get('menu') || [];
|
78
|
+
|
79
|
+
// Is menu array then auto constuct menu control
|
80
|
+
if (menu.length) {
|
81
|
+
menu = {
|
82
|
+
type: 'menu',
|
83
|
+
items: menu
|
84
|
+
};
|
85
|
+
} else {
|
86
|
+
menu.type = menu.type || 'menu';
|
87
|
+
}
|
88
|
+
|
89
|
+
if (!menu.renderTo) {
|
90
|
+
self.menu = Factory.create(menu).parent(self).renderTo();
|
91
|
+
} else {
|
92
|
+
self.menu = menu.parent(self).show().renderTo();
|
93
|
+
}
|
94
|
+
|
95
|
+
self.fire('createmenu');
|
96
|
+
self.menu.reflow();
|
97
|
+
self.menu.on('cancel', function(e) {
|
98
|
+
if (e.control.parent() === self.menu) {
|
99
|
+
e.stopPropagation();
|
100
|
+
self.focus();
|
101
|
+
self.hideMenu();
|
102
|
+
}
|
103
|
+
});
|
104
|
+
|
105
|
+
// Move focus to button when a menu item is selected/clicked
|
106
|
+
self.menu.on('select', function() {
|
107
|
+
self.focus();
|
108
|
+
});
|
109
|
+
|
110
|
+
self.menu.on('show hide', function(e) {
|
111
|
+
if (e.control == self.menu) {
|
112
|
+
self.activeMenu(e.type == 'show');
|
113
|
+
}
|
114
|
+
|
115
|
+
self.aria('expanded', e.type == 'show');
|
116
|
+
}).fire('show');
|
117
|
+
}
|
118
|
+
|
119
|
+
self.menu.show();
|
120
|
+
self.menu.layoutRect({w: self.layoutRect().w});
|
121
|
+
self.menu.moveRel(self.getEl(), self.isRtl() ? ['br-tr', 'tr-br'] : ['bl-tl', 'tl-bl']);
|
122
|
+
},
|
123
|
+
|
124
|
+
/**
|
125
|
+
* Hides the menu for the button.
|
126
|
+
*
|
127
|
+
* @method hideMenu
|
128
|
+
*/
|
129
|
+
hideMenu: function() {
|
130
|
+
var self = this;
|
131
|
+
|
132
|
+
if (self.menu) {
|
133
|
+
self.menu.items().each(function(item) {
|
134
|
+
if (item.hideMenu) {
|
135
|
+
item.hideMenu();
|
136
|
+
}
|
137
|
+
});
|
138
|
+
|
139
|
+
self.menu.hide();
|
140
|
+
}
|
141
|
+
},
|
142
|
+
|
143
|
+
/**
|
144
|
+
* Sets the active menu state.
|
145
|
+
*
|
146
|
+
* @private
|
147
|
+
*/
|
148
|
+
activeMenu: function(state) {
|
149
|
+
this.classes.toggle('active', state);
|
150
|
+
},
|
151
|
+
|
152
|
+
/**
|
153
|
+
* Renders the control as a HTML string.
|
154
|
+
*
|
155
|
+
* @method renderHtml
|
156
|
+
* @return {String} HTML representing the control.
|
157
|
+
*/
|
158
|
+
renderHtml: function() {
|
159
|
+
var self = this, id = self._id, prefix = self.classPrefix;
|
160
|
+
var icon = self.settings.icon, image, text = self.state.get('text'),
|
161
|
+
textHtml = '';
|
162
|
+
|
163
|
+
image = self.settings.image;
|
164
|
+
if (image) {
|
165
|
+
icon = 'none';
|
166
|
+
|
167
|
+
// Support for [high dpi, low dpi] image sources
|
168
|
+
if (typeof image != "string") {
|
169
|
+
image = window.getSelection ? image[0] : image[1];
|
170
|
+
}
|
171
|
+
|
172
|
+
image = ' style="background-image: url(\'' + image + '\')"';
|
173
|
+
} else {
|
174
|
+
image = '';
|
175
|
+
}
|
176
|
+
|
177
|
+
if (text) {
|
178
|
+
self.classes.add('btn-has-text');
|
179
|
+
textHtml = '<span class="' + prefix + 'txt">' + self.encode(text) + '</span>';
|
180
|
+
}
|
181
|
+
|
182
|
+
icon = self.settings.icon ? prefix + 'ico ' + prefix + 'i-' + icon : '';
|
183
|
+
|
184
|
+
self.aria('role', self.parent() instanceof MenuBar ? 'menuitem' : 'button');
|
185
|
+
|
186
|
+
return (
|
187
|
+
'<div id="' + id + '" class="' + self.classes + '" tabindex="-1" aria-labelledby="' + id + '">' +
|
188
|
+
'<button id="' + id + '-open" role="presentation" type="button" tabindex="-1">' +
|
189
|
+
(icon ? '<i class="' + icon + '"' + image + '></i>' : '') +
|
190
|
+
textHtml +
|
191
|
+
' <i class="' + prefix + 'caret"></i>' +
|
192
|
+
'</button>' +
|
193
|
+
'</div>'
|
194
|
+
);
|
195
|
+
},
|
196
|
+
|
197
|
+
/**
|
198
|
+
* Gets invoked after the control has been rendered.
|
199
|
+
*
|
200
|
+
* @method postRender
|
201
|
+
*/
|
202
|
+
postRender: function() {
|
203
|
+
var self = this;
|
204
|
+
|
205
|
+
self.on('click', function(e) {
|
206
|
+
if (e.control === self && isChildOf(e.target, self.getEl())) {
|
207
|
+
self.showMenu();
|
208
|
+
|
209
|
+
if (e.aria) {
|
210
|
+
self.menu.items()[0].focus();
|
211
|
+
}
|
212
|
+
}
|
213
|
+
});
|
214
|
+
|
215
|
+
self.on('mouseenter', function(e) {
|
216
|
+
var overCtrl = e.control, parent = self.parent(), hasVisibleSiblingMenu;
|
217
|
+
|
218
|
+
if (overCtrl && parent && overCtrl instanceof MenuButton && overCtrl.parent() == parent) {
|
219
|
+
parent.items().filter('MenuButton').each(function(ctrl) {
|
220
|
+
if (ctrl.hideMenu && ctrl != overCtrl) {
|
221
|
+
if (ctrl.menu && ctrl.menu.visible()) {
|
222
|
+
hasVisibleSiblingMenu = true;
|
223
|
+
}
|
224
|
+
|
225
|
+
ctrl.hideMenu();
|
226
|
+
}
|
227
|
+
});
|
228
|
+
|
229
|
+
if (hasVisibleSiblingMenu) {
|
230
|
+
overCtrl.focus(); // Fix for: #5887
|
231
|
+
overCtrl.showMenu();
|
232
|
+
}
|
233
|
+
}
|
234
|
+
});
|
235
|
+
|
236
|
+
return self._super();
|
237
|
+
},
|
238
|
+
|
239
|
+
bindStates: function() {
|
240
|
+
var self = this;
|
241
|
+
|
242
|
+
self.state.on('change:menu', function() {
|
243
|
+
if (self.menu) {
|
244
|
+
self.menu.remove();
|
245
|
+
}
|
246
|
+
|
247
|
+
self.menu = null;
|
248
|
+
});
|
249
|
+
|
250
|
+
return self._super();
|
251
|
+
},
|
252
|
+
|
253
|
+
/**
|
254
|
+
* Removes the control and it's menus.
|
255
|
+
*
|
256
|
+
* @method remove
|
257
|
+
*/
|
258
|
+
remove: function() {
|
259
|
+
this._super();
|
260
|
+
|
261
|
+
if (this.menu) {
|
262
|
+
this.menu.remove();
|
263
|
+
}
|
264
|
+
}
|
265
|
+
});
|
266
|
+
|
267
|
+
return MenuButton;
|
268
|
+
});
|
@@ -0,0 +1,336 @@
|
|
1
|
+
/**
|
2
|
+
* MenuItem.js
|
3
|
+
*
|
4
|
+
* Released under LGPL License.
|
5
|
+
* Copyright (c) 1999-2015 Ephox Corp. All rights reserved
|
6
|
+
*
|
7
|
+
* License: http://www.tinymce.com/license
|
8
|
+
* Contributing: http://www.tinymce.com/contributing
|
9
|
+
*/
|
10
|
+
|
11
|
+
/**
|
12
|
+
* Creates a new menu item.
|
13
|
+
*
|
14
|
+
* @-x-less MenuItem.less
|
15
|
+
* @class tinymce.ui.MenuItem
|
16
|
+
* @extends tinymce.ui.Control
|
17
|
+
*/
|
18
|
+
define("tinymce/ui/MenuItem", [
|
19
|
+
"tinymce/ui/Widget",
|
20
|
+
"tinymce/ui/Factory",
|
21
|
+
"tinymce/Env",
|
22
|
+
"tinymce/util/Delay"
|
23
|
+
], function(Widget, Factory, Env, Delay) {
|
24
|
+
"use strict";
|
25
|
+
|
26
|
+
return Widget.extend({
|
27
|
+
Defaults: {
|
28
|
+
border: 0,
|
29
|
+
role: 'menuitem'
|
30
|
+
},
|
31
|
+
|
32
|
+
/**
|
33
|
+
* Constructs a instance with the specified settings.
|
34
|
+
*
|
35
|
+
* @constructor
|
36
|
+
* @param {Object} settings Name/value object with settings.
|
37
|
+
* @setting {Boolean} selectable Selectable menu.
|
38
|
+
* @setting {Array} menu Submenu array with items.
|
39
|
+
* @setting {String} shortcut Shortcut to display for menu item. Example: Ctrl+X
|
40
|
+
*/
|
41
|
+
init: function(settings) {
|
42
|
+
var self = this, text;
|
43
|
+
|
44
|
+
self._super(settings);
|
45
|
+
|
46
|
+
settings = self.settings;
|
47
|
+
|
48
|
+
self.classes.add('menu-item');
|
49
|
+
|
50
|
+
if (settings.menu) {
|
51
|
+
self.classes.add('menu-item-expand');
|
52
|
+
}
|
53
|
+
|
54
|
+
if (settings.preview) {
|
55
|
+
self.classes.add('menu-item-preview');
|
56
|
+
}
|
57
|
+
|
58
|
+
text = self.state.get('text');
|
59
|
+
if (text === '-' || text === '|') {
|
60
|
+
self.classes.add('menu-item-sep');
|
61
|
+
self.aria('role', 'separator');
|
62
|
+
self.state.set('text', '-');
|
63
|
+
}
|
64
|
+
|
65
|
+
if (settings.selectable) {
|
66
|
+
self.aria('role', 'menuitemcheckbox');
|
67
|
+
self.classes.add('menu-item-checkbox');
|
68
|
+
settings.icon = 'selected';
|
69
|
+
}
|
70
|
+
|
71
|
+
if (!settings.preview && !settings.selectable) {
|
72
|
+
self.classes.add('menu-item-normal');
|
73
|
+
}
|
74
|
+
|
75
|
+
self.on('mousedown', function(e) {
|
76
|
+
e.preventDefault();
|
77
|
+
});
|
78
|
+
|
79
|
+
if (settings.menu && !settings.ariaHideMenu) {
|
80
|
+
self.aria('haspopup', true);
|
81
|
+
}
|
82
|
+
},
|
83
|
+
|
84
|
+
/**
|
85
|
+
* Returns true/false if the menuitem has sub menu.
|
86
|
+
*
|
87
|
+
* @method hasMenus
|
88
|
+
* @return {Boolean} True/false state if it has submenu.
|
89
|
+
*/
|
90
|
+
hasMenus: function() {
|
91
|
+
return !!this.settings.menu;
|
92
|
+
},
|
93
|
+
|
94
|
+
/**
|
95
|
+
* Shows the menu for the menu item.
|
96
|
+
*
|
97
|
+
* @method showMenu
|
98
|
+
*/
|
99
|
+
showMenu: function() {
|
100
|
+
var self = this, settings = self.settings, menu, parent = self.parent();
|
101
|
+
|
102
|
+
parent.items().each(function(ctrl) {
|
103
|
+
if (ctrl !== self) {
|
104
|
+
ctrl.hideMenu();
|
105
|
+
}
|
106
|
+
});
|
107
|
+
|
108
|
+
if (settings.menu) {
|
109
|
+
menu = self.menu;
|
110
|
+
|
111
|
+
if (!menu) {
|
112
|
+
menu = settings.menu;
|
113
|
+
|
114
|
+
// Is menu array then auto constuct menu control
|
115
|
+
if (menu.length) {
|
116
|
+
menu = {
|
117
|
+
type: 'menu',
|
118
|
+
items: menu
|
119
|
+
};
|
120
|
+
} else {
|
121
|
+
menu.type = menu.type || 'menu';
|
122
|
+
}
|
123
|
+
|
124
|
+
if (parent.settings.itemDefaults) {
|
125
|
+
menu.itemDefaults = parent.settings.itemDefaults;
|
126
|
+
}
|
127
|
+
|
128
|
+
menu = self.menu = Factory.create(menu).parent(self).renderTo();
|
129
|
+
menu.reflow();
|
130
|
+
menu.on('cancel', function(e) {
|
131
|
+
e.stopPropagation();
|
132
|
+
self.focus();
|
133
|
+
menu.hide();
|
134
|
+
});
|
135
|
+
menu.on('show hide', function(e) {
|
136
|
+
e.control.items().each(function(ctrl) {
|
137
|
+
ctrl.active(ctrl.settings.selected);
|
138
|
+
});
|
139
|
+
}).fire('show');
|
140
|
+
|
141
|
+
menu.on('hide', function(e) {
|
142
|
+
if (e.control === menu) {
|
143
|
+
self.classes.remove('selected');
|
144
|
+
}
|
145
|
+
});
|
146
|
+
|
147
|
+
menu.submenu = true;
|
148
|
+
} else {
|
149
|
+
menu.show();
|
150
|
+
}
|
151
|
+
|
152
|
+
menu._parentMenu = parent;
|
153
|
+
|
154
|
+
menu.classes.add('menu-sub');
|
155
|
+
|
156
|
+
var rel = menu.testMoveRel(
|
157
|
+
self.getEl(),
|
158
|
+
self.isRtl() ? ['tl-tr', 'bl-br', 'tr-tl', 'br-bl'] : ['tr-tl', 'br-bl', 'tl-tr', 'bl-br']
|
159
|
+
);
|
160
|
+
|
161
|
+
menu.moveRel(self.getEl(), rel);
|
162
|
+
menu.rel = rel;
|
163
|
+
|
164
|
+
rel = 'menu-sub-' + rel;
|
165
|
+
menu.classes.remove(menu._lastRel).add(rel);
|
166
|
+
menu._lastRel = rel;
|
167
|
+
|
168
|
+
self.classes.add('selected');
|
169
|
+
self.aria('expanded', true);
|
170
|
+
}
|
171
|
+
},
|
172
|
+
|
173
|
+
/**
|
174
|
+
* Hides the menu for the menu item.
|
175
|
+
*
|
176
|
+
* @method hideMenu
|
177
|
+
*/
|
178
|
+
hideMenu: function() {
|
179
|
+
var self = this;
|
180
|
+
|
181
|
+
if (self.menu) {
|
182
|
+
self.menu.items().each(function(item) {
|
183
|
+
if (item.hideMenu) {
|
184
|
+
item.hideMenu();
|
185
|
+
}
|
186
|
+
});
|
187
|
+
|
188
|
+
self.menu.hide();
|
189
|
+
self.aria('expanded', false);
|
190
|
+
}
|
191
|
+
|
192
|
+
return self;
|
193
|
+
},
|
194
|
+
|
195
|
+
/**
|
196
|
+
* Renders the control as a HTML string.
|
197
|
+
*
|
198
|
+
* @method renderHtml
|
199
|
+
* @return {String} HTML representing the control.
|
200
|
+
*/
|
201
|
+
renderHtml: function() {
|
202
|
+
var self = this, id = self._id, settings = self.settings, prefix = self.classPrefix, text = self.encode(self.state.get('text'));
|
203
|
+
var icon = self.settings.icon, image = '', shortcut = settings.shortcut;
|
204
|
+
|
205
|
+
// Converts shortcut format to Mac/PC variants
|
206
|
+
function convertShortcut(shortcut) {
|
207
|
+
var i, value, replace = {};
|
208
|
+
|
209
|
+
if (Env.mac) {
|
210
|
+
replace = {
|
211
|
+
alt: '⌥',
|
212
|
+
ctrl: '⌘',
|
213
|
+
shift: '⇧',
|
214
|
+
meta: '⌘'
|
215
|
+
};
|
216
|
+
} else {
|
217
|
+
replace = {
|
218
|
+
meta: 'Ctrl'
|
219
|
+
};
|
220
|
+
}
|
221
|
+
|
222
|
+
shortcut = shortcut.split('+');
|
223
|
+
|
224
|
+
for (i = 0; i < shortcut.length; i++) {
|
225
|
+
value = replace[shortcut[i].toLowerCase()];
|
226
|
+
|
227
|
+
if (value) {
|
228
|
+
shortcut[i] = value;
|
229
|
+
}
|
230
|
+
}
|
231
|
+
|
232
|
+
return shortcut.join('+');
|
233
|
+
}
|
234
|
+
|
235
|
+
if (icon) {
|
236
|
+
self.parent().classes.add('menu-has-icons');
|
237
|
+
}
|
238
|
+
|
239
|
+
if (settings.image) {
|
240
|
+
image = ' style="background-image: url(\'' + settings.image + '\')"';
|
241
|
+
}
|
242
|
+
|
243
|
+
if (shortcut) {
|
244
|
+
shortcut = convertShortcut(shortcut);
|
245
|
+
}
|
246
|
+
|
247
|
+
icon = prefix + 'ico ' + prefix + 'i-' + (self.settings.icon || 'none');
|
248
|
+
|
249
|
+
return (
|
250
|
+
'<div id="' + id + '" class="' + self.classes + '" tabindex="-1">' +
|
251
|
+
(text !== '-' ? '<i class="' + icon + '"' + image + '></i>\u00a0' : '') +
|
252
|
+
(text !== '-' ? '<span id="' + id + '-text" class="' + prefix + 'text">' + text + '</span>' : '') +
|
253
|
+
(shortcut ? '<div id="' + id + '-shortcut" class="' + prefix + 'menu-shortcut">' + shortcut + '</div>' : '') +
|
254
|
+
(settings.menu ? '<div class="' + prefix + 'caret"></div>' : '') +
|
255
|
+
'</div>'
|
256
|
+
);
|
257
|
+
},
|
258
|
+
|
259
|
+
/**
|
260
|
+
* Gets invoked after the control has been rendered.
|
261
|
+
*
|
262
|
+
* @method postRender
|
263
|
+
*/
|
264
|
+
postRender: function() {
|
265
|
+
var self = this, settings = self.settings;
|
266
|
+
|
267
|
+
var textStyle = settings.textStyle;
|
268
|
+
if (typeof textStyle == "function") {
|
269
|
+
textStyle = textStyle.call(this);
|
270
|
+
}
|
271
|
+
|
272
|
+
if (textStyle) {
|
273
|
+
var textElm = self.getEl('text');
|
274
|
+
if (textElm) {
|
275
|
+
textElm.setAttribute('style', textStyle);
|
276
|
+
}
|
277
|
+
}
|
278
|
+
|
279
|
+
self.on('mouseenter click', function(e) {
|
280
|
+
if (e.control === self) {
|
281
|
+
if (!settings.menu && e.type === 'click') {
|
282
|
+
self.fire('select');
|
283
|
+
|
284
|
+
// Edge will crash if you stress it see #2660
|
285
|
+
Delay.requestAnimationFrame(function() {
|
286
|
+
self.parent().hideAll();
|
287
|
+
});
|
288
|
+
} else {
|
289
|
+
self.showMenu();
|
290
|
+
|
291
|
+
if (e.aria) {
|
292
|
+
self.menu.focus(true);
|
293
|
+
}
|
294
|
+
}
|
295
|
+
}
|
296
|
+
});
|
297
|
+
|
298
|
+
self._super();
|
299
|
+
|
300
|
+
return self;
|
301
|
+
},
|
302
|
+
|
303
|
+
hover: function() {
|
304
|
+
var self = this;
|
305
|
+
|
306
|
+
self.parent().items().each(function(ctrl) {
|
307
|
+
ctrl.classes.remove('selected');
|
308
|
+
});
|
309
|
+
|
310
|
+
self.classes.toggle('selected', true);
|
311
|
+
|
312
|
+
return self;
|
313
|
+
},
|
314
|
+
|
315
|
+
active: function(state) {
|
316
|
+
if (typeof state != "undefined") {
|
317
|
+
this.aria('checked', state);
|
318
|
+
}
|
319
|
+
|
320
|
+
return this._super(state);
|
321
|
+
},
|
322
|
+
|
323
|
+
/**
|
324
|
+
* Removes the control and it's menus.
|
325
|
+
*
|
326
|
+
* @method remove
|
327
|
+
*/
|
328
|
+
remove: function() {
|
329
|
+
this._super();
|
330
|
+
|
331
|
+
if (this.menu) {
|
332
|
+
this.menu.remove();
|
333
|
+
}
|
334
|
+
}
|
335
|
+
});
|
336
|
+
});
|