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,177 @@
|
|
1
|
+
/**
|
2
|
+
* Env.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 contains various environment constants like browser versions etc.
|
13
|
+
* Normally you don't want to sniff specific browser versions but sometimes you have
|
14
|
+
* to when it's impossible to feature detect. So use this with care.
|
15
|
+
*
|
16
|
+
* @class tinymce.Env
|
17
|
+
* @static
|
18
|
+
*/
|
19
|
+
define("tinymce/Env", [], function() {
|
20
|
+
var nav = navigator, userAgent = nav.userAgent;
|
21
|
+
var opera, webkit, ie, ie11, ie12, gecko, mac, iDevice, android, fileApi, phone, tablet, windowsPhone;
|
22
|
+
|
23
|
+
function matchMediaQuery(query) {
|
24
|
+
return "matchMedia" in window ? matchMedia(query).matches : false;
|
25
|
+
}
|
26
|
+
|
27
|
+
opera = window.opera && window.opera.buildNumber;
|
28
|
+
android = /Android/.test(userAgent);
|
29
|
+
webkit = /WebKit/.test(userAgent);
|
30
|
+
ie = !webkit && !opera && (/MSIE/gi).test(userAgent) && (/Explorer/gi).test(nav.appName);
|
31
|
+
ie = ie && /MSIE (\w+)\./.exec(userAgent)[1];
|
32
|
+
ie11 = userAgent.indexOf('Trident/') != -1 && (userAgent.indexOf('rv:') != -1 || nav.appName.indexOf('Netscape') != -1) ? 11 : false;
|
33
|
+
ie12 = (userAgent.indexOf('Edge/') != -1 && !ie && !ie11) ? 12 : false;
|
34
|
+
ie = ie || ie11 || ie12;
|
35
|
+
gecko = !webkit && !ie11 && /Gecko/.test(userAgent);
|
36
|
+
mac = userAgent.indexOf('Mac') != -1;
|
37
|
+
iDevice = /(iPad|iPhone)/.test(userAgent);
|
38
|
+
fileApi = "FormData" in window && "FileReader" in window && "URL" in window && !!URL.createObjectURL;
|
39
|
+
phone = matchMediaQuery("only screen and (max-device-width: 480px)") && (android || iDevice);
|
40
|
+
tablet = matchMediaQuery("only screen and (min-width: 800px)") && (android || iDevice);
|
41
|
+
windowsPhone = userAgent.indexOf('Windows Phone') != -1;
|
42
|
+
|
43
|
+
if (ie12) {
|
44
|
+
webkit = false;
|
45
|
+
}
|
46
|
+
|
47
|
+
// Is a iPad/iPhone and not on iOS5 sniff the WebKit version since older iOS WebKit versions
|
48
|
+
// says it has contentEditable support but there is no visible caret.
|
49
|
+
var contentEditable = !iDevice || fileApi || userAgent.match(/AppleWebKit\/(\d*)/)[1] >= 534;
|
50
|
+
|
51
|
+
return {
|
52
|
+
/**
|
53
|
+
* Constant that is true if the browser is Opera.
|
54
|
+
*
|
55
|
+
* @property opera
|
56
|
+
* @type Boolean
|
57
|
+
* @final
|
58
|
+
*/
|
59
|
+
opera: opera,
|
60
|
+
|
61
|
+
/**
|
62
|
+
* Constant that is true if the browser is WebKit (Safari/Chrome).
|
63
|
+
*
|
64
|
+
* @property webKit
|
65
|
+
* @type Boolean
|
66
|
+
* @final
|
67
|
+
*/
|
68
|
+
webkit: webkit,
|
69
|
+
|
70
|
+
/**
|
71
|
+
* Constant that is more than zero if the browser is IE.
|
72
|
+
*
|
73
|
+
* @property ie
|
74
|
+
* @type Boolean
|
75
|
+
* @final
|
76
|
+
*/
|
77
|
+
ie: ie,
|
78
|
+
|
79
|
+
/**
|
80
|
+
* Constant that is true if the browser is Gecko.
|
81
|
+
*
|
82
|
+
* @property gecko
|
83
|
+
* @type Boolean
|
84
|
+
* @final
|
85
|
+
*/
|
86
|
+
gecko: gecko,
|
87
|
+
|
88
|
+
/**
|
89
|
+
* Constant that is true if the os is Mac OS.
|
90
|
+
*
|
91
|
+
* @property mac
|
92
|
+
* @type Boolean
|
93
|
+
* @final
|
94
|
+
*/
|
95
|
+
mac: mac,
|
96
|
+
|
97
|
+
/**
|
98
|
+
* Constant that is true if the os is iOS.
|
99
|
+
*
|
100
|
+
* @property iOS
|
101
|
+
* @type Boolean
|
102
|
+
* @final
|
103
|
+
*/
|
104
|
+
iOS: iDevice,
|
105
|
+
|
106
|
+
/**
|
107
|
+
* Constant that is true if the os is android.
|
108
|
+
*
|
109
|
+
* @property android
|
110
|
+
* @type Boolean
|
111
|
+
* @final
|
112
|
+
*/
|
113
|
+
android: android,
|
114
|
+
|
115
|
+
/**
|
116
|
+
* Constant that is true if the browser supports editing.
|
117
|
+
*
|
118
|
+
* @property contentEditable
|
119
|
+
* @type Boolean
|
120
|
+
* @final
|
121
|
+
*/
|
122
|
+
contentEditable: contentEditable,
|
123
|
+
|
124
|
+
/**
|
125
|
+
* Transparent image data url.
|
126
|
+
*
|
127
|
+
* @property transparentSrc
|
128
|
+
* @type Boolean
|
129
|
+
* @final
|
130
|
+
*/
|
131
|
+
transparentSrc: "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",
|
132
|
+
|
133
|
+
/**
|
134
|
+
* Returns true/false if the browser can or can't place the caret after a inline block like an image.
|
135
|
+
*
|
136
|
+
* @property noCaretAfter
|
137
|
+
* @type Boolean
|
138
|
+
* @final
|
139
|
+
*/
|
140
|
+
caretAfter: ie != 8,
|
141
|
+
|
142
|
+
/**
|
143
|
+
* Constant that is true if the browser supports native DOM Ranges. IE 9+.
|
144
|
+
*
|
145
|
+
* @property range
|
146
|
+
* @type Boolean
|
147
|
+
*/
|
148
|
+
range: window.getSelection && "Range" in window,
|
149
|
+
|
150
|
+
/**
|
151
|
+
* Returns the IE document mode for non IE browsers this will fake IE 10.
|
152
|
+
*
|
153
|
+
* @property documentMode
|
154
|
+
* @type Number
|
155
|
+
*/
|
156
|
+
documentMode: ie && !ie12 ? (document.documentMode || 7) : 10,
|
157
|
+
|
158
|
+
/**
|
159
|
+
* Constant that is true if the browser has a modern file api.
|
160
|
+
*
|
161
|
+
* @property fileApi
|
162
|
+
* @type Boolean
|
163
|
+
*/
|
164
|
+
fileApi: fileApi,
|
165
|
+
|
166
|
+
/**
|
167
|
+
* Constant that is true if the browser supports contentEditable=false regions.
|
168
|
+
*
|
169
|
+
* @property ceFalse
|
170
|
+
* @type Boolean
|
171
|
+
*/
|
172
|
+
ceFalse: (ie === false || ie > 8),
|
173
|
+
|
174
|
+
desktop: !phone && !tablet,
|
175
|
+
windowsPhone: windowsPhone
|
176
|
+
};
|
177
|
+
});
|
@@ -0,0 +1,266 @@
|
|
1
|
+
/**
|
2
|
+
* FocusManager.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 manages the focus/blur state of the editor. This class is needed since some
|
13
|
+
* browsers fire false focus/blur states when the selection is moved to a UI dialog or similar.
|
14
|
+
*
|
15
|
+
* This class will fire two events focus and blur on the editor instances that got affected.
|
16
|
+
* It will also handle the restore of selection when the focus is lost and returned.
|
17
|
+
*
|
18
|
+
* @class tinymce.FocusManager
|
19
|
+
*/
|
20
|
+
define("tinymce/FocusManager", [
|
21
|
+
"tinymce/dom/DOMUtils",
|
22
|
+
"tinymce/util/Delay",
|
23
|
+
"tinymce/Env"
|
24
|
+
], function(DOMUtils, Delay, Env) {
|
25
|
+
var selectionChangeHandler, documentFocusInHandler, documentMouseUpHandler, DOM = DOMUtils.DOM;
|
26
|
+
|
27
|
+
/**
|
28
|
+
* Constructs a new focus manager instance.
|
29
|
+
*
|
30
|
+
* @constructor FocusManager
|
31
|
+
* @param {tinymce.EditorManager} editorManager Editor manager instance to handle focus for.
|
32
|
+
*/
|
33
|
+
function FocusManager(editorManager) {
|
34
|
+
function getActiveElement() {
|
35
|
+
try {
|
36
|
+
return document.activeElement;
|
37
|
+
} catch (ex) {
|
38
|
+
// IE sometimes fails to get the activeElement when resizing table
|
39
|
+
// TODO: Investigate this
|
40
|
+
return document.body;
|
41
|
+
}
|
42
|
+
}
|
43
|
+
|
44
|
+
// We can't store a real range on IE 11 since it gets mutated so we need to use a bookmark object
|
45
|
+
// TODO: Move this to a separate range utils class since it's it's logic is present in Selection as well.
|
46
|
+
function createBookmark(dom, rng) {
|
47
|
+
if (rng && rng.startContainer) {
|
48
|
+
// Verify that the range is within the root of the editor
|
49
|
+
if (!dom.isChildOf(rng.startContainer, dom.getRoot()) || !dom.isChildOf(rng.endContainer, dom.getRoot())) {
|
50
|
+
return;
|
51
|
+
}
|
52
|
+
|
53
|
+
return {
|
54
|
+
startContainer: rng.startContainer,
|
55
|
+
startOffset: rng.startOffset,
|
56
|
+
endContainer: rng.endContainer,
|
57
|
+
endOffset: rng.endOffset
|
58
|
+
};
|
59
|
+
}
|
60
|
+
|
61
|
+
return rng;
|
62
|
+
}
|
63
|
+
|
64
|
+
function bookmarkToRng(editor, bookmark) {
|
65
|
+
var rng;
|
66
|
+
|
67
|
+
if (bookmark.startContainer) {
|
68
|
+
rng = editor.getDoc().createRange();
|
69
|
+
rng.setStart(bookmark.startContainer, bookmark.startOffset);
|
70
|
+
rng.setEnd(bookmark.endContainer, bookmark.endOffset);
|
71
|
+
} else {
|
72
|
+
rng = bookmark;
|
73
|
+
}
|
74
|
+
|
75
|
+
return rng;
|
76
|
+
}
|
77
|
+
|
78
|
+
function isUIElement(elm) {
|
79
|
+
return !!DOM.getParent(elm, FocusManager.isEditorUIElement);
|
80
|
+
}
|
81
|
+
|
82
|
+
function registerEvents(e) {
|
83
|
+
var editor = e.editor;
|
84
|
+
|
85
|
+
editor.on('init', function() {
|
86
|
+
// Gecko/WebKit has ghost selections in iframes and IE only has one selection per browser tab
|
87
|
+
if (editor.inline || Env.ie) {
|
88
|
+
// Use the onbeforedeactivate event when available since it works better see #7023
|
89
|
+
if ("onbeforedeactivate" in document && Env.ie < 9) {
|
90
|
+
editor.dom.bind(editor.getBody(), 'beforedeactivate', function(e) {
|
91
|
+
if (e.target != editor.getBody()) {
|
92
|
+
return;
|
93
|
+
}
|
94
|
+
|
95
|
+
try {
|
96
|
+
editor.lastRng = editor.selection.getRng();
|
97
|
+
} catch (ex) {
|
98
|
+
// IE throws "Unexcpected call to method or property access" some times so lets ignore it
|
99
|
+
}
|
100
|
+
});
|
101
|
+
} else {
|
102
|
+
// On other browsers take snapshot on nodechange in inline mode since they have Ghost selections for iframes
|
103
|
+
editor.on('nodechange mouseup keyup', function(e) {
|
104
|
+
var node = getActiveElement();
|
105
|
+
|
106
|
+
// Only act on manual nodechanges
|
107
|
+
if (e.type == 'nodechange' && e.selectionChange) {
|
108
|
+
return;
|
109
|
+
}
|
110
|
+
|
111
|
+
// IE 11 reports active element as iframe not body of iframe
|
112
|
+
if (node && node.id == editor.id + '_ifr') {
|
113
|
+
node = editor.getBody();
|
114
|
+
}
|
115
|
+
|
116
|
+
if (editor.dom.isChildOf(node, editor.getBody())) {
|
117
|
+
editor.lastRng = editor.selection.getRng();
|
118
|
+
}
|
119
|
+
});
|
120
|
+
}
|
121
|
+
|
122
|
+
// Handles the issue with WebKit not retaining selection within inline document
|
123
|
+
// If the user releases the mouse out side the body since a mouse up event wont occur on the body
|
124
|
+
if (Env.webkit && !selectionChangeHandler) {
|
125
|
+
selectionChangeHandler = function() {
|
126
|
+
var activeEditor = editorManager.activeEditor;
|
127
|
+
|
128
|
+
if (activeEditor && activeEditor.selection) {
|
129
|
+
var rng = activeEditor.selection.getRng();
|
130
|
+
|
131
|
+
// Store when it's non collapsed
|
132
|
+
if (rng && !rng.collapsed) {
|
133
|
+
editor.lastRng = rng;
|
134
|
+
}
|
135
|
+
}
|
136
|
+
};
|
137
|
+
|
138
|
+
DOM.bind(document, 'selectionchange', selectionChangeHandler);
|
139
|
+
}
|
140
|
+
}
|
141
|
+
});
|
142
|
+
|
143
|
+
editor.on('setcontent', function() {
|
144
|
+
editor.lastRng = null;
|
145
|
+
});
|
146
|
+
|
147
|
+
// Remove last selection bookmark on mousedown see #6305
|
148
|
+
editor.on('mousedown', function() {
|
149
|
+
editor.selection.lastFocusBookmark = null;
|
150
|
+
});
|
151
|
+
|
152
|
+
editor.on('focusin', function() {
|
153
|
+
var focusedEditor = editorManager.focusedEditor, lastRng;
|
154
|
+
|
155
|
+
if (editor.selection.lastFocusBookmark) {
|
156
|
+
lastRng = bookmarkToRng(editor, editor.selection.lastFocusBookmark);
|
157
|
+
editor.selection.lastFocusBookmark = null;
|
158
|
+
editor.selection.setRng(lastRng);
|
159
|
+
}
|
160
|
+
|
161
|
+
if (focusedEditor != editor) {
|
162
|
+
if (focusedEditor) {
|
163
|
+
focusedEditor.fire('blur', {focusedEditor: editor});
|
164
|
+
}
|
165
|
+
|
166
|
+
editorManager.setActive(editor);
|
167
|
+
editorManager.focusedEditor = editor;
|
168
|
+
editor.fire('focus', {blurredEditor: focusedEditor});
|
169
|
+
editor.focus(true);
|
170
|
+
}
|
171
|
+
|
172
|
+
editor.lastRng = null;
|
173
|
+
});
|
174
|
+
|
175
|
+
editor.on('focusout', function() {
|
176
|
+
Delay.setEditorTimeout(editor, function() {
|
177
|
+
var focusedEditor = editorManager.focusedEditor;
|
178
|
+
|
179
|
+
// Still the same editor the blur was outside any editor UI
|
180
|
+
if (!isUIElement(getActiveElement()) && focusedEditor == editor) {
|
181
|
+
editor.fire('blur', {focusedEditor: null});
|
182
|
+
editorManager.focusedEditor = null;
|
183
|
+
|
184
|
+
// Make sure selection is valid could be invalid if the editor is blured and removed before the timeout occurs
|
185
|
+
if (editor.selection) {
|
186
|
+
editor.selection.lastFocusBookmark = null;
|
187
|
+
}
|
188
|
+
}
|
189
|
+
});
|
190
|
+
});
|
191
|
+
|
192
|
+
// Check if focus is moved to an element outside the active editor by checking if the target node
|
193
|
+
// isn't within the body of the activeEditor nor a UI element such as a dialog child control
|
194
|
+
if (!documentFocusInHandler) {
|
195
|
+
documentFocusInHandler = function(e) {
|
196
|
+
var activeEditor = editorManager.activeEditor;
|
197
|
+
|
198
|
+
if (activeEditor && e.target.ownerDocument == document) {
|
199
|
+
// Check to make sure we have a valid selection don't update the bookmark if it's
|
200
|
+
// a focusin to the body of the editor see #7025
|
201
|
+
if (activeEditor.selection && e.target != activeEditor.getBody()) {
|
202
|
+
activeEditor.selection.lastFocusBookmark = createBookmark(activeEditor.dom, activeEditor.lastRng);
|
203
|
+
}
|
204
|
+
|
205
|
+
// Fire a blur event if the element isn't a UI element
|
206
|
+
if (e.target != document.body && !isUIElement(e.target) && editorManager.focusedEditor == activeEditor) {
|
207
|
+
activeEditor.fire('blur', {focusedEditor: null});
|
208
|
+
editorManager.focusedEditor = null;
|
209
|
+
}
|
210
|
+
}
|
211
|
+
};
|
212
|
+
|
213
|
+
DOM.bind(document, 'focusin', documentFocusInHandler);
|
214
|
+
}
|
215
|
+
|
216
|
+
// Handle edge case when user starts the selection inside the editor and releases
|
217
|
+
// the mouse outside the editor producing a new selection. This weird workaround is needed since
|
218
|
+
// Gecko doesn't have the "selectionchange" event we need to do this. Fixes: #6843
|
219
|
+
if (editor.inline && !documentMouseUpHandler) {
|
220
|
+
documentMouseUpHandler = function(e) {
|
221
|
+
var activeEditor = editorManager.activeEditor;
|
222
|
+
|
223
|
+
if (activeEditor.inline && !activeEditor.dom.isChildOf(e.target, activeEditor.getBody())) {
|
224
|
+
var rng = activeEditor.selection.getRng();
|
225
|
+
|
226
|
+
if (!rng.collapsed) {
|
227
|
+
activeEditor.lastRng = rng;
|
228
|
+
}
|
229
|
+
}
|
230
|
+
};
|
231
|
+
|
232
|
+
DOM.bind(document, 'mouseup', documentMouseUpHandler);
|
233
|
+
}
|
234
|
+
}
|
235
|
+
|
236
|
+
function unregisterDocumentEvents(e) {
|
237
|
+
if (editorManager.focusedEditor == e.editor) {
|
238
|
+
editorManager.focusedEditor = null;
|
239
|
+
}
|
240
|
+
|
241
|
+
if (!editorManager.activeEditor) {
|
242
|
+
DOM.unbind(document, 'selectionchange', selectionChangeHandler);
|
243
|
+
DOM.unbind(document, 'focusin', documentFocusInHandler);
|
244
|
+
DOM.unbind(document, 'mouseup', documentMouseUpHandler);
|
245
|
+
selectionChangeHandler = documentFocusInHandler = documentMouseUpHandler = null;
|
246
|
+
}
|
247
|
+
}
|
248
|
+
|
249
|
+
editorManager.on('AddEditor', registerEvents);
|
250
|
+
editorManager.on('RemoveEditor', unregisterDocumentEvents);
|
251
|
+
}
|
252
|
+
|
253
|
+
/**
|
254
|
+
* Returns true if the specified element is part of the UI for example an button or text input.
|
255
|
+
*
|
256
|
+
* @method isEditorUIElement
|
257
|
+
* @param {Element} elm Element to check if it's part of the UI or not.
|
258
|
+
* @return {Boolean} True/false state if the element is part of the UI or not.
|
259
|
+
*/
|
260
|
+
FocusManager.isEditorUIElement = function(elm) {
|
261
|
+
// Needs to be converted to string since svg can have focus: #6776
|
262
|
+
return elm.className.toString().indexOf('mce-') !== -1;
|
263
|
+
};
|
264
|
+
|
265
|
+
return FocusManager;
|
266
|
+
});
|
@@ -0,0 +1,138 @@
|
|
1
|
+
/**
|
2
|
+
* ForceBlocks.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
|
+
* Makes sure that everything gets wrapped in paragraphs.
|
13
|
+
*
|
14
|
+
* @private
|
15
|
+
* @class tinymce.ForceBlocks
|
16
|
+
*/
|
17
|
+
define("tinymce/ForceBlocks", [], function() {
|
18
|
+
return function(editor) {
|
19
|
+
var settings = editor.settings, dom = editor.dom, selection = editor.selection;
|
20
|
+
var schema = editor.schema, blockElements = schema.getBlockElements();
|
21
|
+
|
22
|
+
function addRootBlocks() {
|
23
|
+
var node = selection.getStart(), rootNode = editor.getBody(), rng;
|
24
|
+
var startContainer, startOffset, endContainer, endOffset, rootBlockNode;
|
25
|
+
var tempNode, offset = -0xFFFFFF, wrapped, restoreSelection;
|
26
|
+
var tmpRng, rootNodeName, forcedRootBlock;
|
27
|
+
|
28
|
+
forcedRootBlock = settings.forced_root_block;
|
29
|
+
|
30
|
+
if (!node || node.nodeType !== 1 || !forcedRootBlock) {
|
31
|
+
return;
|
32
|
+
}
|
33
|
+
|
34
|
+
// Check if node is wrapped in block
|
35
|
+
while (node && node != rootNode) {
|
36
|
+
if (blockElements[node.nodeName]) {
|
37
|
+
return;
|
38
|
+
}
|
39
|
+
|
40
|
+
node = node.parentNode;
|
41
|
+
}
|
42
|
+
|
43
|
+
// Get current selection
|
44
|
+
rng = selection.getRng();
|
45
|
+
if (rng.setStart) {
|
46
|
+
startContainer = rng.startContainer;
|
47
|
+
startOffset = rng.startOffset;
|
48
|
+
endContainer = rng.endContainer;
|
49
|
+
endOffset = rng.endOffset;
|
50
|
+
|
51
|
+
try {
|
52
|
+
restoreSelection = editor.getDoc().activeElement === rootNode;
|
53
|
+
} catch (ex) {
|
54
|
+
// IE throws unspecified error here sometimes
|
55
|
+
}
|
56
|
+
} else {
|
57
|
+
// Force control range into text range
|
58
|
+
if (rng.item) {
|
59
|
+
node = rng.item(0);
|
60
|
+
rng = editor.getDoc().body.createTextRange();
|
61
|
+
rng.moveToElementText(node);
|
62
|
+
}
|
63
|
+
|
64
|
+
restoreSelection = rng.parentElement().ownerDocument === editor.getDoc();
|
65
|
+
tmpRng = rng.duplicate();
|
66
|
+
tmpRng.collapse(true);
|
67
|
+
startOffset = tmpRng.move('character', offset) * -1;
|
68
|
+
|
69
|
+
if (!tmpRng.collapsed) {
|
70
|
+
tmpRng = rng.duplicate();
|
71
|
+
tmpRng.collapse(false);
|
72
|
+
endOffset = (tmpRng.move('character', offset) * -1) - startOffset;
|
73
|
+
}
|
74
|
+
}
|
75
|
+
|
76
|
+
// Wrap non block elements and text nodes
|
77
|
+
node = rootNode.firstChild;
|
78
|
+
rootNodeName = rootNode.nodeName.toLowerCase();
|
79
|
+
while (node) {
|
80
|
+
// TODO: Break this up, too complex
|
81
|
+
if (((node.nodeType === 3 || (node.nodeType == 1 && !blockElements[node.nodeName]))) &&
|
82
|
+
schema.isValidChild(rootNodeName, forcedRootBlock.toLowerCase())) {
|
83
|
+
// Remove empty text nodes
|
84
|
+
if (node.nodeType === 3 && node.nodeValue.length === 0) {
|
85
|
+
tempNode = node;
|
86
|
+
node = node.nextSibling;
|
87
|
+
dom.remove(tempNode);
|
88
|
+
continue;
|
89
|
+
}
|
90
|
+
|
91
|
+
if (!rootBlockNode) {
|
92
|
+
rootBlockNode = dom.create(forcedRootBlock, editor.settings.forced_root_block_attrs);
|
93
|
+
node.parentNode.insertBefore(rootBlockNode, node);
|
94
|
+
wrapped = true;
|
95
|
+
}
|
96
|
+
|
97
|
+
tempNode = node;
|
98
|
+
node = node.nextSibling;
|
99
|
+
rootBlockNode.appendChild(tempNode);
|
100
|
+
} else {
|
101
|
+
rootBlockNode = null;
|
102
|
+
node = node.nextSibling;
|
103
|
+
}
|
104
|
+
}
|
105
|
+
|
106
|
+
if (wrapped && restoreSelection) {
|
107
|
+
if (rng.setStart) {
|
108
|
+
rng.setStart(startContainer, startOffset);
|
109
|
+
rng.setEnd(endContainer, endOffset);
|
110
|
+
selection.setRng(rng);
|
111
|
+
} else {
|
112
|
+
// Only select if the previous selection was inside the document to prevent auto focus in quirks mode
|
113
|
+
try {
|
114
|
+
rng = editor.getDoc().body.createTextRange();
|
115
|
+
rng.moveToElementText(rootNode);
|
116
|
+
rng.collapse(true);
|
117
|
+
rng.moveStart('character', startOffset);
|
118
|
+
|
119
|
+
if (endOffset > 0) {
|
120
|
+
rng.moveEnd('character', endOffset);
|
121
|
+
}
|
122
|
+
|
123
|
+
rng.select();
|
124
|
+
} catch (ex) {
|
125
|
+
// Ignore
|
126
|
+
}
|
127
|
+
}
|
128
|
+
|
129
|
+
editor.nodeChanged();
|
130
|
+
}
|
131
|
+
}
|
132
|
+
|
133
|
+
// Force root blocks
|
134
|
+
if (settings.forced_root_block) {
|
135
|
+
editor.on('NodeChange', addRootBlocks);
|
136
|
+
}
|
137
|
+
};
|
138
|
+
});
|