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,199 @@
|
|
1
|
+
/**
|
2
|
+
* Writer.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 write HTML tags out it can be used with the Serializer or the SaxParser.
|
13
|
+
*
|
14
|
+
* @class tinymce.html.Writer
|
15
|
+
* @example
|
16
|
+
* var writer = new tinymce.html.Writer({indent: true});
|
17
|
+
* var parser = new tinymce.html.SaxParser(writer).parse('<p><br></p>');
|
18
|
+
* console.log(writer.getContent());
|
19
|
+
*
|
20
|
+
* @class tinymce.html.Writer
|
21
|
+
* @version 3.4
|
22
|
+
*/
|
23
|
+
define("tinymce/html/Writer", [
|
24
|
+
"tinymce/html/Entities",
|
25
|
+
"tinymce/util/Tools"
|
26
|
+
], function(Entities, Tools) {
|
27
|
+
var makeMap = Tools.makeMap;
|
28
|
+
|
29
|
+
/**
|
30
|
+
* Constructs a new Writer instance.
|
31
|
+
*
|
32
|
+
* @constructor
|
33
|
+
* @method Writer
|
34
|
+
* @param {Object} settings Name/value settings object.
|
35
|
+
*/
|
36
|
+
return function(settings) {
|
37
|
+
var html = [], indent, indentBefore, indentAfter, encode, htmlOutput;
|
38
|
+
|
39
|
+
settings = settings || {};
|
40
|
+
indent = settings.indent;
|
41
|
+
indentBefore = makeMap(settings.indent_before || '');
|
42
|
+
indentAfter = makeMap(settings.indent_after || '');
|
43
|
+
encode = Entities.getEncodeFunc(settings.entity_encoding || 'raw', settings.entities);
|
44
|
+
htmlOutput = settings.element_format == "html";
|
45
|
+
|
46
|
+
return {
|
47
|
+
/**
|
48
|
+
* Writes the a start element such as <p id="a">.
|
49
|
+
*
|
50
|
+
* @method start
|
51
|
+
* @param {String} name Name of the element.
|
52
|
+
* @param {Array} attrs Optional attribute array or undefined if it hasn't any.
|
53
|
+
* @param {Boolean} empty Optional empty state if the tag should end like <br />.
|
54
|
+
*/
|
55
|
+
start: function(name, attrs, empty) {
|
56
|
+
var i, l, attr, value;
|
57
|
+
|
58
|
+
if (indent && indentBefore[name] && html.length > 0) {
|
59
|
+
value = html[html.length - 1];
|
60
|
+
|
61
|
+
if (value.length > 0 && value !== '\n') {
|
62
|
+
html.push('\n');
|
63
|
+
}
|
64
|
+
}
|
65
|
+
|
66
|
+
html.push('<', name);
|
67
|
+
|
68
|
+
if (attrs) {
|
69
|
+
for (i = 0, l = attrs.length; i < l; i++) {
|
70
|
+
attr = attrs[i];
|
71
|
+
html.push(' ', attr.name, '="', encode(attr.value, true), '"');
|
72
|
+
}
|
73
|
+
}
|
74
|
+
|
75
|
+
if (!empty || htmlOutput) {
|
76
|
+
html[html.length] = '>';
|
77
|
+
} else {
|
78
|
+
html[html.length] = ' />';
|
79
|
+
}
|
80
|
+
|
81
|
+
if (empty && indent && indentAfter[name] && html.length > 0) {
|
82
|
+
value = html[html.length - 1];
|
83
|
+
|
84
|
+
if (value.length > 0 && value !== '\n') {
|
85
|
+
html.push('\n');
|
86
|
+
}
|
87
|
+
}
|
88
|
+
},
|
89
|
+
|
90
|
+
/**
|
91
|
+
* Writes the a end element such as </p>.
|
92
|
+
*
|
93
|
+
* @method end
|
94
|
+
* @param {String} name Name of the element.
|
95
|
+
*/
|
96
|
+
end: function(name) {
|
97
|
+
var value;
|
98
|
+
|
99
|
+
/*if (indent && indentBefore[name] && html.length > 0) {
|
100
|
+
value = html[html.length - 1];
|
101
|
+
|
102
|
+
if (value.length > 0 && value !== '\n')
|
103
|
+
html.push('\n');
|
104
|
+
}*/
|
105
|
+
|
106
|
+
html.push('</', name, '>');
|
107
|
+
|
108
|
+
if (indent && indentAfter[name] && html.length > 0) {
|
109
|
+
value = html[html.length - 1];
|
110
|
+
|
111
|
+
if (value.length > 0 && value !== '\n') {
|
112
|
+
html.push('\n');
|
113
|
+
}
|
114
|
+
}
|
115
|
+
},
|
116
|
+
|
117
|
+
/**
|
118
|
+
* Writes a text node.
|
119
|
+
*
|
120
|
+
* @method text
|
121
|
+
* @param {String} text String to write out.
|
122
|
+
* @param {Boolean} raw Optional raw state if true the contents wont get encoded.
|
123
|
+
*/
|
124
|
+
text: function(text, raw) {
|
125
|
+
if (text.length > 0) {
|
126
|
+
html[html.length] = raw ? text : encode(text);
|
127
|
+
}
|
128
|
+
},
|
129
|
+
|
130
|
+
/**
|
131
|
+
* Writes a cdata node such as <![CDATA[data]]>.
|
132
|
+
*
|
133
|
+
* @method cdata
|
134
|
+
* @param {String} text String to write out inside the cdata.
|
135
|
+
*/
|
136
|
+
cdata: function(text) {
|
137
|
+
html.push('<![CDATA[', text, ']]>');
|
138
|
+
},
|
139
|
+
|
140
|
+
/**
|
141
|
+
* Writes a comment node such as <!-- Comment -->.
|
142
|
+
*
|
143
|
+
* @method cdata
|
144
|
+
* @param {String} text String to write out inside the comment.
|
145
|
+
*/
|
146
|
+
comment: function(text) {
|
147
|
+
html.push('<!--', text, '-->');
|
148
|
+
},
|
149
|
+
|
150
|
+
/**
|
151
|
+
* Writes a PI node such as <?xml attr="value" ?>.
|
152
|
+
*
|
153
|
+
* @method pi
|
154
|
+
* @param {String} name Name of the pi.
|
155
|
+
* @param {String} text String to write out inside the pi.
|
156
|
+
*/
|
157
|
+
pi: function(name, text) {
|
158
|
+
if (text) {
|
159
|
+
html.push('<?', name, ' ', encode(text), '?>');
|
160
|
+
} else {
|
161
|
+
html.push('<?', name, '?>');
|
162
|
+
}
|
163
|
+
|
164
|
+
if (indent) {
|
165
|
+
html.push('\n');
|
166
|
+
}
|
167
|
+
},
|
168
|
+
|
169
|
+
/**
|
170
|
+
* Writes a doctype node such as <!DOCTYPE data>.
|
171
|
+
*
|
172
|
+
* @method doctype
|
173
|
+
* @param {String} text String to write out inside the doctype.
|
174
|
+
*/
|
175
|
+
doctype: function(text) {
|
176
|
+
html.push('<!DOCTYPE', text, '>', indent ? '\n' : '');
|
177
|
+
},
|
178
|
+
|
179
|
+
/**
|
180
|
+
* Resets the internal buffer if one wants to reuse the writer.
|
181
|
+
*
|
182
|
+
* @method reset
|
183
|
+
*/
|
184
|
+
reset: function() {
|
185
|
+
html.length = 0;
|
186
|
+
},
|
187
|
+
|
188
|
+
/**
|
189
|
+
* Returns the contents that got serialized.
|
190
|
+
*
|
191
|
+
* @method getContent
|
192
|
+
* @return {String} HTML contents that got written down.
|
193
|
+
*/
|
194
|
+
getContent: function() {
|
195
|
+
return html.join('').replace(/\n$/, '');
|
196
|
+
}
|
197
|
+
};
|
198
|
+
};
|
199
|
+
});
|
@@ -0,0 +1,377 @@
|
|
1
|
+
/**
|
2
|
+
* jquery.tinymce.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
|
+
/*global tinymce:true, jQuery */
|
12
|
+
|
13
|
+
(function($) {
|
14
|
+
var undef,
|
15
|
+
lazyLoading,
|
16
|
+
patchApplied,
|
17
|
+
delayedInits = [],
|
18
|
+
win = window;
|
19
|
+
|
20
|
+
$.fn.tinymce = function(settings) {
|
21
|
+
var self = this, url, base, lang, suffix = "";
|
22
|
+
|
23
|
+
// No match then just ignore the call
|
24
|
+
if (!self.length) {
|
25
|
+
return self;
|
26
|
+
}
|
27
|
+
|
28
|
+
// Get editor instance
|
29
|
+
if (!settings) {
|
30
|
+
return window.tinymce ? tinymce.get(self[0].id) : null;
|
31
|
+
}
|
32
|
+
|
33
|
+
self.css('visibility', 'hidden'); // Hide textarea to avoid flicker
|
34
|
+
|
35
|
+
function init() {
|
36
|
+
var editors = [], initCount = 0;
|
37
|
+
|
38
|
+
// Apply patches to the jQuery object, only once
|
39
|
+
if (!patchApplied) {
|
40
|
+
applyPatch();
|
41
|
+
patchApplied = true;
|
42
|
+
}
|
43
|
+
|
44
|
+
// Create an editor instance for each matched node
|
45
|
+
self.each(function(i, node) {
|
46
|
+
var ed, id = node.id, oninit = settings.oninit;
|
47
|
+
|
48
|
+
// Generate unique id for target element if needed
|
49
|
+
if (!id) {
|
50
|
+
node.id = id = tinymce.DOM.uniqueId();
|
51
|
+
}
|
52
|
+
|
53
|
+
// Only init the editor once
|
54
|
+
if (tinymce.get(id)) {
|
55
|
+
return;
|
56
|
+
}
|
57
|
+
|
58
|
+
// Create editor instance and render it
|
59
|
+
ed = new tinymce.Editor(id, settings, tinymce.EditorManager);
|
60
|
+
editors.push(ed);
|
61
|
+
|
62
|
+
ed.on('init', function() {
|
63
|
+
var scope, func = oninit;
|
64
|
+
|
65
|
+
self.css('visibility', '');
|
66
|
+
|
67
|
+
// Run this if the oninit setting is defined
|
68
|
+
// this logic will fire the oninit callback ones each
|
69
|
+
// matched editor instance is initialized
|
70
|
+
if (oninit) {
|
71
|
+
// Fire the oninit event ones each editor instance is initialized
|
72
|
+
if (++initCount == editors.length) {
|
73
|
+
if (typeof func === "string") {
|
74
|
+
scope = (func.indexOf(".") === -1) ? null : tinymce.resolve(func.replace(/\.\w+$/, ""));
|
75
|
+
func = tinymce.resolve(func);
|
76
|
+
}
|
77
|
+
|
78
|
+
// Call the oninit function with the object
|
79
|
+
func.apply(scope || tinymce, editors);
|
80
|
+
}
|
81
|
+
}
|
82
|
+
});
|
83
|
+
});
|
84
|
+
|
85
|
+
// Render the editor instances in a separate loop since we
|
86
|
+
// need to have the full editors array used in the onInit calls
|
87
|
+
$.each(editors, function(i, ed) {
|
88
|
+
ed.render();
|
89
|
+
});
|
90
|
+
}
|
91
|
+
|
92
|
+
// Load TinyMCE on demand, if we need to
|
93
|
+
if (!win.tinymce && !lazyLoading && (url = settings.script_url)) {
|
94
|
+
lazyLoading = 1;
|
95
|
+
base = url.substring(0, url.lastIndexOf("/"));
|
96
|
+
|
97
|
+
// Check if it's a dev/src version they want to load then
|
98
|
+
// make sure that all plugins, themes etc are loaded in source mode as well
|
99
|
+
if (url.indexOf('.min') != -1) {
|
100
|
+
suffix = ".min";
|
101
|
+
}
|
102
|
+
|
103
|
+
// Setup tinyMCEPreInit object this will later be used by the TinyMCE
|
104
|
+
// core script to locate other resources like CSS files, dialogs etc
|
105
|
+
// You can also predefined a tinyMCEPreInit object and then it will use that instead
|
106
|
+
win.tinymce = win.tinyMCEPreInit || {
|
107
|
+
base: base,
|
108
|
+
suffix: suffix
|
109
|
+
};
|
110
|
+
|
111
|
+
// url contains gzip then we assume it's a compressor
|
112
|
+
if (url.indexOf('gzip') != -1) {
|
113
|
+
lang = settings.language || "en";
|
114
|
+
url = url + (/\?/.test(url) ? '&' : '?') + "js=true&core=true&suffix=" + escape(suffix) +
|
115
|
+
"&themes=" + escape(settings.theme || 'modern') + "&plugins=" +
|
116
|
+
escape(settings.plugins || '') + "&languages=" + (lang || '');
|
117
|
+
|
118
|
+
// Check if compressor script is already loaded otherwise setup a basic one
|
119
|
+
if (!win.tinyMCE_GZ) {
|
120
|
+
win.tinyMCE_GZ = {
|
121
|
+
start: function() {
|
122
|
+
function load(url) {
|
123
|
+
tinymce.ScriptLoader.markDone(tinymce.baseURI.toAbsolute(url));
|
124
|
+
}
|
125
|
+
|
126
|
+
// Add core languages
|
127
|
+
load("langs/" + lang + ".js");
|
128
|
+
|
129
|
+
// Add themes with languages
|
130
|
+
load("themes/" + settings.theme + "/theme" + suffix + ".js");
|
131
|
+
load("themes/" + settings.theme + "/langs/" + lang + ".js");
|
132
|
+
|
133
|
+
// Add plugins with languages
|
134
|
+
$.each(settings.plugins.split(","), function(i, name) {
|
135
|
+
if (name) {
|
136
|
+
load("plugins/" + name + "/plugin" + suffix + ".js");
|
137
|
+
load("plugins/" + name + "/langs/" + lang + ".js");
|
138
|
+
}
|
139
|
+
});
|
140
|
+
},
|
141
|
+
|
142
|
+
end: function() {
|
143
|
+
}
|
144
|
+
};
|
145
|
+
}
|
146
|
+
}
|
147
|
+
|
148
|
+
var script = document.createElement('script');
|
149
|
+
script.type = 'text/javascript';
|
150
|
+
script.onload = script.onreadystatechange = function(e) {
|
151
|
+
e = e || window.event;
|
152
|
+
|
153
|
+
if (lazyLoading !== 2 && (e.type == 'load' || /complete|loaded/.test(script.readyState))) {
|
154
|
+
tinymce.dom.Event.domLoaded = 1;
|
155
|
+
lazyLoading = 2;
|
156
|
+
|
157
|
+
// Execute callback after mainscript has been loaded and before the initialization occurs
|
158
|
+
if (settings.script_loaded) {
|
159
|
+
settings.script_loaded();
|
160
|
+
}
|
161
|
+
|
162
|
+
init();
|
163
|
+
|
164
|
+
$.each(delayedInits, function(i, init) {
|
165
|
+
init();
|
166
|
+
});
|
167
|
+
}
|
168
|
+
};
|
169
|
+
script.src = url;
|
170
|
+
document.body.appendChild(script);
|
171
|
+
} else {
|
172
|
+
// Delay the init call until tinymce is loaded
|
173
|
+
if (lazyLoading === 1) {
|
174
|
+
delayedInits.push(init);
|
175
|
+
} else {
|
176
|
+
init();
|
177
|
+
}
|
178
|
+
}
|
179
|
+
|
180
|
+
return self;
|
181
|
+
};
|
182
|
+
|
183
|
+
// Add :tinymce pseudo selector this will select elements that has been converted into editor instances
|
184
|
+
// it's now possible to use things like $('*:tinymce') to get all TinyMCE bound elements.
|
185
|
+
$.extend($.expr[":"], {
|
186
|
+
tinymce: function(e) {
|
187
|
+
var editor;
|
188
|
+
|
189
|
+
if (e.id && "tinymce" in window) {
|
190
|
+
editor = tinymce.get(e.id);
|
191
|
+
|
192
|
+
if (editor && editor.editorManager === tinymce) {
|
193
|
+
return true;
|
194
|
+
}
|
195
|
+
}
|
196
|
+
|
197
|
+
return false;
|
198
|
+
}
|
199
|
+
});
|
200
|
+
|
201
|
+
// This function patches internal jQuery functions so that if
|
202
|
+
// you for example remove an div element containing an editor it's
|
203
|
+
// automatically destroyed by the TinyMCE API
|
204
|
+
function applyPatch() {
|
205
|
+
// Removes any child editor instances by looking for editor wrapper elements
|
206
|
+
function removeEditors(name) {
|
207
|
+
// If the function is remove
|
208
|
+
if (name === "remove") {
|
209
|
+
this.each(function(i, node) {
|
210
|
+
var ed = tinyMCEInstance(node);
|
211
|
+
|
212
|
+
if (ed) {
|
213
|
+
ed.remove();
|
214
|
+
}
|
215
|
+
});
|
216
|
+
}
|
217
|
+
|
218
|
+
this.find("span.mceEditor,div.mceEditor").each(function(i, node) {
|
219
|
+
var ed = tinymce.get(node.id.replace(/_parent$/, ""));
|
220
|
+
|
221
|
+
if (ed) {
|
222
|
+
ed.remove();
|
223
|
+
}
|
224
|
+
});
|
225
|
+
}
|
226
|
+
|
227
|
+
// Loads or saves contents from/to textarea if the value
|
228
|
+
// argument is defined it will set the TinyMCE internal contents
|
229
|
+
function loadOrSave(value) {
|
230
|
+
var self = this, ed;
|
231
|
+
|
232
|
+
// Handle set value
|
233
|
+
/*jshint eqnull:true */
|
234
|
+
if (value != null) {
|
235
|
+
removeEditors.call(self);
|
236
|
+
|
237
|
+
// Saves the contents before get/set value of textarea/div
|
238
|
+
self.each(function(i, node) {
|
239
|
+
var ed;
|
240
|
+
|
241
|
+
if ((ed = tinymce.get(node.id))) {
|
242
|
+
ed.setContent(value);
|
243
|
+
}
|
244
|
+
});
|
245
|
+
} else if (self.length > 0) {
|
246
|
+
// Handle get value
|
247
|
+
if ((ed = tinymce.get(self[0].id))) {
|
248
|
+
return ed.getContent();
|
249
|
+
}
|
250
|
+
}
|
251
|
+
}
|
252
|
+
|
253
|
+
// Returns tinymce instance for the specified element or null if it wasn't found
|
254
|
+
function tinyMCEInstance(element) {
|
255
|
+
var ed = null;
|
256
|
+
|
257
|
+
if (element && element.id && win.tinymce) {
|
258
|
+
ed = tinymce.get(element.id);
|
259
|
+
}
|
260
|
+
|
261
|
+
return ed;
|
262
|
+
}
|
263
|
+
|
264
|
+
// Checks if the specified set contains tinymce instances
|
265
|
+
function containsTinyMCE(matchedSet) {
|
266
|
+
return !!((matchedSet) && (matchedSet.length) && (win.tinymce) && (matchedSet.is(":tinymce")));
|
267
|
+
}
|
268
|
+
|
269
|
+
// Patch various jQuery functions
|
270
|
+
var jQueryFn = {};
|
271
|
+
|
272
|
+
// Patch some setter/getter functions these will
|
273
|
+
// now be able to set/get the contents of editor instances for
|
274
|
+
// example $('#editorid').html('Content'); will update the TinyMCE iframe instance
|
275
|
+
$.each(["text", "html", "val"], function(i, name) {
|
276
|
+
var origFn = jQueryFn[name] = $.fn[name],
|
277
|
+
textProc = (name === "text");
|
278
|
+
|
279
|
+
$.fn[name] = function(value) {
|
280
|
+
var self = this;
|
281
|
+
|
282
|
+
if (!containsTinyMCE(self)) {
|
283
|
+
return origFn.apply(self, arguments);
|
284
|
+
}
|
285
|
+
|
286
|
+
if (value !== undef) {
|
287
|
+
loadOrSave.call(self.filter(":tinymce"), value);
|
288
|
+
origFn.apply(self.not(":tinymce"), arguments);
|
289
|
+
|
290
|
+
return self; // return original set for chaining
|
291
|
+
}
|
292
|
+
|
293
|
+
var ret = "";
|
294
|
+
var args = arguments;
|
295
|
+
|
296
|
+
(textProc ? self : self.eq(0)).each(function(i, node) {
|
297
|
+
var ed = tinyMCEInstance(node);
|
298
|
+
|
299
|
+
if (ed) {
|
300
|
+
ret += textProc ? ed.getContent().replace(/<(?:"[^"]*"|'[^']*'|[^'">])*>/g, "") : ed.getContent({save: true});
|
301
|
+
} else {
|
302
|
+
ret += origFn.apply($(node), args);
|
303
|
+
}
|
304
|
+
});
|
305
|
+
|
306
|
+
return ret;
|
307
|
+
};
|
308
|
+
});
|
309
|
+
|
310
|
+
// Makes it possible to use $('#id').append("content"); to append contents to the TinyMCE editor iframe
|
311
|
+
$.each(["append", "prepend"], function(i, name) {
|
312
|
+
var origFn = jQueryFn[name] = $.fn[name],
|
313
|
+
prepend = (name === "prepend");
|
314
|
+
|
315
|
+
$.fn[name] = function(value) {
|
316
|
+
var self = this;
|
317
|
+
|
318
|
+
if (!containsTinyMCE(self)) {
|
319
|
+
return origFn.apply(self, arguments);
|
320
|
+
}
|
321
|
+
|
322
|
+
if (value !== undef) {
|
323
|
+
if (typeof value === "string") {
|
324
|
+
self.filter(":tinymce").each(function(i, node) {
|
325
|
+
var ed = tinyMCEInstance(node);
|
326
|
+
|
327
|
+
if (ed) {
|
328
|
+
ed.setContent(prepend ? value + ed.getContent() : ed.getContent() + value);
|
329
|
+
}
|
330
|
+
});
|
331
|
+
}
|
332
|
+
|
333
|
+
origFn.apply(self.not(":tinymce"), arguments);
|
334
|
+
|
335
|
+
return self; // return original set for chaining
|
336
|
+
}
|
337
|
+
};
|
338
|
+
});
|
339
|
+
|
340
|
+
// Makes sure that the editor instance gets properly destroyed when the parent element is removed
|
341
|
+
$.each(["remove", "replaceWith", "replaceAll", "empty"], function(i, name) {
|
342
|
+
var origFn = jQueryFn[name] = $.fn[name];
|
343
|
+
|
344
|
+
$.fn[name] = function() {
|
345
|
+
removeEditors.call(this, name);
|
346
|
+
|
347
|
+
return origFn.apply(this, arguments);
|
348
|
+
};
|
349
|
+
});
|
350
|
+
|
351
|
+
jQueryFn.attr = $.fn.attr;
|
352
|
+
|
353
|
+
// Makes sure that $('#tinymce_id').attr('value') gets the editors current HTML contents
|
354
|
+
$.fn.attr = function(name, value) {
|
355
|
+
var self = this, args = arguments;
|
356
|
+
|
357
|
+
if ((!name) || (name !== "value") || (!containsTinyMCE(self))) {
|
358
|
+
if (value !== undef) {
|
359
|
+
return jQueryFn.attr.apply(self, args);
|
360
|
+
}
|
361
|
+
|
362
|
+
return jQueryFn.attr.apply(self, args);
|
363
|
+
}
|
364
|
+
|
365
|
+
if (value !== undef) {
|
366
|
+
loadOrSave.call(self.filter(":tinymce"), value);
|
367
|
+
jQueryFn.attr.apply(self.not(":tinymce"), args);
|
368
|
+
|
369
|
+
return self; // return original set for chaining
|
370
|
+
}
|
371
|
+
|
372
|
+
var node = self[0], ed = tinyMCEInstance(node);
|
373
|
+
|
374
|
+
return ed ? ed.getContent({save: true}) : jQueryFn.attr.apply($(node), args);
|
375
|
+
};
|
376
|
+
}
|
377
|
+
})(jQuery);
|