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,62 @@
|
|
1
|
+
/**
|
2
|
+
* ButtonGroup.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
|
+
* This control enables you to put multiple buttons into a group. This is
|
13
|
+
* useful when you want to combine similar toolbar buttons into a group.
|
14
|
+
*
|
15
|
+
* @example
|
16
|
+
* // Create and render a buttongroup with two buttons to the body element
|
17
|
+
* tinymce.ui.Factory.create({
|
18
|
+
* type: 'buttongroup',
|
19
|
+
* items: [
|
20
|
+
* {text: 'Button A'},
|
21
|
+
* {text: 'Button B'}
|
22
|
+
* ]
|
23
|
+
* }).renderTo(document.body);
|
24
|
+
*
|
25
|
+
* @-x-less ButtonGroup.less
|
26
|
+
* @class tinymce.ui.ButtonGroup
|
27
|
+
* @extends tinymce.ui.Container
|
28
|
+
*/
|
29
|
+
define("tinymce/ui/ButtonGroup", [
|
30
|
+
"tinymce/ui/Container"
|
31
|
+
], function(Container) {
|
32
|
+
"use strict";
|
33
|
+
|
34
|
+
return Container.extend({
|
35
|
+
Defaults: {
|
36
|
+
defaultType: 'button',
|
37
|
+
role: 'group'
|
38
|
+
},
|
39
|
+
|
40
|
+
/**
|
41
|
+
* Renders the control as a HTML string.
|
42
|
+
*
|
43
|
+
* @method renderHtml
|
44
|
+
* @return {String} HTML representing the control.
|
45
|
+
*/
|
46
|
+
renderHtml: function() {
|
47
|
+
var self = this, layout = self._layout;
|
48
|
+
|
49
|
+
self.classes.add('btn-group');
|
50
|
+
self.preRender();
|
51
|
+
layout.preRender(self);
|
52
|
+
|
53
|
+
return (
|
54
|
+
'<div id="' + self._id + '" class="' + self.classes + '">' +
|
55
|
+
'<div id="' + self._id + '-body">' +
|
56
|
+
(self.settings.html || '') + layout.renderHtml(self) +
|
57
|
+
'</div>' +
|
58
|
+
'</div>'
|
59
|
+
);
|
60
|
+
}
|
61
|
+
});
|
62
|
+
});
|
@@ -0,0 +1,162 @@
|
|
1
|
+
/**
|
2
|
+
* Checkbox.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
|
+
* This control creates a custom checkbox.
|
13
|
+
*
|
14
|
+
* @example
|
15
|
+
* // Create and render a checkbox to the body element
|
16
|
+
* tinymce.ui.Factory.create({
|
17
|
+
* type: 'checkbox',
|
18
|
+
* checked: true,
|
19
|
+
* text: 'My checkbox'
|
20
|
+
* }).renderTo(document.body);
|
21
|
+
*
|
22
|
+
* @-x-less Checkbox.less
|
23
|
+
* @class tinymce.ui.Checkbox
|
24
|
+
* @extends tinymce.ui.Widget
|
25
|
+
*/
|
26
|
+
define("tinymce/ui/Checkbox", [
|
27
|
+
"tinymce/ui/Widget"
|
28
|
+
], function(Widget) {
|
29
|
+
"use strict";
|
30
|
+
|
31
|
+
return Widget.extend({
|
32
|
+
Defaults: {
|
33
|
+
classes: "checkbox",
|
34
|
+
role: "checkbox",
|
35
|
+
checked: false
|
36
|
+
},
|
37
|
+
|
38
|
+
/**
|
39
|
+
* Constructs a new Checkbox instance with the specified settings.
|
40
|
+
*
|
41
|
+
* @constructor
|
42
|
+
* @param {Object} settings Name/value object with settings.
|
43
|
+
* @setting {Boolean} checked True if the checkbox should be checked by default.
|
44
|
+
*/
|
45
|
+
init: function(settings) {
|
46
|
+
var self = this;
|
47
|
+
|
48
|
+
self._super(settings);
|
49
|
+
|
50
|
+
self.on('click mousedown', function(e) {
|
51
|
+
e.preventDefault();
|
52
|
+
});
|
53
|
+
|
54
|
+
self.on('click', function(e) {
|
55
|
+
e.preventDefault();
|
56
|
+
|
57
|
+
if (!self.disabled()) {
|
58
|
+
self.checked(!self.checked());
|
59
|
+
}
|
60
|
+
});
|
61
|
+
|
62
|
+
self.checked(self.settings.checked);
|
63
|
+
},
|
64
|
+
|
65
|
+
/**
|
66
|
+
* Getter/setter function for the checked state.
|
67
|
+
*
|
68
|
+
* @method checked
|
69
|
+
* @param {Boolean} [state] State to be set.
|
70
|
+
* @return {Boolean|tinymce.ui.Checkbox} True/false or checkbox if it's a set operation.
|
71
|
+
*/
|
72
|
+
checked: function(state) {
|
73
|
+
if (!arguments.length) {
|
74
|
+
return this.state.get('checked');
|
75
|
+
}
|
76
|
+
|
77
|
+
this.state.set('checked', state);
|
78
|
+
|
79
|
+
return this;
|
80
|
+
},
|
81
|
+
|
82
|
+
/**
|
83
|
+
* Getter/setter function for the value state.
|
84
|
+
*
|
85
|
+
* @method value
|
86
|
+
* @param {Boolean} [state] State to be set.
|
87
|
+
* @return {Boolean|tinymce.ui.Checkbox} True/false or checkbox if it's a set operation.
|
88
|
+
*/
|
89
|
+
value: function(state) {
|
90
|
+
if (!arguments.length) {
|
91
|
+
return this.checked();
|
92
|
+
}
|
93
|
+
|
94
|
+
return this.checked(state);
|
95
|
+
},
|
96
|
+
|
97
|
+
/**
|
98
|
+
* Renders the control as a HTML string.
|
99
|
+
*
|
100
|
+
* @method renderHtml
|
101
|
+
* @return {String} HTML representing the control.
|
102
|
+
*/
|
103
|
+
renderHtml: function() {
|
104
|
+
var self = this, id = self._id, prefix = self.classPrefix;
|
105
|
+
|
106
|
+
return (
|
107
|
+
'<div id="' + id + '" class="' + self.classes + '" unselectable="on" aria-labelledby="' + id + '-al" tabindex="-1">' +
|
108
|
+
'<i class="' + prefix + 'ico ' + prefix + 'i-checkbox"></i>' +
|
109
|
+
'<span id="' + id + '-al" class="' + prefix + 'label">' + self.encode(self.state.get('text')) + '</span>' +
|
110
|
+
'</div>'
|
111
|
+
);
|
112
|
+
},
|
113
|
+
|
114
|
+
bindStates: function() {
|
115
|
+
var self = this;
|
116
|
+
|
117
|
+
function checked(state) {
|
118
|
+
self.classes.toggle("checked", state);
|
119
|
+
self.aria('checked', state);
|
120
|
+
}
|
121
|
+
|
122
|
+
self.state.on('change:text', function(e) {
|
123
|
+
self.getEl('al').firstChild.data = self.translate(e.value);
|
124
|
+
});
|
125
|
+
|
126
|
+
self.state.on('change:checked change:value', function(e) {
|
127
|
+
self.fire('change');
|
128
|
+
checked(e.value);
|
129
|
+
});
|
130
|
+
|
131
|
+
self.state.on('change:icon', function(e) {
|
132
|
+
var icon = e.value, prefix = self.classPrefix;
|
133
|
+
|
134
|
+
if (typeof icon == 'undefined') {
|
135
|
+
return self.settings.icon;
|
136
|
+
}
|
137
|
+
|
138
|
+
self.settings.icon = icon;
|
139
|
+
icon = icon ? prefix + 'ico ' + prefix + 'i-' + self.settings.icon : '';
|
140
|
+
|
141
|
+
var btnElm = self.getEl().firstChild, iconElm = btnElm.getElementsByTagName('i')[0];
|
142
|
+
|
143
|
+
if (icon) {
|
144
|
+
if (!iconElm || iconElm != btnElm.firstChild) {
|
145
|
+
iconElm = document.createElement('i');
|
146
|
+
btnElm.insertBefore(iconElm, btnElm.firstChild);
|
147
|
+
}
|
148
|
+
|
149
|
+
iconElm.className = icon;
|
150
|
+
} else if (iconElm) {
|
151
|
+
btnElm.removeChild(iconElm);
|
152
|
+
}
|
153
|
+
});
|
154
|
+
|
155
|
+
if (self.state.get('checked')) {
|
156
|
+
checked(true);
|
157
|
+
}
|
158
|
+
|
159
|
+
return self._super();
|
160
|
+
}
|
161
|
+
});
|
162
|
+
});
|
@@ -0,0 +1,149 @@
|
|
1
|
+
/**
|
2
|
+
* ClassList.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
|
+
* Handles adding and removal of classes.
|
13
|
+
*
|
14
|
+
* @private
|
15
|
+
* @class tinymce.ui.ClassList
|
16
|
+
*/
|
17
|
+
define("tinymce/ui/ClassList", [
|
18
|
+
"tinymce/util/Tools"
|
19
|
+
], function(Tools) {
|
20
|
+
"use strict";
|
21
|
+
|
22
|
+
function noop() {
|
23
|
+
}
|
24
|
+
|
25
|
+
/**
|
26
|
+
* Constructs a new class list the specified onchange
|
27
|
+
* callback will be executed when the class list gets modifed.
|
28
|
+
*
|
29
|
+
* @constructor ClassList
|
30
|
+
* @param {function} onchange Onchange callback to be executed.
|
31
|
+
*/
|
32
|
+
function ClassList(onchange) {
|
33
|
+
this.cls = [];
|
34
|
+
this.cls._map = {};
|
35
|
+
this.onchange = onchange || noop;
|
36
|
+
this.prefix = '';
|
37
|
+
}
|
38
|
+
|
39
|
+
Tools.extend(ClassList.prototype, {
|
40
|
+
/**
|
41
|
+
* Adds a new class to the class list.
|
42
|
+
*
|
43
|
+
* @method add
|
44
|
+
* @param {String} cls Class to be added.
|
45
|
+
* @return {tinymce.ui.ClassList} Current class list instance.
|
46
|
+
*/
|
47
|
+
add: function(cls) {
|
48
|
+
if (cls && !this.contains(cls)) {
|
49
|
+
this.cls._map[cls] = true;
|
50
|
+
this.cls.push(cls);
|
51
|
+
this._change();
|
52
|
+
}
|
53
|
+
|
54
|
+
return this;
|
55
|
+
},
|
56
|
+
|
57
|
+
/**
|
58
|
+
* Removes the specified class from the class list.
|
59
|
+
*
|
60
|
+
* @method remove
|
61
|
+
* @param {String} cls Class to be removed.
|
62
|
+
* @return {tinymce.ui.ClassList} Current class list instance.
|
63
|
+
*/
|
64
|
+
remove: function(cls) {
|
65
|
+
if (this.contains(cls)) {
|
66
|
+
for (var i = 0; i < this.cls.length; i++) {
|
67
|
+
if (this.cls[i] === cls) {
|
68
|
+
break;
|
69
|
+
}
|
70
|
+
}
|
71
|
+
|
72
|
+
this.cls.splice(i, 1);
|
73
|
+
delete this.cls._map[cls];
|
74
|
+
this._change();
|
75
|
+
}
|
76
|
+
|
77
|
+
return this;
|
78
|
+
},
|
79
|
+
|
80
|
+
/**
|
81
|
+
* Toggles a class in the class list.
|
82
|
+
*
|
83
|
+
* @method toggle
|
84
|
+
* @param {String} cls Class to be added/removed.
|
85
|
+
* @param {Boolean} state Optional state if it should be added/removed.
|
86
|
+
* @return {tinymce.ui.ClassList} Current class list instance.
|
87
|
+
*/
|
88
|
+
toggle: function(cls, state) {
|
89
|
+
var curState = this.contains(cls);
|
90
|
+
|
91
|
+
if (curState !== state) {
|
92
|
+
if (curState) {
|
93
|
+
this.remove(cls);
|
94
|
+
} else {
|
95
|
+
this.add(cls);
|
96
|
+
}
|
97
|
+
|
98
|
+
this._change();
|
99
|
+
}
|
100
|
+
|
101
|
+
return this;
|
102
|
+
},
|
103
|
+
|
104
|
+
/**
|
105
|
+
* Returns true if the class list has the specified class.
|
106
|
+
*
|
107
|
+
* @method contains
|
108
|
+
* @param {String} cls Class to look for.
|
109
|
+
* @return {Boolean} true/false if the class exists or not.
|
110
|
+
*/
|
111
|
+
contains: function(cls) {
|
112
|
+
return !!this.cls._map[cls];
|
113
|
+
},
|
114
|
+
|
115
|
+
/**
|
116
|
+
* Returns a space separated list of classes.
|
117
|
+
*
|
118
|
+
* @method toString
|
119
|
+
* @return {String} Space separated list of classes.
|
120
|
+
*/
|
121
|
+
|
122
|
+
_change: function() {
|
123
|
+
delete this.clsValue;
|
124
|
+
this.onchange.call(this);
|
125
|
+
}
|
126
|
+
});
|
127
|
+
|
128
|
+
// IE 8 compatibility
|
129
|
+
ClassList.prototype.toString = function() {
|
130
|
+
var value;
|
131
|
+
|
132
|
+
if (this.clsValue) {
|
133
|
+
return this.clsValue;
|
134
|
+
}
|
135
|
+
|
136
|
+
value = '';
|
137
|
+
for (var i = 0; i < this.cls.length; i++) {
|
138
|
+
if (i > 0) {
|
139
|
+
value += ' ';
|
140
|
+
}
|
141
|
+
|
142
|
+
value += this.prefix + this.cls[i];
|
143
|
+
}
|
144
|
+
|
145
|
+
return value;
|
146
|
+
};
|
147
|
+
|
148
|
+
return ClassList;
|
149
|
+
});
|
@@ -0,0 +1,438 @@
|
|
1
|
+
/**
|
2
|
+
* Collection.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
|
+
* Control collection, this class contains control instances and it enables you to
|
13
|
+
* perform actions on all the contained items. This is very similar to how jQuery works.
|
14
|
+
*
|
15
|
+
* @example
|
16
|
+
* someCollection.show().disabled(true);
|
17
|
+
*
|
18
|
+
* @class tinymce.ui.Collection
|
19
|
+
*/
|
20
|
+
define("tinymce/ui/Collection", [
|
21
|
+
"tinymce/util/Tools",
|
22
|
+
"tinymce/ui/Selector",
|
23
|
+
"tinymce/util/Class"
|
24
|
+
], function(Tools, Selector, Class) {
|
25
|
+
"use strict";
|
26
|
+
|
27
|
+
var Collection, proto, push = Array.prototype.push, slice = Array.prototype.slice;
|
28
|
+
|
29
|
+
proto = {
|
30
|
+
/**
|
31
|
+
* Current number of contained control instances.
|
32
|
+
*
|
33
|
+
* @field length
|
34
|
+
* @type Number
|
35
|
+
*/
|
36
|
+
length: 0,
|
37
|
+
|
38
|
+
/**
|
39
|
+
* Constructor for the collection.
|
40
|
+
*
|
41
|
+
* @constructor
|
42
|
+
* @method init
|
43
|
+
* @param {Array} items Optional array with items to add.
|
44
|
+
*/
|
45
|
+
init: function(items) {
|
46
|
+
if (items) {
|
47
|
+
this.add(items);
|
48
|
+
}
|
49
|
+
},
|
50
|
+
|
51
|
+
/**
|
52
|
+
* Adds new items to the control collection.
|
53
|
+
*
|
54
|
+
* @method add
|
55
|
+
* @param {Array} items Array if items to add to collection.
|
56
|
+
* @return {tinymce.ui.Collection} Current collection instance.
|
57
|
+
*/
|
58
|
+
add: function(items) {
|
59
|
+
var self = this;
|
60
|
+
|
61
|
+
// Force single item into array
|
62
|
+
if (!Tools.isArray(items)) {
|
63
|
+
if (items instanceof Collection) {
|
64
|
+
self.add(items.toArray());
|
65
|
+
} else {
|
66
|
+
push.call(self, items);
|
67
|
+
}
|
68
|
+
} else {
|
69
|
+
push.apply(self, items);
|
70
|
+
}
|
71
|
+
|
72
|
+
return self;
|
73
|
+
},
|
74
|
+
|
75
|
+
/**
|
76
|
+
* Sets the contents of the collection. This will remove any existing items
|
77
|
+
* and replace them with the ones specified in the input array.
|
78
|
+
*
|
79
|
+
* @method set
|
80
|
+
* @param {Array} items Array with items to set into the Collection.
|
81
|
+
* @return {tinymce.ui.Collection} Collection instance.
|
82
|
+
*/
|
83
|
+
set: function(items) {
|
84
|
+
var self = this, len = self.length, i;
|
85
|
+
|
86
|
+
self.length = 0;
|
87
|
+
self.add(items);
|
88
|
+
|
89
|
+
// Remove old entries
|
90
|
+
for (i = self.length; i < len; i++) {
|
91
|
+
delete self[i];
|
92
|
+
}
|
93
|
+
|
94
|
+
return self;
|
95
|
+
},
|
96
|
+
|
97
|
+
/**
|
98
|
+
* Filters the collection item based on the specified selector expression or selector function.
|
99
|
+
*
|
100
|
+
* @method filter
|
101
|
+
* @param {String} selector Selector expression to filter items by.
|
102
|
+
* @return {tinymce.ui.Collection} Collection containing the filtered items.
|
103
|
+
*/
|
104
|
+
filter: function(selector) {
|
105
|
+
var self = this, i, l, matches = [], item, match;
|
106
|
+
|
107
|
+
// Compile string into selector expression
|
108
|
+
if (typeof selector === "string") {
|
109
|
+
selector = new Selector(selector);
|
110
|
+
|
111
|
+
match = function(item) {
|
112
|
+
return selector.match(item);
|
113
|
+
};
|
114
|
+
} else {
|
115
|
+
// Use selector as matching function
|
116
|
+
match = selector;
|
117
|
+
}
|
118
|
+
|
119
|
+
for (i = 0, l = self.length; i < l; i++) {
|
120
|
+
item = self[i];
|
121
|
+
|
122
|
+
if (match(item)) {
|
123
|
+
matches.push(item);
|
124
|
+
}
|
125
|
+
}
|
126
|
+
|
127
|
+
return new Collection(matches);
|
128
|
+
},
|
129
|
+
|
130
|
+
/**
|
131
|
+
* Slices the items within the collection.
|
132
|
+
*
|
133
|
+
* @method slice
|
134
|
+
* @param {Number} index Index to slice at.
|
135
|
+
* @param {Number} len Optional length to slice.
|
136
|
+
* @return {tinymce.ui.Collection} Current collection.
|
137
|
+
*/
|
138
|
+
slice: function() {
|
139
|
+
return new Collection(slice.apply(this, arguments));
|
140
|
+
},
|
141
|
+
|
142
|
+
/**
|
143
|
+
* Makes the current collection equal to the specified index.
|
144
|
+
*
|
145
|
+
* @method eq
|
146
|
+
* @param {Number} index Index of the item to set the collection to.
|
147
|
+
* @return {tinymce.ui.Collection} Current collection.
|
148
|
+
*/
|
149
|
+
eq: function(index) {
|
150
|
+
return index === -1 ? this.slice(index) : this.slice(index, +index + 1);
|
151
|
+
},
|
152
|
+
|
153
|
+
/**
|
154
|
+
* Executes the specified callback on each item in collection.
|
155
|
+
*
|
156
|
+
* @method each
|
157
|
+
* @param {function} callback Callback to execute for each item in collection.
|
158
|
+
* @return {tinymce.ui.Collection} Current collection instance.
|
159
|
+
*/
|
160
|
+
each: function(callback) {
|
161
|
+
Tools.each(this, callback);
|
162
|
+
|
163
|
+
return this;
|
164
|
+
},
|
165
|
+
|
166
|
+
/**
|
167
|
+
* Returns an JavaScript array object of the contents inside the collection.
|
168
|
+
*
|
169
|
+
* @method toArray
|
170
|
+
* @return {Array} Array with all items from collection.
|
171
|
+
*/
|
172
|
+
toArray: function() {
|
173
|
+
return Tools.toArray(this);
|
174
|
+
},
|
175
|
+
|
176
|
+
/**
|
177
|
+
* Finds the index of the specified control or return -1 if it isn't in the collection.
|
178
|
+
*
|
179
|
+
* @method indexOf
|
180
|
+
* @param {Control} ctrl Control instance to look for.
|
181
|
+
* @return {Number} Index of the specified control or -1.
|
182
|
+
*/
|
183
|
+
indexOf: function(ctrl) {
|
184
|
+
var self = this, i = self.length;
|
185
|
+
|
186
|
+
while (i--) {
|
187
|
+
if (self[i] === ctrl) {
|
188
|
+
break;
|
189
|
+
}
|
190
|
+
}
|
191
|
+
|
192
|
+
return i;
|
193
|
+
},
|
194
|
+
|
195
|
+
/**
|
196
|
+
* Returns a new collection of the contents in reverse order.
|
197
|
+
*
|
198
|
+
* @method reverse
|
199
|
+
* @return {tinymce.ui.Collection} Collection instance with reversed items.
|
200
|
+
*/
|
201
|
+
reverse: function() {
|
202
|
+
return new Collection(Tools.toArray(this).reverse());
|
203
|
+
},
|
204
|
+
|
205
|
+
/**
|
206
|
+
* Returns true/false if the class exists or not.
|
207
|
+
*
|
208
|
+
* @method hasClass
|
209
|
+
* @param {String} cls Class to check for.
|
210
|
+
* @return {Boolean} true/false state if the class exists or not.
|
211
|
+
*/
|
212
|
+
hasClass: function(cls) {
|
213
|
+
return this[0] ? this[0].classes.contains(cls) : false;
|
214
|
+
},
|
215
|
+
|
216
|
+
/**
|
217
|
+
* Sets/gets the specific property on the items in the collection. The same as executing control.<property>(<value>);
|
218
|
+
*
|
219
|
+
* @method prop
|
220
|
+
* @param {String} name Property name to get/set.
|
221
|
+
* @param {Object} value Optional object value to set.
|
222
|
+
* @return {tinymce.ui.Collection} Current collection instance or value of the first item on a get operation.
|
223
|
+
*/
|
224
|
+
prop: function(name, value) {
|
225
|
+
var self = this, undef, item;
|
226
|
+
|
227
|
+
if (value !== undef) {
|
228
|
+
self.each(function(item) {
|
229
|
+
if (item[name]) {
|
230
|
+
item[name](value);
|
231
|
+
}
|
232
|
+
});
|
233
|
+
|
234
|
+
return self;
|
235
|
+
}
|
236
|
+
|
237
|
+
item = self[0];
|
238
|
+
|
239
|
+
if (item && item[name]) {
|
240
|
+
return item[name]();
|
241
|
+
}
|
242
|
+
},
|
243
|
+
|
244
|
+
/**
|
245
|
+
* Executes the specific function name with optional arguments an all items in collection if it exists.
|
246
|
+
*
|
247
|
+
* @example collection.exec("myMethod", arg1, arg2, arg3);
|
248
|
+
* @method exec
|
249
|
+
* @param {String} name Name of the function to execute.
|
250
|
+
* @param {Object} ... Multiple arguments to pass to each function.
|
251
|
+
* @return {tinymce.ui.Collection} Current collection.
|
252
|
+
*/
|
253
|
+
exec: function(name) {
|
254
|
+
var self = this, args = Tools.toArray(arguments).slice(1);
|
255
|
+
|
256
|
+
self.each(function(item) {
|
257
|
+
if (item[name]) {
|
258
|
+
item[name].apply(item, args);
|
259
|
+
}
|
260
|
+
});
|
261
|
+
|
262
|
+
return self;
|
263
|
+
},
|
264
|
+
|
265
|
+
/**
|
266
|
+
* Remove all items from collection and DOM.
|
267
|
+
*
|
268
|
+
* @method remove
|
269
|
+
* @return {tinymce.ui.Collection} Current collection.
|
270
|
+
*/
|
271
|
+
remove: function() {
|
272
|
+
var i = this.length;
|
273
|
+
|
274
|
+
while (i--) {
|
275
|
+
this[i].remove();
|
276
|
+
}
|
277
|
+
|
278
|
+
return this;
|
279
|
+
},
|
280
|
+
|
281
|
+
/**
|
282
|
+
* Adds a class to all items in the collection.
|
283
|
+
*
|
284
|
+
* @method addClass
|
285
|
+
* @param {String} cls Class to add to each item.
|
286
|
+
* @return {tinymce.ui.Collection} Current collection instance.
|
287
|
+
*/
|
288
|
+
addClass: function(cls) {
|
289
|
+
return this.each(function(item) {
|
290
|
+
item.classes.add(cls);
|
291
|
+
});
|
292
|
+
},
|
293
|
+
|
294
|
+
/**
|
295
|
+
* Removes the specified class from all items in collection.
|
296
|
+
*
|
297
|
+
* @method removeClass
|
298
|
+
* @param {String} cls Class to remove from each item.
|
299
|
+
* @return {tinymce.ui.Collection} Current collection instance.
|
300
|
+
*/
|
301
|
+
removeClass: function(cls) {
|
302
|
+
return this.each(function(item) {
|
303
|
+
item.classes.remove(cls);
|
304
|
+
});
|
305
|
+
}
|
306
|
+
|
307
|
+
/**
|
308
|
+
* Fires the specified event by name and arguments on the control. This will execute all
|
309
|
+
* bound event handlers.
|
310
|
+
*
|
311
|
+
* @method fire
|
312
|
+
* @param {String} name Name of the event to fire.
|
313
|
+
* @param {Object} args Optional arguments to pass to the event.
|
314
|
+
* @return {tinymce.ui.Collection} Current collection instance.
|
315
|
+
*/
|
316
|
+
// fire: function(event, args) {}, -- Generated by code below
|
317
|
+
|
318
|
+
/**
|
319
|
+
* Binds a callback to the specified event. This event can both be
|
320
|
+
* native browser events like "click" or custom ones like PostRender.
|
321
|
+
*
|
322
|
+
* The callback function will have two parameters the first one being the control that received the event
|
323
|
+
* the second one will be the event object either the browsers native event object or a custom JS object.
|
324
|
+
*
|
325
|
+
* @method on
|
326
|
+
* @param {String} name Name of the event to bind. For example "click".
|
327
|
+
* @param {String/function} callback Callback function to execute ones the event occurs.
|
328
|
+
* @return {tinymce.ui.Collection} Current collection instance.
|
329
|
+
*/
|
330
|
+
// on: function(name, callback) {}, -- Generated by code below
|
331
|
+
|
332
|
+
/**
|
333
|
+
* Unbinds the specified event and optionally a specific callback. If you omit the name
|
334
|
+
* parameter all event handlers will be removed. If you omit the callback all event handles
|
335
|
+
* by the specified name will be removed.
|
336
|
+
*
|
337
|
+
* @method off
|
338
|
+
* @param {String} name Optional name for the event to unbind.
|
339
|
+
* @param {function} callback Optional callback function to unbind.
|
340
|
+
* @return {tinymce.ui.Collection} Current collection instance.
|
341
|
+
*/
|
342
|
+
// off: function(name, callback) {}, -- Generated by code below
|
343
|
+
|
344
|
+
/**
|
345
|
+
* Shows the items in the current collection.
|
346
|
+
*
|
347
|
+
* @method show
|
348
|
+
* @return {tinymce.ui.Collection} Current collection instance.
|
349
|
+
*/
|
350
|
+
// show: function() {}, -- Generated by code below
|
351
|
+
|
352
|
+
/**
|
353
|
+
* Hides the items in the current collection.
|
354
|
+
*
|
355
|
+
* @method hide
|
356
|
+
* @return {tinymce.ui.Collection} Current collection instance.
|
357
|
+
*/
|
358
|
+
// hide: function() {}, -- Generated by code below
|
359
|
+
|
360
|
+
/**
|
361
|
+
* Sets/gets the text contents of the items in the current collection.
|
362
|
+
*
|
363
|
+
* @method text
|
364
|
+
* @return {tinymce.ui.Collection} Current collection instance or text value of the first item on a get operation.
|
365
|
+
*/
|
366
|
+
// text: function(value) {}, -- Generated by code below
|
367
|
+
|
368
|
+
/**
|
369
|
+
* Sets/gets the name contents of the items in the current collection.
|
370
|
+
*
|
371
|
+
* @method name
|
372
|
+
* @return {tinymce.ui.Collection} Current collection instance or name value of the first item on a get operation.
|
373
|
+
*/
|
374
|
+
// name: function(value) {}, -- Generated by code below
|
375
|
+
|
376
|
+
/**
|
377
|
+
* Sets/gets the disabled state on the items in the current collection.
|
378
|
+
*
|
379
|
+
* @method disabled
|
380
|
+
* @return {tinymce.ui.Collection} Current collection instance or disabled state of the first item on a get operation.
|
381
|
+
*/
|
382
|
+
// disabled: function(state) {}, -- Generated by code below
|
383
|
+
|
384
|
+
/**
|
385
|
+
* Sets/gets the active state on the items in the current collection.
|
386
|
+
*
|
387
|
+
* @method active
|
388
|
+
* @return {tinymce.ui.Collection} Current collection instance or active state of the first item on a get operation.
|
389
|
+
*/
|
390
|
+
// active: function(state) {}, -- Generated by code below
|
391
|
+
|
392
|
+
/**
|
393
|
+
* Sets/gets the selected state on the items in the current collection.
|
394
|
+
*
|
395
|
+
* @method selected
|
396
|
+
* @return {tinymce.ui.Collection} Current collection instance or selected state of the first item on a get operation.
|
397
|
+
*/
|
398
|
+
// selected: function(state) {}, -- Generated by code below
|
399
|
+
|
400
|
+
/**
|
401
|
+
* Sets/gets the selected state on the items in the current collection.
|
402
|
+
*
|
403
|
+
* @method visible
|
404
|
+
* @return {tinymce.ui.Collection} Current collection instance or visible state of the first item on a get operation.
|
405
|
+
*/
|
406
|
+
// visible: function(state) {}, -- Generated by code below
|
407
|
+
};
|
408
|
+
|
409
|
+
// Extend tinymce.ui.Collection prototype with some generated control specific methods
|
410
|
+
Tools.each('fire on off show hide append prepend before after reflow'.split(' '), function(name) {
|
411
|
+
proto[name] = function() {
|
412
|
+
var args = Tools.toArray(arguments);
|
413
|
+
|
414
|
+
this.each(function(ctrl) {
|
415
|
+
if (name in ctrl) {
|
416
|
+
ctrl[name].apply(ctrl, args);
|
417
|
+
}
|
418
|
+
});
|
419
|
+
|
420
|
+
return this;
|
421
|
+
};
|
422
|
+
});
|
423
|
+
|
424
|
+
// Extend tinymce.ui.Collection prototype with some property methods
|
425
|
+
Tools.each('text name disabled active selected checked visible parent value data'.split(' '), function(name) {
|
426
|
+
proto[name] = function(value) {
|
427
|
+
return this.prop(name, value);
|
428
|
+
};
|
429
|
+
});
|
430
|
+
|
431
|
+
// Create class based on the new prototype
|
432
|
+
Collection = Class.extend(proto);
|
433
|
+
|
434
|
+
// Stick Collection into Selector to prevent circual references
|
435
|
+
Selector.Collection = Collection;
|
436
|
+
|
437
|
+
return Collection;
|
438
|
+
});
|