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,278 @@
|
|
1
|
+
/**
|
2
|
+
* WindowManager.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 class handles the creation of native windows and dialogs. This class can be extended to provide for example inline dialogs.
|
13
|
+
*
|
14
|
+
* @class tinymce.WindowManager
|
15
|
+
* @example
|
16
|
+
* // Opens a new dialog with the file.htm file and the size 320x240
|
17
|
+
* // It also adds a custom parameter this can be retrieved by using tinyMCEPopup.getWindowArg inside the dialog.
|
18
|
+
* tinymce.activeEditor.windowManager.open({
|
19
|
+
* url: 'file.htm',
|
20
|
+
* width: 320,
|
21
|
+
* height: 240
|
22
|
+
* }, {
|
23
|
+
* custom_param: 1
|
24
|
+
* });
|
25
|
+
*
|
26
|
+
* // Displays an alert box using the active editors window manager instance
|
27
|
+
* tinymce.activeEditor.windowManager.alert('Hello world!');
|
28
|
+
*
|
29
|
+
* // Displays an confirm box and an alert message will be displayed depending on what you choose in the confirm
|
30
|
+
* tinymce.activeEditor.windowManager.confirm("Do you want to do something", function(s) {
|
31
|
+
* if (s)
|
32
|
+
* tinymce.activeEditor.windowManager.alert("Ok");
|
33
|
+
* else
|
34
|
+
* tinymce.activeEditor.windowManager.alert("Cancel");
|
35
|
+
* });
|
36
|
+
*/
|
37
|
+
define("tinymce/WindowManager", [
|
38
|
+
"tinymce/ui/Window",
|
39
|
+
"tinymce/ui/MessageBox"
|
40
|
+
], function(Window, MessageBox) {
|
41
|
+
return function(editor) {
|
42
|
+
var self = this, windows = [];
|
43
|
+
|
44
|
+
function getTopMostWindow() {
|
45
|
+
if (windows.length) {
|
46
|
+
return windows[windows.length - 1];
|
47
|
+
}
|
48
|
+
}
|
49
|
+
|
50
|
+
function fireOpenEvent(win) {
|
51
|
+
editor.fire('OpenWindow', {
|
52
|
+
win: win
|
53
|
+
});
|
54
|
+
}
|
55
|
+
|
56
|
+
function fireCloseEvent(win) {
|
57
|
+
editor.fire('CloseWindow', {
|
58
|
+
win: win
|
59
|
+
});
|
60
|
+
}
|
61
|
+
|
62
|
+
self.windows = windows;
|
63
|
+
|
64
|
+
editor.on('remove', function() {
|
65
|
+
var i = windows.length;
|
66
|
+
|
67
|
+
while (i--) {
|
68
|
+
windows[i].close();
|
69
|
+
}
|
70
|
+
});
|
71
|
+
|
72
|
+
/**
|
73
|
+
* Opens a new window.
|
74
|
+
*
|
75
|
+
* @method open
|
76
|
+
* @param {Object} args Optional name/value settings collection contains things like width/height/url etc.
|
77
|
+
* @param {Object} params Options like title, file, width, height etc.
|
78
|
+
* @option {String} title Window title.
|
79
|
+
* @option {String} file URL of the file to open in the window.
|
80
|
+
* @option {Number} width Width in pixels.
|
81
|
+
* @option {Number} height Height in pixels.
|
82
|
+
* @option {Boolean} autoScroll Specifies whether the popup window can have scrollbars if required (i.e. content
|
83
|
+
* larger than the popup size specified).
|
84
|
+
*/
|
85
|
+
self.open = function(args, params) {
|
86
|
+
var win;
|
87
|
+
|
88
|
+
editor.editorManager.setActive(editor);
|
89
|
+
|
90
|
+
args.title = args.title || ' ';
|
91
|
+
|
92
|
+
// Handle URL
|
93
|
+
args.url = args.url || args.file; // Legacy
|
94
|
+
if (args.url) {
|
95
|
+
args.width = parseInt(args.width || 320, 10);
|
96
|
+
args.height = parseInt(args.height || 240, 10);
|
97
|
+
}
|
98
|
+
|
99
|
+
// Handle body
|
100
|
+
if (args.body) {
|
101
|
+
args.items = {
|
102
|
+
defaults: args.defaults,
|
103
|
+
type: args.bodyType || 'form',
|
104
|
+
items: args.body,
|
105
|
+
data: args.data,
|
106
|
+
callbacks: args.commands
|
107
|
+
};
|
108
|
+
}
|
109
|
+
|
110
|
+
if (!args.url && !args.buttons) {
|
111
|
+
args.buttons = [
|
112
|
+
{text: 'Ok', subtype: 'primary', onclick: function() {
|
113
|
+
win.find('form')[0].submit();
|
114
|
+
}},
|
115
|
+
|
116
|
+
{text: 'Cancel', onclick: function() {
|
117
|
+
win.close();
|
118
|
+
}}
|
119
|
+
];
|
120
|
+
}
|
121
|
+
|
122
|
+
win = new Window(args);
|
123
|
+
windows.push(win);
|
124
|
+
|
125
|
+
win.on('close', function() {
|
126
|
+
var i = windows.length;
|
127
|
+
|
128
|
+
while (i--) {
|
129
|
+
if (windows[i] === win) {
|
130
|
+
windows.splice(i, 1);
|
131
|
+
}
|
132
|
+
}
|
133
|
+
|
134
|
+
if (!windows.length) {
|
135
|
+
editor.focus();
|
136
|
+
}
|
137
|
+
|
138
|
+
fireCloseEvent(win);
|
139
|
+
});
|
140
|
+
|
141
|
+
// Handle data
|
142
|
+
if (args.data) {
|
143
|
+
win.on('postRender', function() {
|
144
|
+
this.find('*').each(function(ctrl) {
|
145
|
+
var name = ctrl.name();
|
146
|
+
|
147
|
+
if (name in args.data) {
|
148
|
+
ctrl.value(args.data[name]);
|
149
|
+
}
|
150
|
+
});
|
151
|
+
});
|
152
|
+
}
|
153
|
+
|
154
|
+
// store args and parameters
|
155
|
+
win.features = args || {};
|
156
|
+
win.params = params || {};
|
157
|
+
|
158
|
+
// Takes a snapshot in the FocusManager of the selection before focus is lost to dialog
|
159
|
+
if (windows.length === 1) {
|
160
|
+
editor.nodeChanged();
|
161
|
+
}
|
162
|
+
|
163
|
+
win = win.renderTo().reflow();
|
164
|
+
|
165
|
+
fireOpenEvent(win);
|
166
|
+
|
167
|
+
return win;
|
168
|
+
};
|
169
|
+
|
170
|
+
/**
|
171
|
+
* Creates a alert dialog. Please don't use the blocking behavior of this
|
172
|
+
* native version use the callback method instead then it can be extended.
|
173
|
+
*
|
174
|
+
* @method alert
|
175
|
+
* @param {String} message Text to display in the new alert dialog.
|
176
|
+
* @param {function} callback Callback function to be executed after the user has selected ok.
|
177
|
+
* @param {Object} scope Optional scope to execute the callback in.
|
178
|
+
* @example
|
179
|
+
* // Displays an alert box using the active editors window manager instance
|
180
|
+
* tinymce.activeEditor.windowManager.alert('Hello world!');
|
181
|
+
*/
|
182
|
+
self.alert = function(message, callback, scope) {
|
183
|
+
var win;
|
184
|
+
|
185
|
+
win = MessageBox.alert(message, function() {
|
186
|
+
if (callback) {
|
187
|
+
callback.call(scope || this);
|
188
|
+
} else {
|
189
|
+
editor.focus();
|
190
|
+
}
|
191
|
+
});
|
192
|
+
|
193
|
+
win.on('close', function() {
|
194
|
+
fireCloseEvent(win);
|
195
|
+
});
|
196
|
+
|
197
|
+
fireOpenEvent(win);
|
198
|
+
};
|
199
|
+
|
200
|
+
/**
|
201
|
+
* Creates a confirm dialog. Please don't use the blocking behavior of this
|
202
|
+
* native version use the callback method instead then it can be extended.
|
203
|
+
*
|
204
|
+
* @method confirm
|
205
|
+
* @param {String} message Text to display in the new confirm dialog.
|
206
|
+
* @param {function} callback Callback function to be executed after the user has selected ok or cancel.
|
207
|
+
* @param {Object} scope Optional scope to execute the callback in.
|
208
|
+
* @example
|
209
|
+
* // Displays an confirm box and an alert message will be displayed depending on what you choose in the confirm
|
210
|
+
* tinymce.activeEditor.windowManager.confirm("Do you want to do something", function(s) {
|
211
|
+
* if (s)
|
212
|
+
* tinymce.activeEditor.windowManager.alert("Ok");
|
213
|
+
* else
|
214
|
+
* tinymce.activeEditor.windowManager.alert("Cancel");
|
215
|
+
* });
|
216
|
+
*/
|
217
|
+
self.confirm = function(message, callback, scope) {
|
218
|
+
var win;
|
219
|
+
|
220
|
+
win = MessageBox.confirm(message, function(state) {
|
221
|
+
callback.call(scope || this, state);
|
222
|
+
});
|
223
|
+
|
224
|
+
win.on('close', function() {
|
225
|
+
fireCloseEvent(win);
|
226
|
+
});
|
227
|
+
|
228
|
+
fireOpenEvent(win);
|
229
|
+
};
|
230
|
+
|
231
|
+
/**
|
232
|
+
* Closes the top most window.
|
233
|
+
*
|
234
|
+
* @method close
|
235
|
+
*/
|
236
|
+
self.close = function() {
|
237
|
+
if (getTopMostWindow()) {
|
238
|
+
getTopMostWindow().close();
|
239
|
+
}
|
240
|
+
};
|
241
|
+
|
242
|
+
/**
|
243
|
+
* Returns the params of the last window open call. This can be used in iframe based
|
244
|
+
* dialog to get params passed from the tinymce plugin.
|
245
|
+
*
|
246
|
+
* @example
|
247
|
+
* var dialogArguments = top.tinymce.activeEditor.windowManager.getParams();
|
248
|
+
*
|
249
|
+
* @method getParams
|
250
|
+
* @return {Object} Name/value object with parameters passed from windowManager.open call.
|
251
|
+
*/
|
252
|
+
self.getParams = function() {
|
253
|
+
return getTopMostWindow() ? getTopMostWindow().params : null;
|
254
|
+
};
|
255
|
+
|
256
|
+
/**
|
257
|
+
* Sets the params of the last opened window.
|
258
|
+
*
|
259
|
+
* @method setParams
|
260
|
+
* @param {Object} params Params object to set for the last opened window.
|
261
|
+
*/
|
262
|
+
self.setParams = function(params) {
|
263
|
+
if (getTopMostWindow()) {
|
264
|
+
getTopMostWindow().params = params;
|
265
|
+
}
|
266
|
+
};
|
267
|
+
|
268
|
+
/**
|
269
|
+
* Returns the currently opened window objects.
|
270
|
+
*
|
271
|
+
* @method getWindows
|
272
|
+
* @return {Array} Array of the currently opened windows.
|
273
|
+
*/
|
274
|
+
self.getWindows = function() {
|
275
|
+
return windows;
|
276
|
+
};
|
277
|
+
};
|
278
|
+
});
|
@@ -0,0 +1,263 @@
|
|
1
|
+
/**
|
2
|
+
* CaretBookmark.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 module creates or resolves xpath like string representation of a CaretPositions.
|
13
|
+
*
|
14
|
+
* The format is a / separated list of chunks with:
|
15
|
+
* <element|text()>[index|after|before]
|
16
|
+
*
|
17
|
+
* For example:
|
18
|
+
* p[0]/b[0]/text()[0],1 = <p><b>a|c</b></p>
|
19
|
+
* p[0]/img[0],before = <p>|<img></p>
|
20
|
+
* p[0]/img[0],after = <p><img>|</p>
|
21
|
+
*
|
22
|
+
* @private
|
23
|
+
* @static
|
24
|
+
* @class tinymce.caret.CaretBookmark
|
25
|
+
* @example
|
26
|
+
* var bookmark = CaretBookmark.create(rootElm, CaretPosition.before(rootElm.firstChild));
|
27
|
+
* var caretPosition = CaretBookmark.resolve(bookmark);
|
28
|
+
*/
|
29
|
+
define('tinymce/caret/CaretBookmark', [
|
30
|
+
'tinymce/dom/NodeType',
|
31
|
+
'tinymce/dom/DOMUtils',
|
32
|
+
'tinymce/util/Fun',
|
33
|
+
'tinymce/util/Arr',
|
34
|
+
'tinymce/caret/CaretPosition'
|
35
|
+
], function(NodeType, DomUtils, Fun, Arr, CaretPosition) {
|
36
|
+
var isText = NodeType.isText,
|
37
|
+
isBogus = NodeType.isBogus,
|
38
|
+
nodeIndex = DomUtils.nodeIndex;
|
39
|
+
|
40
|
+
function normalizedParent(node) {
|
41
|
+
var parentNode = node.parentNode;
|
42
|
+
|
43
|
+
if (isBogus(parentNode)) {
|
44
|
+
return normalizedParent(parentNode);
|
45
|
+
}
|
46
|
+
|
47
|
+
return parentNode;
|
48
|
+
}
|
49
|
+
|
50
|
+
function getChildNodes(node) {
|
51
|
+
if (!node) {
|
52
|
+
return [];
|
53
|
+
}
|
54
|
+
|
55
|
+
return Arr.reduce(node.childNodes, function(result, node) {
|
56
|
+
if (isBogus(node) && node.nodeName != 'BR') {
|
57
|
+
result = result.concat(getChildNodes(node));
|
58
|
+
} else {
|
59
|
+
result.push(node);
|
60
|
+
}
|
61
|
+
|
62
|
+
return result;
|
63
|
+
}, []);
|
64
|
+
}
|
65
|
+
|
66
|
+
function normalizedTextOffset(textNode, offset) {
|
67
|
+
while ((textNode = textNode.previousSibling)) {
|
68
|
+
if (!isText(textNode)) {
|
69
|
+
break;
|
70
|
+
}
|
71
|
+
|
72
|
+
offset += textNode.data.length;
|
73
|
+
}
|
74
|
+
|
75
|
+
return offset;
|
76
|
+
}
|
77
|
+
|
78
|
+
function equal(targetValue) {
|
79
|
+
return function(value) {
|
80
|
+
return targetValue === value;
|
81
|
+
};
|
82
|
+
}
|
83
|
+
|
84
|
+
function normalizedNodeIndex(node) {
|
85
|
+
var nodes, index, numTextFragments;
|
86
|
+
|
87
|
+
nodes = getChildNodes(normalizedParent(node));
|
88
|
+
index = Arr.findIndex(nodes, equal(node), node);
|
89
|
+
nodes = nodes.slice(0, index + 1);
|
90
|
+
numTextFragments = Arr.reduce(nodes, function(result, node, i) {
|
91
|
+
if (isText(node) && isText(nodes[i - 1])) {
|
92
|
+
result++;
|
93
|
+
}
|
94
|
+
|
95
|
+
return result;
|
96
|
+
}, 0);
|
97
|
+
|
98
|
+
nodes = Arr.filter(nodes, NodeType.matchNodeNames(node.nodeName));
|
99
|
+
index = Arr.findIndex(nodes, equal(node), node);
|
100
|
+
|
101
|
+
return index - numTextFragments;
|
102
|
+
}
|
103
|
+
|
104
|
+
function createPathItem(node) {
|
105
|
+
var name;
|
106
|
+
|
107
|
+
if (isText(node)) {
|
108
|
+
name = 'text()';
|
109
|
+
} else {
|
110
|
+
name = node.nodeName.toLowerCase();
|
111
|
+
}
|
112
|
+
|
113
|
+
return name + '[' + normalizedNodeIndex(node) + ']';
|
114
|
+
}
|
115
|
+
|
116
|
+
function parentsUntil(rootNode, node, predicate) {
|
117
|
+
var parents = [];
|
118
|
+
|
119
|
+
for (node = node.parentNode; node != rootNode; node = node.parentNode) {
|
120
|
+
if (predicate && predicate(node)) {
|
121
|
+
break;
|
122
|
+
}
|
123
|
+
|
124
|
+
parents.push(node);
|
125
|
+
}
|
126
|
+
|
127
|
+
return parents;
|
128
|
+
}
|
129
|
+
|
130
|
+
function create(rootNode, caretPosition) {
|
131
|
+
var container, offset, path = [],
|
132
|
+
outputOffset, childNodes, parents;
|
133
|
+
|
134
|
+
container = caretPosition.container();
|
135
|
+
offset = caretPosition.offset();
|
136
|
+
|
137
|
+
if (isText(container)) {
|
138
|
+
outputOffset = normalizedTextOffset(container, offset);
|
139
|
+
} else {
|
140
|
+
childNodes = container.childNodes;
|
141
|
+
if (offset >= childNodes.length) {
|
142
|
+
outputOffset = 'after';
|
143
|
+
offset = childNodes.length - 1;
|
144
|
+
} else {
|
145
|
+
outputOffset = 'before';
|
146
|
+
}
|
147
|
+
|
148
|
+
container = childNodes[offset];
|
149
|
+
}
|
150
|
+
|
151
|
+
path.push(createPathItem(container));
|
152
|
+
parents = parentsUntil(rootNode, container);
|
153
|
+
parents = Arr.filter(parents, Fun.negate(NodeType.isBogus));
|
154
|
+
path = path.concat(Arr.map(parents, function(node) {
|
155
|
+
return createPathItem(node);
|
156
|
+
}));
|
157
|
+
|
158
|
+
return path.reverse().join('/') + ',' + outputOffset;
|
159
|
+
}
|
160
|
+
|
161
|
+
function resolvePathItem(node, name, index) {
|
162
|
+
var nodes = getChildNodes(node);
|
163
|
+
|
164
|
+
nodes = Arr.filter(nodes, function(node, index) {
|
165
|
+
return !isText(node) || !isText(nodes[index - 1]);
|
166
|
+
});
|
167
|
+
|
168
|
+
nodes = Arr.filter(nodes, NodeType.matchNodeNames(name));
|
169
|
+
return nodes[index];
|
170
|
+
}
|
171
|
+
|
172
|
+
function findTextPosition(container, offset) {
|
173
|
+
var node = container, targetOffset = 0, dataLen;
|
174
|
+
|
175
|
+
while (isText(node)) {
|
176
|
+
dataLen = node.data.length;
|
177
|
+
|
178
|
+
if (offset >= targetOffset && offset <= targetOffset + dataLen) {
|
179
|
+
container = node;
|
180
|
+
offset = offset - targetOffset;
|
181
|
+
break;
|
182
|
+
}
|
183
|
+
|
184
|
+
if (!isText(node.nextSibling)) {
|
185
|
+
container = node;
|
186
|
+
offset = dataLen;
|
187
|
+
break;
|
188
|
+
}
|
189
|
+
|
190
|
+
targetOffset += dataLen;
|
191
|
+
node = node.nextSibling;
|
192
|
+
}
|
193
|
+
|
194
|
+
if (offset > container.data.length) {
|
195
|
+
offset = container.data.length;
|
196
|
+
}
|
197
|
+
|
198
|
+
return new CaretPosition(container, offset);
|
199
|
+
}
|
200
|
+
|
201
|
+
function resolve(rootNode, path) {
|
202
|
+
var parts, container, offset;
|
203
|
+
|
204
|
+
if (!path) {
|
205
|
+
return null;
|
206
|
+
}
|
207
|
+
|
208
|
+
parts = path.split(',');
|
209
|
+
path = parts[0].split('/');
|
210
|
+
offset = parts.length > 1 ? parts[1] : 'before';
|
211
|
+
|
212
|
+
container = Arr.reduce(path, function(result, value) {
|
213
|
+
value = /([\w\-\(\)]+)\[([0-9]+)\]/.exec(value);
|
214
|
+
if (!value) {
|
215
|
+
return null;
|
216
|
+
}
|
217
|
+
|
218
|
+
if (value[1] === 'text()') {
|
219
|
+
value[1] = '#text';
|
220
|
+
}
|
221
|
+
|
222
|
+
return resolvePathItem(result, value[1], parseInt(value[2], 10));
|
223
|
+
}, rootNode);
|
224
|
+
|
225
|
+
if (!container) {
|
226
|
+
return null;
|
227
|
+
}
|
228
|
+
|
229
|
+
if (!isText(container)) {
|
230
|
+
if (offset === 'after') {
|
231
|
+
offset = nodeIndex(container) + 1;
|
232
|
+
} else {
|
233
|
+
offset = nodeIndex(container);
|
234
|
+
}
|
235
|
+
|
236
|
+
return new CaretPosition(container.parentNode, offset);
|
237
|
+
}
|
238
|
+
|
239
|
+
return findTextPosition(container, parseInt(offset, 10));
|
240
|
+
}
|
241
|
+
|
242
|
+
return {
|
243
|
+
/**
|
244
|
+
* Create a xpath bookmark location for the specified caret position.
|
245
|
+
*
|
246
|
+
* @method create
|
247
|
+
* @param {Node} rootNode Root node to create bookmark within.
|
248
|
+
* @param {tinymce.caret.CaretPosition} caretPosition Caret position within the root node.
|
249
|
+
* @return {String} String xpath like location of caret position.
|
250
|
+
*/
|
251
|
+
create: create,
|
252
|
+
|
253
|
+
/**
|
254
|
+
* Resolves a xpath like bookmark location to the a caret position.
|
255
|
+
*
|
256
|
+
* @method resolve
|
257
|
+
* @param {Node} rootNode Root node to resolve xpath bookmark within.
|
258
|
+
* @param {String} bookmark Bookmark string to resolve.
|
259
|
+
* @return {tinymce.caret.CaretPosition} Caret position resolved from xpath like bookmark.
|
260
|
+
*/
|
261
|
+
resolve: resolve
|
262
|
+
};
|
263
|
+
});
|