spiderfw 0.6.38 → 0.6.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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,506 @@
|
|
1
|
+
/**
|
2
|
+
* Serializer.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 is used to serialize DOM trees into a string. Consult the TinyMCE Wiki API for
|
13
|
+
* more details and examples on how to use this class.
|
14
|
+
*
|
15
|
+
* @class tinymce.dom.Serializer
|
16
|
+
*/
|
17
|
+
define("tinymce/dom/Serializer", [
|
18
|
+
"tinymce/dom/DOMUtils",
|
19
|
+
"tinymce/html/DomParser",
|
20
|
+
"tinymce/html/SaxParser",
|
21
|
+
"tinymce/html/Entities",
|
22
|
+
"tinymce/html/Serializer",
|
23
|
+
"tinymce/html/Node",
|
24
|
+
"tinymce/html/Schema",
|
25
|
+
"tinymce/Env",
|
26
|
+
"tinymce/util/Tools",
|
27
|
+
"tinymce/text/Zwsp"
|
28
|
+
], function(DOMUtils, DomParser, SaxParser, Entities, Serializer, Node, Schema, Env, Tools, Zwsp) {
|
29
|
+
var each = Tools.each, trim = Tools.trim;
|
30
|
+
var DOM = DOMUtils.DOM, tempAttrs = ["data-mce-selected"];
|
31
|
+
|
32
|
+
/**
|
33
|
+
* IE 11 has a fantastic bug where it will produce two trailing BR elements to iframe bodies when
|
34
|
+
* the iframe is hidden by display: none on a parent container. The DOM is actually out of sync
|
35
|
+
* with innerHTML in this case. It's like IE adds shadow DOM BR elements that appears on innerHTML
|
36
|
+
* but not as the lastChild of the body. So this fix simply removes the last two
|
37
|
+
* BR elements at the end of the document.
|
38
|
+
*
|
39
|
+
* Example of what happens: <body>text</body> becomes <body>text<br><br></body>
|
40
|
+
*/
|
41
|
+
function trimTrailingBr(rootNode) {
|
42
|
+
var brNode1, brNode2;
|
43
|
+
|
44
|
+
function isBr(node) {
|
45
|
+
return node && node.name === 'br';
|
46
|
+
}
|
47
|
+
|
48
|
+
brNode1 = rootNode.lastChild;
|
49
|
+
if (isBr(brNode1)) {
|
50
|
+
brNode2 = brNode1.prev;
|
51
|
+
|
52
|
+
if (isBr(brNode2)) {
|
53
|
+
brNode1.remove();
|
54
|
+
brNode2.remove();
|
55
|
+
}
|
56
|
+
}
|
57
|
+
}
|
58
|
+
|
59
|
+
/**
|
60
|
+
* Constructs a new DOM serializer class.
|
61
|
+
*
|
62
|
+
* @constructor
|
63
|
+
* @method Serializer
|
64
|
+
* @param {Object} settings Serializer settings object.
|
65
|
+
* @param {tinymce.Editor} editor Optional editor to bind events to and get schema/dom from.
|
66
|
+
*/
|
67
|
+
return function(settings, editor) {
|
68
|
+
var dom, schema, htmlParser;
|
69
|
+
|
70
|
+
if (editor) {
|
71
|
+
dom = editor.dom;
|
72
|
+
schema = editor.schema;
|
73
|
+
}
|
74
|
+
|
75
|
+
function trimHtml(html) {
|
76
|
+
var trimContentRegExp = new RegExp([
|
77
|
+
'<span[^>]+data-mce-bogus[^>]+>[\u200B\uFEFF]+<\\/span>', // Trim bogus spans like caret containers
|
78
|
+
'\\s?(' + tempAttrs.join('|') + ')="[^"]+"' // Trim temporaty data-mce prefixed attributes like data-mce-selected
|
79
|
+
].join('|'), 'gi');
|
80
|
+
|
81
|
+
html = Zwsp.trim(html.replace(trimContentRegExp, ''));
|
82
|
+
|
83
|
+
return html;
|
84
|
+
}
|
85
|
+
|
86
|
+
/**
|
87
|
+
* Returns a trimmed version of the editor contents to be used for the undo level. This
|
88
|
+
* will remove any data-mce-bogus="all" marked elements since these are used for UI it will also
|
89
|
+
* remove the data-mce-selected attributes used for selection of objects and caret containers.
|
90
|
+
* It will keep all data-mce-bogus="1" elements since these can be used to place the caret etc and will
|
91
|
+
* be removed by the serialization logic when you save.
|
92
|
+
*
|
93
|
+
* @private
|
94
|
+
* @return {String} HTML contents of the editor excluding some internal bogus elements.
|
95
|
+
*/
|
96
|
+
function getTrimmedContent() {
|
97
|
+
var content = editor.getBody().innerHTML;
|
98
|
+
var bogusAllRegExp = /<(\w+) [^>]*data-mce-bogus="all"[^>]*>/g;
|
99
|
+
var endTagIndex, index, matchLength, matches, shortEndedElements, schema = editor.schema;
|
100
|
+
|
101
|
+
content = trimHtml(content);
|
102
|
+
shortEndedElements = schema.getShortEndedElements();
|
103
|
+
|
104
|
+
// Remove all bogus elements marked with "all"
|
105
|
+
while ((matches = bogusAllRegExp.exec(content))) {
|
106
|
+
index = bogusAllRegExp.lastIndex;
|
107
|
+
matchLength = matches[0].length;
|
108
|
+
|
109
|
+
if (shortEndedElements[matches[1]]) {
|
110
|
+
endTagIndex = index;
|
111
|
+
} else {
|
112
|
+
endTagIndex = SaxParser.findEndTag(schema, content, index);
|
113
|
+
}
|
114
|
+
|
115
|
+
content = content.substring(0, index - matchLength) + content.substring(endTagIndex);
|
116
|
+
bogusAllRegExp.lastIndex = index - matchLength;
|
117
|
+
}
|
118
|
+
|
119
|
+
return trim(content);
|
120
|
+
}
|
121
|
+
|
122
|
+
function addTempAttr(name) {
|
123
|
+
if (Tools.inArray(tempAttrs, name) === -1) {
|
124
|
+
htmlParser.addAttributeFilter(name, function(nodes, name) {
|
125
|
+
var i = nodes.length;
|
126
|
+
|
127
|
+
while (i--) {
|
128
|
+
nodes[i].attr(name, null);
|
129
|
+
}
|
130
|
+
});
|
131
|
+
|
132
|
+
tempAttrs.push(name);
|
133
|
+
}
|
134
|
+
}
|
135
|
+
|
136
|
+
// Default DOM and Schema if they are undefined
|
137
|
+
dom = dom || DOM;
|
138
|
+
schema = schema || new Schema(settings);
|
139
|
+
settings.entity_encoding = settings.entity_encoding || 'named';
|
140
|
+
settings.remove_trailing_brs = "remove_trailing_brs" in settings ? settings.remove_trailing_brs : true;
|
141
|
+
|
142
|
+
htmlParser = new DomParser(settings, schema);
|
143
|
+
|
144
|
+
// Convert tabindex back to elements when serializing contents
|
145
|
+
htmlParser.addAttributeFilter('data-mce-tabindex', function(nodes, name) {
|
146
|
+
var i = nodes.length, node;
|
147
|
+
|
148
|
+
while (i--) {
|
149
|
+
node = nodes[i];
|
150
|
+
node.attr('tabindex', node.attributes.map['data-mce-tabindex']);
|
151
|
+
node.attr(name, null);
|
152
|
+
}
|
153
|
+
});
|
154
|
+
|
155
|
+
// Convert move data-mce-src, data-mce-href and data-mce-style into nodes or process them if needed
|
156
|
+
htmlParser.addAttributeFilter('src,href,style', function(nodes, name) {
|
157
|
+
var i = nodes.length, node, value, internalName = 'data-mce-' + name;
|
158
|
+
var urlConverter = settings.url_converter, urlConverterScope = settings.url_converter_scope, undef;
|
159
|
+
|
160
|
+
while (i--) {
|
161
|
+
node = nodes[i];
|
162
|
+
|
163
|
+
value = node.attributes.map[internalName];
|
164
|
+
if (value !== undef) {
|
165
|
+
// Set external name to internal value and remove internal
|
166
|
+
node.attr(name, value.length > 0 ? value : null);
|
167
|
+
node.attr(internalName, null);
|
168
|
+
} else {
|
169
|
+
// No internal attribute found then convert the value we have in the DOM
|
170
|
+
value = node.attributes.map[name];
|
171
|
+
|
172
|
+
if (name === "style") {
|
173
|
+
value = dom.serializeStyle(dom.parseStyle(value), node.name);
|
174
|
+
} else if (urlConverter) {
|
175
|
+
value = urlConverter.call(urlConverterScope, value, name, node.name);
|
176
|
+
}
|
177
|
+
|
178
|
+
node.attr(name, value.length > 0 ? value : null);
|
179
|
+
}
|
180
|
+
}
|
181
|
+
});
|
182
|
+
|
183
|
+
// Remove internal classes mceItem<..> or mceSelected
|
184
|
+
htmlParser.addAttributeFilter('class', function(nodes) {
|
185
|
+
var i = nodes.length, node, value;
|
186
|
+
|
187
|
+
while (i--) {
|
188
|
+
node = nodes[i];
|
189
|
+
value = node.attr('class');
|
190
|
+
|
191
|
+
if (value) {
|
192
|
+
value = node.attr('class').replace(/(?:^|\s)mce-item-\w+(?!\S)/g, '');
|
193
|
+
node.attr('class', value.length > 0 ? value : null);
|
194
|
+
}
|
195
|
+
}
|
196
|
+
});
|
197
|
+
|
198
|
+
// Remove bookmark elements
|
199
|
+
htmlParser.addAttributeFilter('data-mce-type', function(nodes, name, args) {
|
200
|
+
var i = nodes.length, node;
|
201
|
+
|
202
|
+
while (i--) {
|
203
|
+
node = nodes[i];
|
204
|
+
|
205
|
+
if (node.attributes.map['data-mce-type'] === 'bookmark' && !args.cleanup) {
|
206
|
+
node.remove();
|
207
|
+
}
|
208
|
+
}
|
209
|
+
});
|
210
|
+
|
211
|
+
htmlParser.addNodeFilter('noscript', function(nodes) {
|
212
|
+
var i = nodes.length, node;
|
213
|
+
|
214
|
+
while (i--) {
|
215
|
+
node = nodes[i].firstChild;
|
216
|
+
|
217
|
+
if (node) {
|
218
|
+
node.value = Entities.decode(node.value);
|
219
|
+
}
|
220
|
+
}
|
221
|
+
});
|
222
|
+
|
223
|
+
// Force script into CDATA sections and remove the mce- prefix also add comments around styles
|
224
|
+
htmlParser.addNodeFilter('script,style', function(nodes, name) {
|
225
|
+
var i = nodes.length, node, value, type;
|
226
|
+
|
227
|
+
function trim(value) {
|
228
|
+
/*jshint maxlen:255 */
|
229
|
+
/*eslint max-len:0 */
|
230
|
+
return value.replace(/(<!--\[CDATA\[|\]\]-->)/g, '\n')
|
231
|
+
.replace(/^[\r\n]*|[\r\n]*$/g, '')
|
232
|
+
.replace(/^\s*((<!--)?(\s*\/\/)?\s*<!\[CDATA\[|(<!--\s*)?\/\*\s*<!\[CDATA\[\s*\*\/|(\/\/)?\s*<!--|\/\*\s*<!--\s*\*\/)\s*[\r\n]*/gi, '')
|
233
|
+
.replace(/\s*(\/\*\s*\]\]>\s*\*\/(-->)?|\s*\/\/\s*\]\]>(-->)?|\/\/\s*(-->)?|\]\]>|\/\*\s*-->\s*\*\/|\s*-->\s*)\s*$/g, '');
|
234
|
+
}
|
235
|
+
|
236
|
+
while (i--) {
|
237
|
+
node = nodes[i];
|
238
|
+
value = node.firstChild ? node.firstChild.value : '';
|
239
|
+
|
240
|
+
if (name === "script") {
|
241
|
+
// Remove mce- prefix from script elements and remove default type since the user specified
|
242
|
+
// a script element without type attribute
|
243
|
+
type = node.attr('type');
|
244
|
+
if (type) {
|
245
|
+
node.attr('type', type == 'mce-no/type' ? null : type.replace(/^mce\-/, ''));
|
246
|
+
}
|
247
|
+
|
248
|
+
if (value.length > 0) {
|
249
|
+
node.firstChild.value = '// <![CDATA[\n' + trim(value) + '\n// ]]>';
|
250
|
+
}
|
251
|
+
} else {
|
252
|
+
if (value.length > 0) {
|
253
|
+
node.firstChild.value = '<!--\n' + trim(value) + '\n-->';
|
254
|
+
}
|
255
|
+
}
|
256
|
+
}
|
257
|
+
});
|
258
|
+
|
259
|
+
// Convert comments to cdata and handle protected comments
|
260
|
+
htmlParser.addNodeFilter('#comment', function(nodes) {
|
261
|
+
var i = nodes.length, node;
|
262
|
+
|
263
|
+
while (i--) {
|
264
|
+
node = nodes[i];
|
265
|
+
|
266
|
+
if (node.value.indexOf('[CDATA[') === 0) {
|
267
|
+
node.name = '#cdata';
|
268
|
+
node.type = 4;
|
269
|
+
node.value = node.value.replace(/^\[CDATA\[|\]\]$/g, '');
|
270
|
+
} else if (node.value.indexOf('mce:protected ') === 0) {
|
271
|
+
node.name = "#text";
|
272
|
+
node.type = 3;
|
273
|
+
node.raw = true;
|
274
|
+
node.value = unescape(node.value).substr(14);
|
275
|
+
}
|
276
|
+
}
|
277
|
+
});
|
278
|
+
|
279
|
+
htmlParser.addNodeFilter('xml:namespace,input', function(nodes, name) {
|
280
|
+
var i = nodes.length, node;
|
281
|
+
|
282
|
+
while (i--) {
|
283
|
+
node = nodes[i];
|
284
|
+
if (node.type === 7) {
|
285
|
+
node.remove();
|
286
|
+
} else if (node.type === 1) {
|
287
|
+
if (name === "input" && !("type" in node.attributes.map)) {
|
288
|
+
node.attr('type', 'text');
|
289
|
+
}
|
290
|
+
}
|
291
|
+
}
|
292
|
+
});
|
293
|
+
|
294
|
+
// Fix list elements, TODO: Replace this later
|
295
|
+
if (settings.fix_list_elements) {
|
296
|
+
htmlParser.addNodeFilter('ul,ol', function(nodes) {
|
297
|
+
var i = nodes.length, node, parentNode;
|
298
|
+
|
299
|
+
while (i--) {
|
300
|
+
node = nodes[i];
|
301
|
+
parentNode = node.parent;
|
302
|
+
|
303
|
+
if (parentNode.name === 'ul' || parentNode.name === 'ol') {
|
304
|
+
if (node.prev && node.prev.name === 'li') {
|
305
|
+
node.prev.append(node);
|
306
|
+
}
|
307
|
+
}
|
308
|
+
}
|
309
|
+
});
|
310
|
+
}
|
311
|
+
|
312
|
+
// Remove internal data attributes
|
313
|
+
htmlParser.addAttributeFilter(
|
314
|
+
'data-mce-src,data-mce-href,data-mce-style,' +
|
315
|
+
'data-mce-selected,data-mce-expando,' +
|
316
|
+
'data-mce-type,data-mce-resize',
|
317
|
+
|
318
|
+
function(nodes, name) {
|
319
|
+
var i = nodes.length;
|
320
|
+
|
321
|
+
while (i--) {
|
322
|
+
nodes[i].attr(name, null);
|
323
|
+
}
|
324
|
+
}
|
325
|
+
);
|
326
|
+
|
327
|
+
// Return public methods
|
328
|
+
return {
|
329
|
+
/**
|
330
|
+
* Schema instance that was used to when the Serializer was constructed.
|
331
|
+
*
|
332
|
+
* @field {tinymce.html.Schema} schema
|
333
|
+
*/
|
334
|
+
schema: schema,
|
335
|
+
|
336
|
+
/**
|
337
|
+
* Adds a node filter function to the parser used by the serializer, the parser will collect the specified nodes by name
|
338
|
+
* and then execute the callback ones it has finished parsing the document.
|
339
|
+
*
|
340
|
+
* @example
|
341
|
+
* parser.addNodeFilter('p,h1', function(nodes, name) {
|
342
|
+
* for (var i = 0; i < nodes.length; i++) {
|
343
|
+
* console.log(nodes[i].name);
|
344
|
+
* }
|
345
|
+
* });
|
346
|
+
* @method addNodeFilter
|
347
|
+
* @method {String} name Comma separated list of nodes to collect.
|
348
|
+
* @param {function} callback Callback function to execute once it has collected nodes.
|
349
|
+
*/
|
350
|
+
addNodeFilter: htmlParser.addNodeFilter,
|
351
|
+
|
352
|
+
/**
|
353
|
+
* Adds a attribute filter function to the parser used by the serializer, the parser will
|
354
|
+
* collect nodes that has the specified attributes
|
355
|
+
* and then execute the callback ones it has finished parsing the document.
|
356
|
+
*
|
357
|
+
* @example
|
358
|
+
* parser.addAttributeFilter('src,href', function(nodes, name) {
|
359
|
+
* for (var i = 0; i < nodes.length; i++) {
|
360
|
+
* console.log(nodes[i].name);
|
361
|
+
* }
|
362
|
+
* });
|
363
|
+
* @method addAttributeFilter
|
364
|
+
* @method {String} name Comma separated list of nodes to collect.
|
365
|
+
* @param {function} callback Callback function to execute once it has collected nodes.
|
366
|
+
*/
|
367
|
+
addAttributeFilter: htmlParser.addAttributeFilter,
|
368
|
+
|
369
|
+
/**
|
370
|
+
* Serializes the specified browser DOM node into a HTML string.
|
371
|
+
*
|
372
|
+
* @method serialize
|
373
|
+
* @param {DOMNode} node DOM node to serialize.
|
374
|
+
* @param {Object} args Arguments option that gets passed to event handlers.
|
375
|
+
*/
|
376
|
+
serialize: function(node, args) {
|
377
|
+
var self = this, impl, doc, oldDoc, htmlSerializer, content, rootNode;
|
378
|
+
|
379
|
+
// Explorer won't clone contents of script and style and the
|
380
|
+
// selected index of select elements are cleared on a clone operation.
|
381
|
+
if (Env.ie && dom.select('script,style,select,map').length > 0) {
|
382
|
+
content = node.innerHTML;
|
383
|
+
node = node.cloneNode(false);
|
384
|
+
dom.setHTML(node, content);
|
385
|
+
} else {
|
386
|
+
node = node.cloneNode(true);
|
387
|
+
}
|
388
|
+
|
389
|
+
// Nodes needs to be attached to something in WebKit/Opera
|
390
|
+
// This fix will make DOM ranges and make Sizzle happy!
|
391
|
+
impl = node.ownerDocument.implementation;
|
392
|
+
if (impl.createHTMLDocument) {
|
393
|
+
// Create an empty HTML document
|
394
|
+
doc = impl.createHTMLDocument("");
|
395
|
+
|
396
|
+
// Add the element or it's children if it's a body element to the new document
|
397
|
+
each(node.nodeName == 'BODY' ? node.childNodes : [node], function(node) {
|
398
|
+
doc.body.appendChild(doc.importNode(node, true));
|
399
|
+
});
|
400
|
+
|
401
|
+
// Grab first child or body element for serialization
|
402
|
+
if (node.nodeName != 'BODY') {
|
403
|
+
node = doc.body.firstChild;
|
404
|
+
} else {
|
405
|
+
node = doc.body;
|
406
|
+
}
|
407
|
+
|
408
|
+
// set the new document in DOMUtils so createElement etc works
|
409
|
+
oldDoc = dom.doc;
|
410
|
+
dom.doc = doc;
|
411
|
+
}
|
412
|
+
|
413
|
+
args = args || {};
|
414
|
+
args.format = args.format || 'html';
|
415
|
+
|
416
|
+
// Don't wrap content if we want selected html
|
417
|
+
if (args.selection) {
|
418
|
+
args.forced_root_block = '';
|
419
|
+
}
|
420
|
+
|
421
|
+
// Pre process
|
422
|
+
if (!args.no_events) {
|
423
|
+
args.node = node;
|
424
|
+
self.onPreProcess(args);
|
425
|
+
}
|
426
|
+
|
427
|
+
// Parse HTML
|
428
|
+
rootNode = htmlParser.parse(trim(args.getInner ? node.innerHTML : dom.getOuterHTML(node)), args);
|
429
|
+
trimTrailingBr(rootNode);
|
430
|
+
|
431
|
+
// Serialize HTML
|
432
|
+
htmlSerializer = new Serializer(settings, schema);
|
433
|
+
args.content = htmlSerializer.serialize(rootNode);
|
434
|
+
|
435
|
+
// Replace all BOM characters for now until we can find a better solution
|
436
|
+
if (!args.cleanup) {
|
437
|
+
args.content = Zwsp.trim(args.content);
|
438
|
+
args.content = args.content.replace(/\uFEFF/g, '');
|
439
|
+
}
|
440
|
+
|
441
|
+
// Post process
|
442
|
+
if (!args.no_events) {
|
443
|
+
self.onPostProcess(args);
|
444
|
+
}
|
445
|
+
|
446
|
+
// Restore the old document if it was changed
|
447
|
+
if (oldDoc) {
|
448
|
+
dom.doc = oldDoc;
|
449
|
+
}
|
450
|
+
|
451
|
+
args.node = null;
|
452
|
+
|
453
|
+
return args.content;
|
454
|
+
},
|
455
|
+
|
456
|
+
/**
|
457
|
+
* Adds valid elements rules to the serializers schema instance this enables you to specify things
|
458
|
+
* like what elements should be outputted and what attributes specific elements might have.
|
459
|
+
* Consult the Wiki for more details on this format.
|
460
|
+
*
|
461
|
+
* @method addRules
|
462
|
+
* @param {String} rules Valid elements rules string to add to schema.
|
463
|
+
*/
|
464
|
+
addRules: function(rules) {
|
465
|
+
schema.addValidElements(rules);
|
466
|
+
},
|
467
|
+
|
468
|
+
/**
|
469
|
+
* Sets the valid elements rules to the serializers schema instance this enables you to specify things
|
470
|
+
* like what elements should be outputted and what attributes specific elements might have.
|
471
|
+
* Consult the Wiki for more details on this format.
|
472
|
+
*
|
473
|
+
* @method setRules
|
474
|
+
* @param {String} rules Valid elements rules string.
|
475
|
+
*/
|
476
|
+
setRules: function(rules) {
|
477
|
+
schema.setValidElements(rules);
|
478
|
+
},
|
479
|
+
|
480
|
+
onPreProcess: function(args) {
|
481
|
+
if (editor) {
|
482
|
+
editor.fire('PreProcess', args);
|
483
|
+
}
|
484
|
+
},
|
485
|
+
|
486
|
+
onPostProcess: function(args) {
|
487
|
+
if (editor) {
|
488
|
+
editor.fire('PostProcess', args);
|
489
|
+
}
|
490
|
+
},
|
491
|
+
|
492
|
+
/**
|
493
|
+
* Adds a temporary internal attribute these attributes will get removed on undo and
|
494
|
+
* when getting contents out of the editor.
|
495
|
+
*
|
496
|
+
* @method addTempAttr
|
497
|
+
* @param {String} name string
|
498
|
+
*/
|
499
|
+
addTempAttr: addTempAttr,
|
500
|
+
|
501
|
+
// Internal
|
502
|
+
trimHtml: trimHtml,
|
503
|
+
getTrimmedContent: getTrimmedContent
|
504
|
+
};
|
505
|
+
};
|
506
|
+
});
|