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,66 @@
|
|
1
|
+
/**
|
2
|
+
* Hooks.js
|
3
|
+
*
|
4
|
+
* Released under LGPL License.
|
5
|
+
* Copyright (c) 1999-2016 Ephox Corp. All rights reserved
|
6
|
+
*
|
7
|
+
* License: http://www.tinymce.com/license
|
8
|
+
* Contributing: http://www.tinymce.com/contributing
|
9
|
+
*/
|
10
|
+
|
11
|
+
/**
|
12
|
+
* Internal class for overriding formatting.
|
13
|
+
*
|
14
|
+
* @private
|
15
|
+
* @class tinymce.fmt.Hooks
|
16
|
+
*/
|
17
|
+
define("tinymce/fmt/Hooks", [
|
18
|
+
"tinymce/util/Arr",
|
19
|
+
"tinymce/dom/NodeType",
|
20
|
+
"tinymce/dom/DomQuery"
|
21
|
+
], function(Arr, NodeType, $) {
|
22
|
+
var postProcessHooks = [], filter = Arr.filter, each = Arr.each;
|
23
|
+
|
24
|
+
function addPostProcessHook(name, hook) {
|
25
|
+
var hooks = postProcessHooks[name];
|
26
|
+
|
27
|
+
if (!hooks) {
|
28
|
+
postProcessHooks[name] = hooks = [];
|
29
|
+
}
|
30
|
+
|
31
|
+
postProcessHooks[name].push(hook);
|
32
|
+
}
|
33
|
+
|
34
|
+
function postProcess(name, editor) {
|
35
|
+
each(postProcessHooks[name], function(hook) {
|
36
|
+
hook(editor);
|
37
|
+
});
|
38
|
+
}
|
39
|
+
|
40
|
+
addPostProcessHook("pre", function(editor) {
|
41
|
+
var rng = editor.selection.getRng(), isPre, blocks;
|
42
|
+
|
43
|
+
function hasPreSibling(pre) {
|
44
|
+
return isPre(pre.previousSibling) && Arr.indexOf(blocks, pre.previousSibling) != -1;
|
45
|
+
}
|
46
|
+
|
47
|
+
function joinPre(pre1, pre2) {
|
48
|
+
$(pre2).remove();
|
49
|
+
$(pre1).append('<br><br>').append(pre2.childNodes);
|
50
|
+
}
|
51
|
+
|
52
|
+
isPre = NodeType.matchNodeNames('pre');
|
53
|
+
|
54
|
+
if (!rng.collapsed) {
|
55
|
+
blocks = editor.selection.getSelectedBlocks();
|
56
|
+
|
57
|
+
each(filter(filter(blocks, isPre), hasPreSibling), function(pre) {
|
58
|
+
joinPre(pre.previousSibling, pre);
|
59
|
+
});
|
60
|
+
}
|
61
|
+
});
|
62
|
+
|
63
|
+
return {
|
64
|
+
postProcess: postProcess
|
65
|
+
};
|
66
|
+
});
|
@@ -0,0 +1,151 @@
|
|
1
|
+
/**
|
2
|
+
* Preview.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
|
+
* Internal class for generating previews styles for formats.
|
13
|
+
*
|
14
|
+
* Example:
|
15
|
+
* Preview.getCssText(editor, 'bold');
|
16
|
+
*
|
17
|
+
* @private
|
18
|
+
* @class tinymce.fmt.Preview
|
19
|
+
*/
|
20
|
+
define("tinymce/fmt/Preview", [
|
21
|
+
"tinymce/util/Tools"
|
22
|
+
], function(Tools) {
|
23
|
+
var each = Tools.each;
|
24
|
+
|
25
|
+
function getCssText(editor, format) {
|
26
|
+
var name, previewElm, dom = editor.dom;
|
27
|
+
var previewCss = '', parentFontSize, previewStyles;
|
28
|
+
|
29
|
+
previewStyles = editor.settings.preview_styles;
|
30
|
+
|
31
|
+
// No preview forced
|
32
|
+
if (previewStyles === false) {
|
33
|
+
return '';
|
34
|
+
}
|
35
|
+
|
36
|
+
// Default preview
|
37
|
+
if (!previewStyles) {
|
38
|
+
previewStyles = 'font-family font-size font-weight font-style text-decoration ' +
|
39
|
+
'text-transform color background-color border border-radius outline text-shadow';
|
40
|
+
}
|
41
|
+
|
42
|
+
// Removes any variables since these can't be previewed
|
43
|
+
function removeVars(val) {
|
44
|
+
return val.replace(/%(\w+)/g, '');
|
45
|
+
}
|
46
|
+
|
47
|
+
// Create block/inline element to use for preview
|
48
|
+
if (typeof format == "string") {
|
49
|
+
format = editor.formatter.get(format);
|
50
|
+
if (!format) {
|
51
|
+
return;
|
52
|
+
}
|
53
|
+
|
54
|
+
format = format[0];
|
55
|
+
}
|
56
|
+
|
57
|
+
name = format.block || format.inline || 'span';
|
58
|
+
previewElm = dom.create(name);
|
59
|
+
|
60
|
+
// Add format styles to preview element
|
61
|
+
each(format.styles, function(value, name) {
|
62
|
+
value = removeVars(value);
|
63
|
+
|
64
|
+
if (value) {
|
65
|
+
dom.setStyle(previewElm, name, value);
|
66
|
+
}
|
67
|
+
});
|
68
|
+
|
69
|
+
// Add attributes to preview element
|
70
|
+
each(format.attributes, function(value, name) {
|
71
|
+
value = removeVars(value);
|
72
|
+
|
73
|
+
if (value) {
|
74
|
+
dom.setAttrib(previewElm, name, value);
|
75
|
+
}
|
76
|
+
});
|
77
|
+
|
78
|
+
// Add classes to preview element
|
79
|
+
each(format.classes, function(value) {
|
80
|
+
value = removeVars(value);
|
81
|
+
|
82
|
+
if (!dom.hasClass(previewElm, value)) {
|
83
|
+
dom.addClass(previewElm, value);
|
84
|
+
}
|
85
|
+
});
|
86
|
+
|
87
|
+
editor.fire('PreviewFormats');
|
88
|
+
|
89
|
+
// Add the previewElm outside the visual area
|
90
|
+
dom.setStyles(previewElm, {position: 'absolute', left: -0xFFFF});
|
91
|
+
editor.getBody().appendChild(previewElm);
|
92
|
+
|
93
|
+
// Get parent container font size so we can compute px values out of em/% for older IE:s
|
94
|
+
parentFontSize = dom.getStyle(editor.getBody(), 'fontSize', true);
|
95
|
+
parentFontSize = /px$/.test(parentFontSize) ? parseInt(parentFontSize, 10) : 0;
|
96
|
+
|
97
|
+
each(previewStyles.split(' '), function(name) {
|
98
|
+
var value = dom.getStyle(previewElm, name, true);
|
99
|
+
|
100
|
+
// If background is transparent then check if the body has a background color we can use
|
101
|
+
if (name == 'background-color' && /transparent|rgba\s*\([^)]+,\s*0\)/.test(value)) {
|
102
|
+
value = dom.getStyle(editor.getBody(), name, true);
|
103
|
+
|
104
|
+
// Ignore white since it's the default color, not the nicest fix
|
105
|
+
// TODO: Fix this by detecting runtime style
|
106
|
+
if (dom.toHex(value).toLowerCase() == '#ffffff') {
|
107
|
+
return;
|
108
|
+
}
|
109
|
+
}
|
110
|
+
|
111
|
+
if (name == 'color') {
|
112
|
+
// Ignore black since it's the default color, not the nicest fix
|
113
|
+
// TODO: Fix this by detecting runtime style
|
114
|
+
if (dom.toHex(value).toLowerCase() == '#000000') {
|
115
|
+
return;
|
116
|
+
}
|
117
|
+
}
|
118
|
+
|
119
|
+
// Old IE won't calculate the font size so we need to do that manually
|
120
|
+
if (name == 'font-size') {
|
121
|
+
if (/em|%$/.test(value)) {
|
122
|
+
if (parentFontSize === 0) {
|
123
|
+
return;
|
124
|
+
}
|
125
|
+
|
126
|
+
// Convert font size from em/% to px
|
127
|
+
value = parseFloat(value, 10) / (/%$/.test(value) ? 100 : 1);
|
128
|
+
value = (value * parentFontSize) + 'px';
|
129
|
+
}
|
130
|
+
}
|
131
|
+
|
132
|
+
if (name == "border" && value) {
|
133
|
+
previewCss += 'padding:0 2px;';
|
134
|
+
}
|
135
|
+
|
136
|
+
previewCss += name + ':' + value + ';';
|
137
|
+
});
|
138
|
+
|
139
|
+
editor.fire('AfterPreviewFormats');
|
140
|
+
|
141
|
+
//previewCss += 'line-height:normal';
|
142
|
+
|
143
|
+
dom.remove(previewElm);
|
144
|
+
|
145
|
+
return previewCss;
|
146
|
+
}
|
147
|
+
|
148
|
+
return {
|
149
|
+
getCssText: getCssText
|
150
|
+
};
|
151
|
+
});
|
@@ -0,0 +1,136 @@
|
|
1
|
+
/**
|
2
|
+
* ClientRect.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
|
+
* Utility functions for working with client rects.
|
13
|
+
*
|
14
|
+
* @private
|
15
|
+
* @class tinymce.geom.ClientRect
|
16
|
+
*/
|
17
|
+
define("tinymce/geom/ClientRect", [], function() {
|
18
|
+
var round = Math.round;
|
19
|
+
|
20
|
+
function clone(rect) {
|
21
|
+
if (!rect) {
|
22
|
+
return {left: 0, top: 0, bottom: 0, right: 0, width: 0, height: 0};
|
23
|
+
}
|
24
|
+
|
25
|
+
return {
|
26
|
+
left: round(rect.left),
|
27
|
+
top: round(rect.top),
|
28
|
+
bottom: round(rect.bottom),
|
29
|
+
right: round(rect.right),
|
30
|
+
width: round(rect.width),
|
31
|
+
height: round(rect.height)
|
32
|
+
};
|
33
|
+
}
|
34
|
+
|
35
|
+
function collapse(clientRect, toStart) {
|
36
|
+
clientRect = clone(clientRect);
|
37
|
+
|
38
|
+
if (toStart) {
|
39
|
+
clientRect.right = clientRect.left;
|
40
|
+
} else {
|
41
|
+
clientRect.left = clientRect.left + clientRect.width;
|
42
|
+
clientRect.right = clientRect.left;
|
43
|
+
}
|
44
|
+
|
45
|
+
clientRect.width = 0;
|
46
|
+
|
47
|
+
return clientRect;
|
48
|
+
}
|
49
|
+
|
50
|
+
function isEqual(rect1, rect2) {
|
51
|
+
return (
|
52
|
+
rect1.left === rect2.left &&
|
53
|
+
rect1.top === rect2.top &&
|
54
|
+
rect1.bottom === rect2.bottom &&
|
55
|
+
rect1.right === rect2.right
|
56
|
+
);
|
57
|
+
}
|
58
|
+
|
59
|
+
function isValidOverflow(overflowY, clientRect1, clientRect2) {
|
60
|
+
return overflowY >= 0 && overflowY <= Math.min(clientRect1.height, clientRect2.height) / 2;
|
61
|
+
|
62
|
+
}
|
63
|
+
|
64
|
+
function isAbove(clientRect1, clientRect2) {
|
65
|
+
if (clientRect1.bottom < clientRect2.top) {
|
66
|
+
return true;
|
67
|
+
}
|
68
|
+
|
69
|
+
if (clientRect1.top > clientRect2.bottom) {
|
70
|
+
return false;
|
71
|
+
}
|
72
|
+
|
73
|
+
return isValidOverflow(clientRect2.top - clientRect1.bottom, clientRect1, clientRect2);
|
74
|
+
}
|
75
|
+
|
76
|
+
function isBelow(clientRect1, clientRect2) {
|
77
|
+
if (clientRect1.top > clientRect2.bottom) {
|
78
|
+
return true;
|
79
|
+
}
|
80
|
+
|
81
|
+
if (clientRect1.bottom < clientRect2.top) {
|
82
|
+
return false;
|
83
|
+
}
|
84
|
+
|
85
|
+
return isValidOverflow(clientRect2.bottom - clientRect1.top, clientRect1, clientRect2);
|
86
|
+
}
|
87
|
+
|
88
|
+
function isLeft(clientRect1, clientRect2) {
|
89
|
+
return clientRect1.left < clientRect2.left;
|
90
|
+
}
|
91
|
+
|
92
|
+
function isRight(clientRect1, clientRect2) {
|
93
|
+
return clientRect1.right > clientRect2.right;
|
94
|
+
}
|
95
|
+
|
96
|
+
function compare(clientRect1, clientRect2) {
|
97
|
+
if (isAbove(clientRect1, clientRect2)) {
|
98
|
+
return -1;
|
99
|
+
}
|
100
|
+
|
101
|
+
if (isBelow(clientRect1, clientRect2)) {
|
102
|
+
return 1;
|
103
|
+
}
|
104
|
+
|
105
|
+
if (isLeft(clientRect1, clientRect2)) {
|
106
|
+
return -1;
|
107
|
+
}
|
108
|
+
|
109
|
+
if (isRight(clientRect1, clientRect2)) {
|
110
|
+
return 1;
|
111
|
+
}
|
112
|
+
|
113
|
+
return 0;
|
114
|
+
}
|
115
|
+
|
116
|
+
function containsXY(clientRect, clientX, clientY) {
|
117
|
+
return (
|
118
|
+
clientX >= clientRect.left &&
|
119
|
+
clientX <= clientRect.right &&
|
120
|
+
clientY >= clientRect.top &&
|
121
|
+
clientY <= clientRect.bottom
|
122
|
+
);
|
123
|
+
}
|
124
|
+
|
125
|
+
return {
|
126
|
+
clone: clone,
|
127
|
+
collapse: collapse,
|
128
|
+
isEqual: isEqual,
|
129
|
+
isAbove: isAbove,
|
130
|
+
isBelow: isBelow,
|
131
|
+
isLeft: isLeft,
|
132
|
+
isRight: isRight,
|
133
|
+
compare: compare,
|
134
|
+
containsXY: containsXY
|
135
|
+
};
|
136
|
+
});
|
@@ -0,0 +1,214 @@
|
|
1
|
+
/**
|
2
|
+
* Rect.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
|
+
* Contains various tools for rect/position calculation.
|
13
|
+
*
|
14
|
+
* @class tinymce.geom.Rect
|
15
|
+
*/
|
16
|
+
define("tinymce/geom/Rect", [
|
17
|
+
], function() {
|
18
|
+
"use strict";
|
19
|
+
|
20
|
+
var min = Math.min, max = Math.max, round = Math.round;
|
21
|
+
|
22
|
+
/**
|
23
|
+
* Returns the rect positioned based on the relative position name
|
24
|
+
* to the target rect.
|
25
|
+
*
|
26
|
+
* @method relativePosition
|
27
|
+
* @param {Rect} rect Source rect to modify into a new rect.
|
28
|
+
* @param {Rect} targetRect Rect to move relative to based on the rel option.
|
29
|
+
* @param {String} rel Relative position. For example: tr-bl.
|
30
|
+
*/
|
31
|
+
function relativePosition(rect, targetRect, rel) {
|
32
|
+
var x, y, w, h, targetW, targetH;
|
33
|
+
|
34
|
+
x = targetRect.x;
|
35
|
+
y = targetRect.y;
|
36
|
+
w = rect.w;
|
37
|
+
h = rect.h;
|
38
|
+
targetW = targetRect.w;
|
39
|
+
targetH = targetRect.h;
|
40
|
+
|
41
|
+
rel = (rel || '').split('');
|
42
|
+
|
43
|
+
if (rel[0] === 'b') {
|
44
|
+
y += targetH;
|
45
|
+
}
|
46
|
+
|
47
|
+
if (rel[1] === 'r') {
|
48
|
+
x += targetW;
|
49
|
+
}
|
50
|
+
|
51
|
+
if (rel[0] === 'c') {
|
52
|
+
y += round(targetH / 2);
|
53
|
+
}
|
54
|
+
|
55
|
+
if (rel[1] === 'c') {
|
56
|
+
x += round(targetW / 2);
|
57
|
+
}
|
58
|
+
|
59
|
+
if (rel[3] === 'b') {
|
60
|
+
y -= h;
|
61
|
+
}
|
62
|
+
|
63
|
+
if (rel[4] === 'r') {
|
64
|
+
x -= w;
|
65
|
+
}
|
66
|
+
|
67
|
+
if (rel[3] === 'c') {
|
68
|
+
y -= round(h / 2);
|
69
|
+
}
|
70
|
+
|
71
|
+
if (rel[4] === 'c') {
|
72
|
+
x -= round(w / 2);
|
73
|
+
}
|
74
|
+
|
75
|
+
return create(x, y, w, h);
|
76
|
+
}
|
77
|
+
|
78
|
+
/**
|
79
|
+
* Tests various positions to get the most suitable one.
|
80
|
+
*
|
81
|
+
* @method findBestRelativePosition
|
82
|
+
* @param {Rect} rect Rect to use as source.
|
83
|
+
* @param {Rect} targetRect Rect to move relative to.
|
84
|
+
* @param {Rect} constrainRect Rect to constrain within.
|
85
|
+
* @param {Array} rels Array of relative positions to test against.
|
86
|
+
*/
|
87
|
+
function findBestRelativePosition(rect, targetRect, constrainRect, rels) {
|
88
|
+
var pos, i;
|
89
|
+
|
90
|
+
for (i = 0; i < rels.length; i++) {
|
91
|
+
pos = relativePosition(rect, targetRect, rels[i]);
|
92
|
+
|
93
|
+
if (pos.x >= constrainRect.x && pos.x + pos.w <= constrainRect.w + constrainRect.x &&
|
94
|
+
pos.y >= constrainRect.y && pos.y + pos.h <= constrainRect.h + constrainRect.y) {
|
95
|
+
return rels[i];
|
96
|
+
}
|
97
|
+
}
|
98
|
+
|
99
|
+
return null;
|
100
|
+
}
|
101
|
+
|
102
|
+
/**
|
103
|
+
* Inflates the rect in all directions.
|
104
|
+
*
|
105
|
+
* @method inflate
|
106
|
+
* @param {Rect} rect Rect to expand.
|
107
|
+
* @param {Number} w Relative width to expand by.
|
108
|
+
* @param {Number} h Relative height to expand by.
|
109
|
+
* @return {Rect} New expanded rect.
|
110
|
+
*/
|
111
|
+
function inflate(rect, w, h) {
|
112
|
+
return create(rect.x - w, rect.y - h, rect.w + w * 2, rect.h + h * 2);
|
113
|
+
}
|
114
|
+
|
115
|
+
/**
|
116
|
+
* Returns the intersection of the specified rectangles.
|
117
|
+
*
|
118
|
+
* @method intersect
|
119
|
+
* @param {Rect} rect The first rectangle to compare.
|
120
|
+
* @param {Rect} cropRect The second rectangle to compare.
|
121
|
+
* @return {Rect} The intersection of the two rectangles or null if they don't intersect.
|
122
|
+
*/
|
123
|
+
function intersect(rect, cropRect) {
|
124
|
+
var x1, y1, x2, y2;
|
125
|
+
|
126
|
+
x1 = max(rect.x, cropRect.x);
|
127
|
+
y1 = max(rect.y, cropRect.y);
|
128
|
+
x2 = min(rect.x + rect.w, cropRect.x + cropRect.w);
|
129
|
+
y2 = min(rect.y + rect.h, cropRect.y + cropRect.h);
|
130
|
+
|
131
|
+
if (x2 - x1 < 0 || y2 - y1 < 0) {
|
132
|
+
return null;
|
133
|
+
}
|
134
|
+
|
135
|
+
return create(x1, y1, x2 - x1, y2 - y1);
|
136
|
+
}
|
137
|
+
|
138
|
+
/**
|
139
|
+
* Returns a rect clamped within the specified clamp rect. This forces the
|
140
|
+
* rect to be inside the clamp rect.
|
141
|
+
*
|
142
|
+
* @method clamp
|
143
|
+
* @param {Rect} rect Rectangle to force within clamp rect.
|
144
|
+
* @param {Rect} clampRect Rectable to force within.
|
145
|
+
* @param {Boolean} fixedSize True/false if size should be fixed.
|
146
|
+
* @return {Rect} Clamped rect.
|
147
|
+
*/
|
148
|
+
function clamp(rect, clampRect, fixedSize) {
|
149
|
+
var underflowX1, underflowY1, overflowX2, overflowY2,
|
150
|
+
x1, y1, x2, y2, cx2, cy2;
|
151
|
+
|
152
|
+
x1 = rect.x;
|
153
|
+
y1 = rect.y;
|
154
|
+
x2 = rect.x + rect.w;
|
155
|
+
y2 = rect.y + rect.h;
|
156
|
+
cx2 = clampRect.x + clampRect.w;
|
157
|
+
cy2 = clampRect.y + clampRect.h;
|
158
|
+
|
159
|
+
underflowX1 = max(0, clampRect.x - x1);
|
160
|
+
underflowY1 = max(0, clampRect.y - y1);
|
161
|
+
overflowX2 = max(0, x2 - cx2);
|
162
|
+
overflowY2 = max(0, y2 - cy2);
|
163
|
+
|
164
|
+
x1 += underflowX1;
|
165
|
+
y1 += underflowY1;
|
166
|
+
|
167
|
+
if (fixedSize) {
|
168
|
+
x2 += underflowX1;
|
169
|
+
y2 += underflowY1;
|
170
|
+
x1 -= overflowX2;
|
171
|
+
y1 -= overflowY2;
|
172
|
+
}
|
173
|
+
|
174
|
+
x2 -= overflowX2;
|
175
|
+
y2 -= overflowY2;
|
176
|
+
|
177
|
+
return create(x1, y1, x2 - x1, y2 - y1);
|
178
|
+
}
|
179
|
+
|
180
|
+
/**
|
181
|
+
* Creates a new rectangle object.
|
182
|
+
*
|
183
|
+
* @method create
|
184
|
+
* @param {Number} x Rectangle x location.
|
185
|
+
* @param {Number} y Rectangle y location.
|
186
|
+
* @param {Number} w Rectangle width.
|
187
|
+
* @param {Number} h Rectangle height.
|
188
|
+
* @return {Rect} New rectangle object.
|
189
|
+
*/
|
190
|
+
function create(x, y, w, h) {
|
191
|
+
return {x: x, y: y, w: w, h: h};
|
192
|
+
}
|
193
|
+
|
194
|
+
/**
|
195
|
+
* Creates a new rectangle object form a clientRects object.
|
196
|
+
*
|
197
|
+
* @method fromClientRect
|
198
|
+
* @param {ClientRect} clientRect DOM ClientRect object.
|
199
|
+
* @return {Rect} New rectangle object.
|
200
|
+
*/
|
201
|
+
function fromClientRect(clientRect) {
|
202
|
+
return create(clientRect.left, clientRect.top, clientRect.width, clientRect.height);
|
203
|
+
}
|
204
|
+
|
205
|
+
return {
|
206
|
+
inflate: inflate,
|
207
|
+
relativePosition: relativePosition,
|
208
|
+
findBestRelativePosition: findBestRelativePosition,
|
209
|
+
intersect: intersect,
|
210
|
+
clamp: clamp,
|
211
|
+
create: create,
|
212
|
+
fromClientRect: fromClientRect
|
213
|
+
};
|
214
|
+
});
|