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,46 @@
|
|
1
|
+
/**
|
2
|
+
* FlowLayout.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 layout manager will place the controls by using the browsers native layout.
|
13
|
+
*
|
14
|
+
* @-x-less FlowLayout.less
|
15
|
+
* @class tinymce.ui.FlowLayout
|
16
|
+
* @extends tinymce.ui.Layout
|
17
|
+
*/
|
18
|
+
define("tinymce/ui/FlowLayout", [
|
19
|
+
"tinymce/ui/Layout"
|
20
|
+
], function(Layout) {
|
21
|
+
return Layout.extend({
|
22
|
+
Defaults: {
|
23
|
+
containerClass: 'flow-layout',
|
24
|
+
controlClass: 'flow-layout-item',
|
25
|
+
endClass: 'break'
|
26
|
+
},
|
27
|
+
|
28
|
+
/**
|
29
|
+
* Recalculates the positions of the controls in the specified container.
|
30
|
+
*
|
31
|
+
* @method recalc
|
32
|
+
* @param {tinymce.ui.Container} container Container instance to recalc.
|
33
|
+
*/
|
34
|
+
recalc: function(container) {
|
35
|
+
container.items().filter(':visible').each(function(ctrl) {
|
36
|
+
if (ctrl.recalc) {
|
37
|
+
ctrl.recalc();
|
38
|
+
}
|
39
|
+
});
|
40
|
+
},
|
41
|
+
|
42
|
+
isNative: function() {
|
43
|
+
return true;
|
44
|
+
}
|
45
|
+
});
|
46
|
+
});
|
@@ -0,0 +1,157 @@
|
|
1
|
+
/**
|
2
|
+
* Form.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 creates a form container. A form container has the ability
|
13
|
+
* to automatically wrap items in tinymce.ui.FormItem instances.
|
14
|
+
*
|
15
|
+
* Each FormItem instance is a container for the label and the item.
|
16
|
+
*
|
17
|
+
* @example
|
18
|
+
* tinymce.ui.Factory.create({
|
19
|
+
* type: 'form',
|
20
|
+
* items: [
|
21
|
+
* {type: 'textbox', label: 'My text box'}
|
22
|
+
* ]
|
23
|
+
* }).renderTo(document.body);
|
24
|
+
*
|
25
|
+
* @class tinymce.ui.Form
|
26
|
+
* @extends tinymce.ui.Container
|
27
|
+
*/
|
28
|
+
define("tinymce/ui/Form", [
|
29
|
+
"tinymce/ui/Container",
|
30
|
+
"tinymce/ui/FormItem",
|
31
|
+
"tinymce/util/Tools"
|
32
|
+
], function(Container, FormItem, Tools) {
|
33
|
+
"use strict";
|
34
|
+
|
35
|
+
return Container.extend({
|
36
|
+
Defaults: {
|
37
|
+
containerCls: 'form',
|
38
|
+
layout: 'flex',
|
39
|
+
direction: 'column',
|
40
|
+
align: 'stretch',
|
41
|
+
flex: 1,
|
42
|
+
padding: 20,
|
43
|
+
labelGap: 30,
|
44
|
+
spacing: 10,
|
45
|
+
callbacks: {
|
46
|
+
submit: function() {
|
47
|
+
this.submit();
|
48
|
+
}
|
49
|
+
}
|
50
|
+
},
|
51
|
+
|
52
|
+
/**
|
53
|
+
* This method gets invoked before the control is rendered.
|
54
|
+
*
|
55
|
+
* @method preRender
|
56
|
+
*/
|
57
|
+
preRender: function() {
|
58
|
+
var self = this, items = self.items();
|
59
|
+
|
60
|
+
if (!self.settings.formItemDefaults) {
|
61
|
+
self.settings.formItemDefaults = {
|
62
|
+
layout: 'flex',
|
63
|
+
autoResize: "overflow",
|
64
|
+
defaults: {flex: 1}
|
65
|
+
};
|
66
|
+
}
|
67
|
+
|
68
|
+
// Wrap any labeled items in FormItems
|
69
|
+
items.each(function(ctrl) {
|
70
|
+
var formItem, label = ctrl.settings.label;
|
71
|
+
|
72
|
+
if (label) {
|
73
|
+
formItem = new FormItem(Tools.extend({
|
74
|
+
items: {
|
75
|
+
type: 'label',
|
76
|
+
id: ctrl._id + '-l',
|
77
|
+
text: label,
|
78
|
+
flex: 0,
|
79
|
+
forId: ctrl._id,
|
80
|
+
disabled: ctrl.disabled()
|
81
|
+
}
|
82
|
+
}, self.settings.formItemDefaults));
|
83
|
+
|
84
|
+
formItem.type = 'formitem';
|
85
|
+
ctrl.aria('labelledby', ctrl._id + '-l');
|
86
|
+
|
87
|
+
if (typeof ctrl.settings.flex == "undefined") {
|
88
|
+
ctrl.settings.flex = 1;
|
89
|
+
}
|
90
|
+
|
91
|
+
self.replace(ctrl, formItem);
|
92
|
+
formItem.add(ctrl);
|
93
|
+
}
|
94
|
+
});
|
95
|
+
},
|
96
|
+
|
97
|
+
/**
|
98
|
+
* Fires a submit event with the serialized form.
|
99
|
+
*
|
100
|
+
* @method submit
|
101
|
+
* @return {Object} Event arguments object.
|
102
|
+
*/
|
103
|
+
submit: function() {
|
104
|
+
return this.fire('submit', {data: this.toJSON()});
|
105
|
+
},
|
106
|
+
|
107
|
+
/**
|
108
|
+
* Post render method. Called after the control has been rendered to the target.
|
109
|
+
*
|
110
|
+
* @method postRender
|
111
|
+
* @return {tinymce.ui.ComboBox} Current combobox instance.
|
112
|
+
*/
|
113
|
+
postRender: function() {
|
114
|
+
var self = this;
|
115
|
+
|
116
|
+
self._super();
|
117
|
+
self.fromJSON(self.settings.data);
|
118
|
+
},
|
119
|
+
|
120
|
+
bindStates: function() {
|
121
|
+
var self = this;
|
122
|
+
|
123
|
+
self._super();
|
124
|
+
|
125
|
+
function recalcLabels() {
|
126
|
+
var maxLabelWidth = 0, labels = [], i, labelGap, items;
|
127
|
+
|
128
|
+
if (self.settings.labelGapCalc === false) {
|
129
|
+
return;
|
130
|
+
}
|
131
|
+
|
132
|
+
if (self.settings.labelGapCalc == "children") {
|
133
|
+
items = self.find('formitem');
|
134
|
+
} else {
|
135
|
+
items = self.items();
|
136
|
+
}
|
137
|
+
|
138
|
+
items.filter('formitem').each(function(item) {
|
139
|
+
var labelCtrl = item.items()[0], labelWidth = labelCtrl.getEl().clientWidth;
|
140
|
+
|
141
|
+
maxLabelWidth = labelWidth > maxLabelWidth ? labelWidth : maxLabelWidth;
|
142
|
+
labels.push(labelCtrl);
|
143
|
+
});
|
144
|
+
|
145
|
+
labelGap = self.settings.labelGap || 0;
|
146
|
+
|
147
|
+
i = labels.length;
|
148
|
+
while (i--) {
|
149
|
+
labels[i].settings.minWidth = maxLabelWidth + labelGap;
|
150
|
+
}
|
151
|
+
}
|
152
|
+
|
153
|
+
self.on('show', recalcLabels);
|
154
|
+
recalcLabels();
|
155
|
+
}
|
156
|
+
});
|
157
|
+
});
|
@@ -0,0 +1,56 @@
|
|
1
|
+
/**
|
2
|
+
* FormItem.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 a container created by the form element with
|
13
|
+
* a label and control item.
|
14
|
+
*
|
15
|
+
* @class tinymce.ui.FormItem
|
16
|
+
* @extends tinymce.ui.Container
|
17
|
+
* @setting {String} label Label to display for the form item.
|
18
|
+
*/
|
19
|
+
define("tinymce/ui/FormItem", [
|
20
|
+
"tinymce/ui/Container"
|
21
|
+
], function(Container) {
|
22
|
+
"use strict";
|
23
|
+
|
24
|
+
return Container.extend({
|
25
|
+
Defaults: {
|
26
|
+
layout: 'flex',
|
27
|
+
align: 'center',
|
28
|
+
defaults: {
|
29
|
+
flex: 1
|
30
|
+
}
|
31
|
+
},
|
32
|
+
|
33
|
+
/**
|
34
|
+
* Renders the control as a HTML string.
|
35
|
+
*
|
36
|
+
* @method renderHtml
|
37
|
+
* @return {String} HTML representing the control.
|
38
|
+
*/
|
39
|
+
renderHtml: function() {
|
40
|
+
var self = this, layout = self._layout, prefix = self.classPrefix;
|
41
|
+
|
42
|
+
self.classes.add('formitem');
|
43
|
+
layout.preRender(self);
|
44
|
+
|
45
|
+
return (
|
46
|
+
'<div id="' + self._id + '" class="' + self.classes + '" hidefocus="1" tabindex="-1">' +
|
47
|
+
(self.settings.title ? ('<div id="' + self._id + '-title" class="' + prefix + 'title">' +
|
48
|
+
self.settings.title + '</div>') : '') +
|
49
|
+
'<div id="' + self._id + '-body" class="' + self.bodyClasses + '">' +
|
50
|
+
(self.settings.html || '') + layout.renderHtml(self) +
|
51
|
+
'</div>' +
|
52
|
+
'</div>'
|
53
|
+
);
|
54
|
+
}
|
55
|
+
});
|
56
|
+
});
|
@@ -0,0 +1,535 @@
|
|
1
|
+
/**
|
2
|
+
* FormatControls.js
|
3
|
+
*
|
4
|
+
* Released under LGPL License.
|
5
|
+
* Copyright (c) 1999-2015 Ephox Corp. All rights reserved
|
6
|
+
*
|
7
|
+
* License: http://www.tinymce.com/license
|
8
|
+
* Contributing: http://www.tinymce.com/contributing
|
9
|
+
*/
|
10
|
+
|
11
|
+
/**
|
12
|
+
* Internal class containing all TinyMCE specific control types such as
|
13
|
+
* format listboxes, fontlist boxes, toolbar buttons etc.
|
14
|
+
*
|
15
|
+
* @class tinymce.ui.FormatControls
|
16
|
+
*/
|
17
|
+
define("tinymce/ui/FormatControls", [
|
18
|
+
"tinymce/ui/Control",
|
19
|
+
"tinymce/ui/Widget",
|
20
|
+
"tinymce/ui/FloatPanel",
|
21
|
+
"tinymce/util/Tools",
|
22
|
+
"tinymce/EditorManager",
|
23
|
+
"tinymce/Env"
|
24
|
+
], function(Control, Widget, FloatPanel, Tools, EditorManager, Env) {
|
25
|
+
var each = Tools.each;
|
26
|
+
|
27
|
+
EditorManager.on('AddEditor', function(e) {
|
28
|
+
if (e.editor.rtl) {
|
29
|
+
Control.rtl = true;
|
30
|
+
}
|
31
|
+
|
32
|
+
registerControls(e.editor);
|
33
|
+
});
|
34
|
+
|
35
|
+
Control.translate = function(text) {
|
36
|
+
return EditorManager.translate(text);
|
37
|
+
};
|
38
|
+
|
39
|
+
Widget.tooltips = !Env.iOS;
|
40
|
+
|
41
|
+
function registerControls(editor) {
|
42
|
+
var formatMenu;
|
43
|
+
|
44
|
+
function createListBoxChangeHandler(items, formatName) {
|
45
|
+
return function() {
|
46
|
+
var self = this;
|
47
|
+
|
48
|
+
editor.on('nodeChange', function(e) {
|
49
|
+
var formatter = editor.formatter;
|
50
|
+
var value = null;
|
51
|
+
|
52
|
+
each(e.parents, function(node) {
|
53
|
+
each(items, function(item) {
|
54
|
+
if (formatName) {
|
55
|
+
if (formatter.matchNode(node, formatName, {value: item.value})) {
|
56
|
+
value = item.value;
|
57
|
+
}
|
58
|
+
} else {
|
59
|
+
if (formatter.matchNode(node, item.value)) {
|
60
|
+
value = item.value;
|
61
|
+
}
|
62
|
+
}
|
63
|
+
|
64
|
+
if (value) {
|
65
|
+
return false;
|
66
|
+
}
|
67
|
+
});
|
68
|
+
|
69
|
+
if (value) {
|
70
|
+
return false;
|
71
|
+
}
|
72
|
+
});
|
73
|
+
|
74
|
+
self.value(value);
|
75
|
+
});
|
76
|
+
};
|
77
|
+
}
|
78
|
+
|
79
|
+
function createFormats(formats) {
|
80
|
+
formats = formats.replace(/;$/, '').split(';');
|
81
|
+
|
82
|
+
var i = formats.length;
|
83
|
+
while (i--) {
|
84
|
+
formats[i] = formats[i].split('=');
|
85
|
+
}
|
86
|
+
|
87
|
+
return formats;
|
88
|
+
}
|
89
|
+
|
90
|
+
function createFormatMenu() {
|
91
|
+
var count = 0, newFormats = [];
|
92
|
+
|
93
|
+
var defaultStyleFormats = [
|
94
|
+
{title: 'Headings', items: [
|
95
|
+
{title: 'Heading 1', format: 'h1'},
|
96
|
+
{title: 'Heading 2', format: 'h2'},
|
97
|
+
{title: 'Heading 3', format: 'h3'},
|
98
|
+
{title: 'Heading 4', format: 'h4'},
|
99
|
+
{title: 'Heading 5', format: 'h5'},
|
100
|
+
{title: 'Heading 6', format: 'h6'}
|
101
|
+
]},
|
102
|
+
|
103
|
+
{title: 'Inline', items: [
|
104
|
+
{title: 'Bold', icon: 'bold', format: 'bold'},
|
105
|
+
{title: 'Italic', icon: 'italic', format: 'italic'},
|
106
|
+
{title: 'Underline', icon: 'underline', format: 'underline'},
|
107
|
+
{title: 'Strikethrough', icon: 'strikethrough', format: 'strikethrough'},
|
108
|
+
{title: 'Superscript', icon: 'superscript', format: 'superscript'},
|
109
|
+
{title: 'Subscript', icon: 'subscript', format: 'subscript'},
|
110
|
+
{title: 'Code', icon: 'code', format: 'code'}
|
111
|
+
]},
|
112
|
+
|
113
|
+
{title: 'Blocks', items: [
|
114
|
+
{title: 'Paragraph', format: 'p'},
|
115
|
+
{title: 'Blockquote', format: 'blockquote'},
|
116
|
+
{title: 'Div', format: 'div'},
|
117
|
+
{title: 'Pre', format: 'pre'}
|
118
|
+
]},
|
119
|
+
|
120
|
+
{title: 'Alignment', items: [
|
121
|
+
{title: 'Left', icon: 'alignleft', format: 'alignleft'},
|
122
|
+
{title: 'Center', icon: 'aligncenter', format: 'aligncenter'},
|
123
|
+
{title: 'Right', icon: 'alignright', format: 'alignright'},
|
124
|
+
{title: 'Justify', icon: 'alignjustify', format: 'alignjustify'}
|
125
|
+
]}
|
126
|
+
];
|
127
|
+
|
128
|
+
function createMenu(formats) {
|
129
|
+
var menu = [];
|
130
|
+
|
131
|
+
if (!formats) {
|
132
|
+
return;
|
133
|
+
}
|
134
|
+
|
135
|
+
each(formats, function(format) {
|
136
|
+
var menuItem = {
|
137
|
+
text: format.title,
|
138
|
+
icon: format.icon
|
139
|
+
};
|
140
|
+
|
141
|
+
if (format.items) {
|
142
|
+
menuItem.menu = createMenu(format.items);
|
143
|
+
} else {
|
144
|
+
var formatName = format.format || "custom" + count++;
|
145
|
+
|
146
|
+
if (!format.format) {
|
147
|
+
format.name = formatName;
|
148
|
+
newFormats.push(format);
|
149
|
+
}
|
150
|
+
|
151
|
+
menuItem.format = formatName;
|
152
|
+
menuItem.cmd = format.cmd;
|
153
|
+
}
|
154
|
+
|
155
|
+
menu.push(menuItem);
|
156
|
+
});
|
157
|
+
|
158
|
+
return menu;
|
159
|
+
}
|
160
|
+
|
161
|
+
function createStylesMenu() {
|
162
|
+
var menu;
|
163
|
+
|
164
|
+
if (editor.settings.style_formats_merge) {
|
165
|
+
if (editor.settings.style_formats) {
|
166
|
+
menu = createMenu(defaultStyleFormats.concat(editor.settings.style_formats));
|
167
|
+
} else {
|
168
|
+
menu = createMenu(defaultStyleFormats);
|
169
|
+
}
|
170
|
+
} else {
|
171
|
+
menu = createMenu(editor.settings.style_formats || defaultStyleFormats);
|
172
|
+
}
|
173
|
+
|
174
|
+
return menu;
|
175
|
+
}
|
176
|
+
|
177
|
+
editor.on('init', function() {
|
178
|
+
each(newFormats, function(format) {
|
179
|
+
editor.formatter.register(format.name, format);
|
180
|
+
});
|
181
|
+
});
|
182
|
+
|
183
|
+
return {
|
184
|
+
type: 'menu',
|
185
|
+
items: createStylesMenu(),
|
186
|
+
onPostRender: function(e) {
|
187
|
+
editor.fire('renderFormatsMenu', {control: e.control});
|
188
|
+
},
|
189
|
+
itemDefaults: {
|
190
|
+
preview: true,
|
191
|
+
|
192
|
+
textStyle: function() {
|
193
|
+
if (this.settings.format) {
|
194
|
+
return editor.formatter.getCssText(this.settings.format);
|
195
|
+
}
|
196
|
+
},
|
197
|
+
|
198
|
+
onPostRender: function() {
|
199
|
+
var self = this;
|
200
|
+
|
201
|
+
self.parent().on('show', function() {
|
202
|
+
var formatName, command;
|
203
|
+
|
204
|
+
formatName = self.settings.format;
|
205
|
+
if (formatName) {
|
206
|
+
self.disabled(!editor.formatter.canApply(formatName));
|
207
|
+
self.active(editor.formatter.match(formatName));
|
208
|
+
}
|
209
|
+
|
210
|
+
command = self.settings.cmd;
|
211
|
+
if (command) {
|
212
|
+
self.active(editor.queryCommandState(command));
|
213
|
+
}
|
214
|
+
});
|
215
|
+
},
|
216
|
+
|
217
|
+
onclick: function() {
|
218
|
+
if (this.settings.format) {
|
219
|
+
toggleFormat(this.settings.format);
|
220
|
+
}
|
221
|
+
|
222
|
+
if (this.settings.cmd) {
|
223
|
+
editor.execCommand(this.settings.cmd);
|
224
|
+
}
|
225
|
+
}
|
226
|
+
}
|
227
|
+
};
|
228
|
+
}
|
229
|
+
|
230
|
+
formatMenu = createFormatMenu();
|
231
|
+
|
232
|
+
function initOnPostRender(name) {
|
233
|
+
return function() {
|
234
|
+
var self = this;
|
235
|
+
|
236
|
+
// TODO: Fix this
|
237
|
+
if (editor.formatter) {
|
238
|
+
editor.formatter.formatChanged(name, function(state) {
|
239
|
+
self.active(state);
|
240
|
+
});
|
241
|
+
} else {
|
242
|
+
editor.on('init', function() {
|
243
|
+
editor.formatter.formatChanged(name, function(state) {
|
244
|
+
self.active(state);
|
245
|
+
});
|
246
|
+
});
|
247
|
+
}
|
248
|
+
};
|
249
|
+
}
|
250
|
+
|
251
|
+
// Simple format controls <control/format>:<UI text>
|
252
|
+
each({
|
253
|
+
bold: 'Bold',
|
254
|
+
italic: 'Italic',
|
255
|
+
underline: 'Underline',
|
256
|
+
strikethrough: 'Strikethrough',
|
257
|
+
subscript: 'Subscript',
|
258
|
+
superscript: 'Superscript'
|
259
|
+
}, function(text, name) {
|
260
|
+
editor.addButton(name, {
|
261
|
+
tooltip: text,
|
262
|
+
onPostRender: initOnPostRender(name),
|
263
|
+
onclick: function() {
|
264
|
+
toggleFormat(name);
|
265
|
+
}
|
266
|
+
});
|
267
|
+
});
|
268
|
+
|
269
|
+
// Simple command controls <control>:[<UI text>,<Command>]
|
270
|
+
each({
|
271
|
+
outdent: ['Decrease indent', 'Outdent'],
|
272
|
+
indent: ['Increase indent', 'Indent'],
|
273
|
+
cut: ['Cut', 'Cut'],
|
274
|
+
copy: ['Copy', 'Copy'],
|
275
|
+
paste: ['Paste', 'Paste'],
|
276
|
+
help: ['Help', 'mceHelp'],
|
277
|
+
selectall: ['Select all', 'SelectAll'],
|
278
|
+
removeformat: ['Clear formatting', 'RemoveFormat'],
|
279
|
+
visualaid: ['Visual aids', 'mceToggleVisualAid'],
|
280
|
+
newdocument: ['New document', 'mceNewDocument']
|
281
|
+
}, function(item, name) {
|
282
|
+
editor.addButton(name, {
|
283
|
+
tooltip: item[0],
|
284
|
+
cmd: item[1]
|
285
|
+
});
|
286
|
+
});
|
287
|
+
|
288
|
+
// Simple command controls with format state
|
289
|
+
each({
|
290
|
+
blockquote: ['Blockquote', 'mceBlockQuote'],
|
291
|
+
numlist: ['Numbered list', 'InsertOrderedList'],
|
292
|
+
bullist: ['Bullet list', 'InsertUnorderedList'],
|
293
|
+
subscript: ['Subscript', 'Subscript'],
|
294
|
+
superscript: ['Superscript', 'Superscript'],
|
295
|
+
alignleft: ['Align left', 'JustifyLeft'],
|
296
|
+
aligncenter: ['Align center', 'JustifyCenter'],
|
297
|
+
alignright: ['Align right', 'JustifyRight'],
|
298
|
+
alignjustify: ['Justify', 'JustifyFull'],
|
299
|
+
alignnone: ['No alignment', 'JustifyNone']
|
300
|
+
}, function(item, name) {
|
301
|
+
editor.addButton(name, {
|
302
|
+
tooltip: item[0],
|
303
|
+
cmd: item[1],
|
304
|
+
onPostRender: initOnPostRender(name)
|
305
|
+
});
|
306
|
+
});
|
307
|
+
|
308
|
+
function toggleUndoRedoState(type) {
|
309
|
+
return function() {
|
310
|
+
var self = this;
|
311
|
+
|
312
|
+
type = type == 'redo' ? 'hasRedo' : 'hasUndo';
|
313
|
+
|
314
|
+
function checkState() {
|
315
|
+
return editor.undoManager ? editor.undoManager[type]() : false;
|
316
|
+
}
|
317
|
+
|
318
|
+
self.disabled(!checkState());
|
319
|
+
editor.on('Undo Redo AddUndo TypingUndo ClearUndos SwitchMode', function() {
|
320
|
+
self.disabled(editor.readonly || !checkState());
|
321
|
+
});
|
322
|
+
};
|
323
|
+
}
|
324
|
+
|
325
|
+
function toggleVisualAidState() {
|
326
|
+
var self = this;
|
327
|
+
|
328
|
+
editor.on('VisualAid', function(e) {
|
329
|
+
self.active(e.hasVisual);
|
330
|
+
});
|
331
|
+
|
332
|
+
self.active(editor.hasVisual);
|
333
|
+
}
|
334
|
+
|
335
|
+
editor.addButton('undo', {
|
336
|
+
tooltip: 'Undo',
|
337
|
+
onPostRender: toggleUndoRedoState('undo'),
|
338
|
+
cmd: 'undo'
|
339
|
+
});
|
340
|
+
|
341
|
+
editor.addButton('redo', {
|
342
|
+
tooltip: 'Redo',
|
343
|
+
onPostRender: toggleUndoRedoState('redo'),
|
344
|
+
cmd: 'redo'
|
345
|
+
});
|
346
|
+
|
347
|
+
editor.addMenuItem('newdocument', {
|
348
|
+
text: 'New document',
|
349
|
+
icon: 'newdocument',
|
350
|
+
cmd: 'mceNewDocument'
|
351
|
+
});
|
352
|
+
|
353
|
+
editor.addMenuItem('undo', {
|
354
|
+
text: 'Undo',
|
355
|
+
icon: 'undo',
|
356
|
+
shortcut: 'Meta+Z',
|
357
|
+
onPostRender: toggleUndoRedoState('undo'),
|
358
|
+
cmd: 'undo'
|
359
|
+
});
|
360
|
+
|
361
|
+
editor.addMenuItem('redo', {
|
362
|
+
text: 'Redo',
|
363
|
+
icon: 'redo',
|
364
|
+
shortcut: 'Meta+Y',
|
365
|
+
onPostRender: toggleUndoRedoState('redo'),
|
366
|
+
cmd: 'redo'
|
367
|
+
});
|
368
|
+
|
369
|
+
editor.addMenuItem('visualaid', {
|
370
|
+
text: 'Visual aids',
|
371
|
+
selectable: true,
|
372
|
+
onPostRender: toggleVisualAidState,
|
373
|
+
cmd: 'mceToggleVisualAid'
|
374
|
+
});
|
375
|
+
|
376
|
+
editor.addButton('remove', {
|
377
|
+
tooltip: 'Remove',
|
378
|
+
icon: 'remove',
|
379
|
+
cmd: 'Delete'
|
380
|
+
});
|
381
|
+
|
382
|
+
each({
|
383
|
+
cut: ['Cut', 'Cut', 'Meta+X'],
|
384
|
+
copy: ['Copy', 'Copy', 'Meta+C'],
|
385
|
+
paste: ['Paste', 'Paste', 'Meta+V'],
|
386
|
+
selectall: ['Select all', 'SelectAll', 'Meta+A'],
|
387
|
+
bold: ['Bold', 'Bold', 'Meta+B'],
|
388
|
+
italic: ['Italic', 'Italic', 'Meta+I'],
|
389
|
+
underline: ['Underline', 'Underline'],
|
390
|
+
strikethrough: ['Strikethrough', 'Strikethrough'],
|
391
|
+
subscript: ['Subscript', 'Subscript'],
|
392
|
+
superscript: ['Superscript', 'Superscript'],
|
393
|
+
removeformat: ['Clear formatting', 'RemoveFormat']
|
394
|
+
}, function(item, name) {
|
395
|
+
editor.addMenuItem(name, {
|
396
|
+
text: item[0],
|
397
|
+
icon: name,
|
398
|
+
shortcut: item[2],
|
399
|
+
cmd: item[1]
|
400
|
+
});
|
401
|
+
});
|
402
|
+
|
403
|
+
editor.on('mousedown', function() {
|
404
|
+
FloatPanel.hideAll();
|
405
|
+
});
|
406
|
+
|
407
|
+
function toggleFormat(fmt) {
|
408
|
+
if (fmt.control) {
|
409
|
+
fmt = fmt.control.value();
|
410
|
+
}
|
411
|
+
|
412
|
+
if (fmt) {
|
413
|
+
editor.execCommand('mceToggleFormat', false, fmt);
|
414
|
+
}
|
415
|
+
}
|
416
|
+
|
417
|
+
editor.addButton('styleselect', {
|
418
|
+
type: 'menubutton',
|
419
|
+
text: 'Formats',
|
420
|
+
menu: formatMenu
|
421
|
+
});
|
422
|
+
|
423
|
+
editor.addButton('formatselect', function() {
|
424
|
+
var items = [], blocks = createFormats(editor.settings.block_formats ||
|
425
|
+
'Paragraph=p;' +
|
426
|
+
'Heading 1=h1;' +
|
427
|
+
'Heading 2=h2;' +
|
428
|
+
'Heading 3=h3;' +
|
429
|
+
'Heading 4=h4;' +
|
430
|
+
'Heading 5=h5;' +
|
431
|
+
'Heading 6=h6;' +
|
432
|
+
'Preformatted=pre'
|
433
|
+
);
|
434
|
+
|
435
|
+
each(blocks, function(block) {
|
436
|
+
items.push({
|
437
|
+
text: block[0],
|
438
|
+
value: block[1],
|
439
|
+
textStyle: function() {
|
440
|
+
return editor.formatter.getCssText(block[1]);
|
441
|
+
}
|
442
|
+
});
|
443
|
+
});
|
444
|
+
|
445
|
+
return {
|
446
|
+
type: 'listbox',
|
447
|
+
text: blocks[0][0],
|
448
|
+
values: items,
|
449
|
+
fixedWidth: true,
|
450
|
+
onselect: toggleFormat,
|
451
|
+
onPostRender: createListBoxChangeHandler(items)
|
452
|
+
};
|
453
|
+
});
|
454
|
+
|
455
|
+
editor.addButton('fontselect', function() {
|
456
|
+
var defaultFontsFormats =
|
457
|
+
'Andale Mono=andale mono,monospace;' +
|
458
|
+
'Arial=arial,helvetica,sans-serif;' +
|
459
|
+
'Arial Black=arial black,sans-serif;' +
|
460
|
+
'Book Antiqua=book antiqua,palatino,serif;' +
|
461
|
+
'Comic Sans MS=comic sans ms,sans-serif;' +
|
462
|
+
'Courier New=courier new,courier,monospace;' +
|
463
|
+
'Georgia=georgia,palatino,serif;' +
|
464
|
+
'Helvetica=helvetica,arial,sans-serif;' +
|
465
|
+
'Impact=impact,sans-serif;' +
|
466
|
+
'Symbol=symbol;' +
|
467
|
+
'Tahoma=tahoma,arial,helvetica,sans-serif;' +
|
468
|
+
'Terminal=terminal,monaco,monospace;' +
|
469
|
+
'Times New Roman=times new roman,times,serif;' +
|
470
|
+
'Trebuchet MS=trebuchet ms,geneva,sans-serif;' +
|
471
|
+
'Verdana=verdana,geneva,sans-serif;' +
|
472
|
+
'Webdings=webdings;' +
|
473
|
+
'Wingdings=wingdings,zapf dingbats';
|
474
|
+
|
475
|
+
var items = [], fonts = createFormats(editor.settings.font_formats || defaultFontsFormats);
|
476
|
+
|
477
|
+
each(fonts, function(font) {
|
478
|
+
items.push({
|
479
|
+
text: {raw: font[0]},
|
480
|
+
value: font[1],
|
481
|
+
textStyle: font[1].indexOf('dings') == -1 ? 'font-family:' + font[1] : ''
|
482
|
+
});
|
483
|
+
});
|
484
|
+
|
485
|
+
return {
|
486
|
+
type: 'listbox',
|
487
|
+
text: 'Font Family',
|
488
|
+
tooltip: 'Font Family',
|
489
|
+
values: items,
|
490
|
+
fixedWidth: true,
|
491
|
+
onPostRender: createListBoxChangeHandler(items, 'fontname'),
|
492
|
+
onselect: function(e) {
|
493
|
+
if (e.control.settings.value) {
|
494
|
+
editor.execCommand('FontName', false, e.control.settings.value);
|
495
|
+
}
|
496
|
+
}
|
497
|
+
};
|
498
|
+
});
|
499
|
+
|
500
|
+
editor.addButton('fontsizeselect', function() {
|
501
|
+
var items = [], defaultFontsizeFormats = '8pt 10pt 12pt 14pt 18pt 24pt 36pt';
|
502
|
+
var fontsize_formats = editor.settings.fontsize_formats || defaultFontsizeFormats;
|
503
|
+
|
504
|
+
each(fontsize_formats.split(' '), function(item) {
|
505
|
+
var text = item, value = item;
|
506
|
+
// Allow text=value font sizes.
|
507
|
+
var values = item.split('=');
|
508
|
+
if (values.length > 1) {
|
509
|
+
text = values[0];
|
510
|
+
value = values[1];
|
511
|
+
}
|
512
|
+
items.push({text: text, value: value});
|
513
|
+
});
|
514
|
+
|
515
|
+
return {
|
516
|
+
type: 'listbox',
|
517
|
+
text: 'Font Sizes',
|
518
|
+
tooltip: 'Font Sizes',
|
519
|
+
values: items,
|
520
|
+
fixedWidth: true,
|
521
|
+
onPostRender: createListBoxChangeHandler(items, 'fontsize'),
|
522
|
+
onclick: function(e) {
|
523
|
+
if (e.control.settings.value) {
|
524
|
+
editor.execCommand('FontSize', false, e.control.settings.value);
|
525
|
+
}
|
526
|
+
}
|
527
|
+
};
|
528
|
+
});
|
529
|
+
|
530
|
+
editor.addMenuItem('formats', {
|
531
|
+
text: 'Formats',
|
532
|
+
menu: formatMenu
|
533
|
+
});
|
534
|
+
}
|
535
|
+
});
|