compass-jquery-plugin 0.3.2.6 → 0.3.2.7.nil
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +2 -1
- data/VERSION.yml +2 -2
- data/lib/handle_js_files.rb +21 -2
- data/templates/dynatree/jquery.dynatree.js +23 -20
- data/templates/dynatree/jquery.dynatree.min.js +38 -38
- data/templates/dynatree/jquery/dynatree/aero.scss +1 -1
- data/templates/dynatree/jquery/dynatree/aqua.scss +1 -1
- data/templates/dynatree/jquery/dynatree/crystal.scss +1 -1
- data/templates/dynatree/jquery/dynatree/xp.scss +2 -2
- data/templates/ical/jquery/ical.scss +10 -10
- data/templates/jqgrid/i18n/jqgrid/locale-lt.js +134 -0
- data/templates/jqgrid/i18n/jqgrid/locale-lt.min.js +7 -0
- data/templates/jqgrid/jquery.jqGrid.js +155 -65
- data/templates/jqgrid/jquery.jqGrid.min.js +396 -393
- data/templates/jqgrid/manifest.rb +2 -0
- data/templates/jqtouch/jquery.jqtouch.js +166 -195
- data/templates/jqtouch/jquery.jqtouch.min.js +1 -1
- data/templates/jqtouch/jquery/touch/apple.scss +5 -5
- data/templates/jqtouch/jquery/touch/default.scss +5 -5
- data/templates/jqtouch/jquery/touch/jqt.scss +12 -7
- data/templates/jqtouch/jquery/touch/jqtouch.scss +11 -13
- data/templates/jquery/history.adapter.jquery.js +54 -67
- data/templates/jquery/history.adapter.jquery.min.js +2 -2
- data/templates/jquery/history.html4.js +587 -680
- data/templates/jquery/history.html4.min.js +8 -18
- data/templates/jquery/history.js +1670 -1289
- data/templates/jquery/history.min.js +25 -21
- data/templates/jquery/i18n/jquery.ui/datepicker-ar.js +1 -1
- data/templates/jquery/i18n/jquery.ui/datepicker-ar.min.js +1 -1
- data/templates/jquery/i18n/jquery.ui/datepicker-tj.js +23 -0
- data/templates/jquery/i18n/jquery.ui/datepicker-tj.min.js +2 -0
- data/templates/jquery/jquery-ui.js +97 -61
- data/templates/jquery/jquery-ui.min.js +175 -175
- data/templates/jquery/jquery.dst.js +86 -151
- data/templates/jquery/jquery/ui/_theme.scss +13 -13
- data/templates/jquery/json2.js +214 -214
- data/templates/jquery/manifest.rb +2 -0
- data/templates/mobile/jquery.mobile.js +324 -225
- data/templates/mobile/jquery.mobile.min.js +4 -4
- data/templates/mobile/jquery/mobile/_base.scss +60 -48
- data/templates/mobile/jquery/mobile/default.scss +57 -80
- data/templates/mobile/jquery/mobile/default/icons-18-black.png +0 -0
- data/templates/mobile/jquery/mobile/default/icons-18-white.png +0 -0
- data/templates/mobile/jquery/mobile/default/icons-36-black.png +0 -0
- data/templates/mobile/jquery/mobile/default/icons-36-white.png +0 -0
- data/templates/mobile/jquery/mobile/valencia.scss +61 -73
- data/templates/mobile/jquery/mobile/valencia/icons-18-black.png +0 -0
- data/templates/mobile/jquery/mobile/valencia/icons-18-white.png +0 -0
- data/templates/mobile/jquery/mobile/valencia/icons-36-black.png +0 -0
- data/templates/mobile/jquery/mobile/valencia/icons-36-white.png +0 -0
- data/templates/mobile/manifest.rb +0 -8
- data/templates/ribbon/jquery/ribbon/office.scss +12 -12
- data/templates/ribbon/jquery/ribbon/windows7.scss +12 -12
- data/templates/tiny_mce/manifest.rb +16 -0
- data/templates/tiny_mce/tiny_mce/jquery.tinymce.js +1 -1
- data/templates/tiny_mce/tiny_mce/langs/de.js +1 -0
- data/templates/tiny_mce/tiny_mce/langs/en.js +1 -222
- data/templates/tiny_mce/tiny_mce/plugins/advhr/css/advhr.css +1 -5
- data/templates/tiny_mce/tiny_mce/plugins/advhr/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/advhr/editor_plugin_src.js +1 -57
- data/templates/tiny_mce/tiny_mce/plugins/advhr/js/rule.js +1 -43
- data/templates/tiny_mce/tiny_mce/plugins/advhr/langs/de_dlg.js +1 -0
- data/templates/tiny_mce/tiny_mce/plugins/advhr/langs/en_dlg.js +1 -7
- data/templates/tiny_mce/tiny_mce/plugins/advhr/rule.htm +1 -58
- data/templates/tiny_mce/tiny_mce/plugins/advimage/css/advimage.css +1 -13
- data/templates/tiny_mce/tiny_mce/plugins/advimage/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/advimage/editor_plugin_src.js +1 -50
- data/templates/tiny_mce/tiny_mce/plugins/advimage/image.htm +1 -235
- data/templates/tiny_mce/tiny_mce/plugins/advimage/js/image.js +1 -445
- data/templates/tiny_mce/tiny_mce/plugins/advimage/langs/de_dlg.js +1 -0
- data/templates/tiny_mce/tiny_mce/plugins/advimage/langs/en_dlg.js +1 -45
- data/templates/tiny_mce/tiny_mce/plugins/advlink/css/advlink.css +1 -8
- data/templates/tiny_mce/tiny_mce/plugins/advlink/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/advlink/editor_plugin_src.js +1 -61
- data/templates/tiny_mce/tiny_mce/plugins/advlink/js/advlink.js +1 -525
- data/templates/tiny_mce/tiny_mce/plugins/advlink/langs/de_dlg.js +1 -0
- data/templates/tiny_mce/tiny_mce/plugins/advlink/langs/en_dlg.js +1 -54
- data/templates/tiny_mce/tiny_mce/plugins/advlink/link.htm +1 -338
- data/templates/tiny_mce/tiny_mce/plugins/advlist/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/advlist/editor_plugin_src.js +1 -154
- data/templates/tiny_mce/tiny_mce/plugins/autoresize/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/autoresize/editor_plugin_src.js +1 -119
- data/templates/tiny_mce/tiny_mce/plugins/autosave/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/autosave/editor_plugin_src.js +1 -431
- data/templates/tiny_mce/tiny_mce/plugins/autosave/langs/en.js +1 -4
- data/templates/tiny_mce/tiny_mce/plugins/bbcode/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/bbcode/editor_plugin_src.js +1 -120
- data/templates/tiny_mce/tiny_mce/plugins/contextmenu/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/contextmenu/editor_plugin_src.js +1 -154
- data/templates/tiny_mce/tiny_mce/plugins/directionality/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/directionality/editor_plugin_src.js +1 -82
- data/templates/tiny_mce/tiny_mce/plugins/emotions/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/emotions/editor_plugin_src.js +1 -43
- data/templates/tiny_mce/tiny_mce/plugins/emotions/emotions.htm +1 -41
- data/templates/tiny_mce/tiny_mce/plugins/emotions/js/emotions.js +1 -22
- data/templates/tiny_mce/tiny_mce/plugins/emotions/langs/de_dlg.js +1 -0
- data/templates/tiny_mce/tiny_mce/plugins/emotions/langs/en_dlg.js +1 -20
- data/templates/tiny_mce/tiny_mce/plugins/example/dialog.htm +1 -22
- data/templates/tiny_mce/tiny_mce/plugins/example/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/example/editor_plugin_src.js +1 -84
- data/templates/tiny_mce/tiny_mce/plugins/example/js/dialog.js +1 -19
- data/templates/tiny_mce/tiny_mce/plugins/example/langs/en.js +1 -3
- data/templates/tiny_mce/tiny_mce/plugins/example/langs/en_dlg.js +1 -3
- data/templates/tiny_mce/tiny_mce/plugins/fullpage/css/fullpage.css +1 -182
- data/templates/tiny_mce/tiny_mce/plugins/fullpage/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/fullpage/editor_plugin_src.js +1 -166
- data/templates/tiny_mce/tiny_mce/plugins/fullpage/fullpage.htm +1 -571
- data/templates/tiny_mce/tiny_mce/plugins/fullpage/js/fullpage.js +1 -492
- data/templates/tiny_mce/tiny_mce/plugins/fullpage/langs/de_dlg.js +1 -0
- data/templates/tiny_mce/tiny_mce/plugins/fullpage/langs/en_dlg.js +1 -85
- data/templates/tiny_mce/tiny_mce/plugins/fullscreen/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/fullscreen/editor_plugin_src.js +1 -159
- data/templates/tiny_mce/tiny_mce/plugins/fullscreen/fullscreen.htm +1 -109
- data/templates/tiny_mce/tiny_mce/plugins/iespell/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/iespell/editor_plugin_src.js +1 -54
- data/templates/tiny_mce/tiny_mce/plugins/inlinepopups/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/inlinepopups/editor_plugin_src.js +1 -696
- data/templates/tiny_mce/tiny_mce/plugins/inlinepopups/skins/clearlooks2/window.css +1 -90
- data/templates/tiny_mce/tiny_mce/plugins/inlinepopups/template.htm +1 -387
- data/templates/tiny_mce/tiny_mce/plugins/insertdatetime/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/insertdatetime/editor_plugin_src.js +1 -83
- data/templates/tiny_mce/tiny_mce/plugins/layer/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/layer/editor_plugin_src.js +1 -214
- data/templates/tiny_mce/tiny_mce/plugins/legacyoutput/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/legacyoutput/editor_plugin_src.js +1 -139
- data/templates/tiny_mce/tiny_mce/plugins/media/css/media.css +1 -17
- data/templates/tiny_mce/tiny_mce/plugins/media/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/media/editor_plugin_src.js +1 -770
- data/templates/tiny_mce/tiny_mce/plugins/media/js/embed.js +1 -73
- data/templates/tiny_mce/tiny_mce/plugins/media/js/media.js +1 -340
- data/templates/tiny_mce/tiny_mce/plugins/media/langs/de_dlg.js +1 -0
- data/templates/tiny_mce/tiny_mce/plugins/media/langs/en_dlg.js +1 -109
- data/templates/tiny_mce/tiny_mce/plugins/media/media.htm +1 -812
- data/templates/tiny_mce/tiny_mce/plugins/nonbreaking/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/nonbreaking/editor_plugin_src.js +1 -53
- data/templates/tiny_mce/tiny_mce/plugins/noneditable/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/noneditable/editor_plugin_src.js +1 -90
- data/templates/tiny_mce/tiny_mce/plugins/pagebreak/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/pagebreak/editor_plugin_src.js +1 -74
- data/templates/tiny_mce/tiny_mce/plugins/paste/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/paste/editor_plugin_src.js +1 -899
- data/templates/tiny_mce/tiny_mce/plugins/paste/js/pastetext.js +1 -36
- data/templates/tiny_mce/tiny_mce/plugins/paste/js/pasteword.js +1 -51
- data/templates/tiny_mce/tiny_mce/plugins/paste/langs/de_dlg.js +1 -0
- data/templates/tiny_mce/tiny_mce/plugins/paste/langs/en_dlg.js +1 -5
- data/templates/tiny_mce/tiny_mce/plugins/paste/pastetext.htm +1 -27
- data/templates/tiny_mce/tiny_mce/plugins/paste/pasteword.htm +1 -21
- data/templates/tiny_mce/tiny_mce/plugins/preview/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/preview/editor_plugin_src.js +1 -53
- data/templates/tiny_mce/tiny_mce/plugins/preview/example.html +17 -16
- data/templates/tiny_mce/tiny_mce/plugins/preview/jscripts/embed.js +1 -73
- data/templates/tiny_mce/tiny_mce/plugins/preview/preview.html +10 -9
- data/templates/tiny_mce/tiny_mce/plugins/print/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/print/editor_plugin_src.js +1 -34
- data/templates/tiny_mce/tiny_mce/plugins/save/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/save/editor_plugin_src.js +1 -101
- data/templates/tiny_mce/tiny_mce/plugins/searchreplace/css/searchreplace.css +1 -6
- data/templates/tiny_mce/tiny_mce/plugins/searchreplace/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/searchreplace/editor_plugin_src.js +1 -61
- data/templates/tiny_mce/tiny_mce/plugins/searchreplace/js/searchreplace.js +1 -140
- data/templates/tiny_mce/tiny_mce/plugins/searchreplace/langs/de_dlg.js +1 -0
- data/templates/tiny_mce/tiny_mce/plugins/searchreplace/langs/en_dlg.js +1 -16
- data/templates/tiny_mce/tiny_mce/plugins/searchreplace/searchreplace.htm +1 -100
- data/templates/tiny_mce/tiny_mce/plugins/spellchecker/css/content.css +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/spellchecker/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/spellchecker/editor_plugin_src.js +1 -415
- data/templates/tiny_mce/tiny_mce/plugins/style/css/props.css +1 -13
- data/templates/tiny_mce/tiny_mce/plugins/style/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/style/editor_plugin_src.js +1 -55
- data/templates/tiny_mce/tiny_mce/plugins/style/js/props.js +1 -635
- data/templates/tiny_mce/tiny_mce/plugins/style/langs/de_dlg.js +1 -0
- data/templates/tiny_mce/tiny_mce/plugins/style/langs/en_dlg.js +1 -70
- data/templates/tiny_mce/tiny_mce/plugins/style/props.htm +1 -838
- data/templates/tiny_mce/tiny_mce/plugins/tabfocus/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/tabfocus/editor_plugin_src.js +1 -114
- data/templates/tiny_mce/tiny_mce/plugins/table/cell.htm +1 -178
- data/templates/tiny_mce/tiny_mce/plugins/table/css/cell.css +1 -17
- data/templates/tiny_mce/tiny_mce/plugins/table/css/row.css +1 -25
- data/templates/tiny_mce/tiny_mce/plugins/table/css/table.css +1 -13
- data/templates/tiny_mce/tiny_mce/plugins/table/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/table/editor_plugin_src.js +1 -1183
- data/templates/tiny_mce/tiny_mce/plugins/table/js/cell.js +1 -284
- data/templates/tiny_mce/tiny_mce/plugins/table/js/merge_cells.js +1 -27
- data/templates/tiny_mce/tiny_mce/plugins/table/js/row.js +1 -232
- data/templates/tiny_mce/tiny_mce/plugins/table/js/table.js +1 -450
- data/templates/tiny_mce/tiny_mce/plugins/table/langs/de_dlg.js +1 -0
- data/templates/tiny_mce/tiny_mce/plugins/table/langs/en_dlg.js +1 -74
- data/templates/tiny_mce/tiny_mce/plugins/table/merge_cells.htm +1 -32
- data/templates/tiny_mce/tiny_mce/plugins/table/row.htm +1 -157
- data/templates/tiny_mce/tiny_mce/plugins/table/table.htm +1 -188
- data/templates/tiny_mce/tiny_mce/plugins/template/blank.htm +1 -12
- data/templates/tiny_mce/tiny_mce/plugins/template/css/template.css +1 -23
- data/templates/tiny_mce/tiny_mce/plugins/template/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/template/editor_plugin_src.js +1 -159
- data/templates/tiny_mce/tiny_mce/plugins/template/js/template.js +1 -106
- data/templates/tiny_mce/tiny_mce/plugins/template/langs/de_dlg.js +1 -0
- data/templates/tiny_mce/tiny_mce/plugins/template/langs/en_dlg.js +1 -15
- data/templates/tiny_mce/tiny_mce/plugins/template/template.htm +1 -31
- data/templates/tiny_mce/tiny_mce/plugins/visualchars/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/visualchars/editor_plugin_src.js +1 -83
- data/templates/tiny_mce/tiny_mce/plugins/wordcount/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/wordcount/editor_plugin_src.js +1 -114
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/abbr.htm +1 -142
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/acronym.htm +1 -142
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/attributes.htm +1 -149
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/cite.htm +1 -142
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/css/attributes.css +1 -11
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/css/popup.css +1 -9
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/del.htm +1 -162
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/editor_plugin_src.js +1 -132
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/ins.htm +1 -162
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/js/abbr.js +1 -28
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/js/acronym.js +1 -28
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/js/attributes.js +1 -125
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/js/cite.js +1 -28
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/js/del.js +1 -53
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/js/element_common.js +1 -229
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/js/ins.js +1 -53
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/langs/de_dlg.js +1 -0
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/langs/en_dlg.js +1 -32
- data/templates/tiny_mce/tiny_mce/themes/advanced/about.htm +1 -52
- data/templates/tiny_mce/tiny_mce/themes/advanced/anchor.htm +1 -26
- data/templates/tiny_mce/tiny_mce/themes/advanced/charmap.htm +1 -51
- data/templates/tiny_mce/tiny_mce/themes/advanced/color_picker.htm +1 -74
- data/templates/tiny_mce/tiny_mce/themes/advanced/editor_template.js +1 -1
- data/templates/tiny_mce/tiny_mce/themes/advanced/editor_template_src.js +1 -1328
- data/templates/tiny_mce/tiny_mce/themes/advanced/image.htm +1 -80
- data/templates/tiny_mce/tiny_mce/themes/advanced/js/about.js +1 -73
- data/templates/tiny_mce/tiny_mce/themes/advanced/js/anchor.js +1 -42
- data/templates/tiny_mce/tiny_mce/themes/advanced/js/charmap.js +1 -354
- data/templates/tiny_mce/tiny_mce/themes/advanced/js/color_picker.js +1 -329
- data/templates/tiny_mce/tiny_mce/themes/advanced/js/image.js +1 -247
- data/templates/tiny_mce/tiny_mce/themes/advanced/js/link.js +1 -153
- data/templates/tiny_mce/tiny_mce/themes/advanced/js/source_editor.js +1 -56
- data/templates/tiny_mce/tiny_mce/themes/advanced/langs/de.js +1 -0
- data/templates/tiny_mce/tiny_mce/themes/advanced/langs/de_dlg.js +1 -0
- data/templates/tiny_mce/tiny_mce/themes/advanced/langs/en.js +1 -68
- data/templates/tiny_mce/tiny_mce/themes/advanced/langs/en_dlg.js +1 -54
- data/templates/tiny_mce/tiny_mce/themes/advanced/link.htm +1 -57
- data/templates/tiny_mce/tiny_mce/themes/advanced/shortcuts.htm +1 -47
- data/templates/tiny_mce/tiny_mce/themes/advanced/skins/default/content.css +1 -47
- data/templates/tiny_mce/tiny_mce/themes/advanced/skins/default/dialog.css +1 -117
- data/templates/tiny_mce/tiny_mce/themes/advanced/skins/default/ui.css +1 -213
- data/templates/tiny_mce/tiny_mce/themes/advanced/skins/highcontrast/content.css +1 -23
- data/templates/tiny_mce/tiny_mce/themes/advanced/skins/highcontrast/dialog.css +1 -105
- data/templates/tiny_mce/tiny_mce/themes/advanced/skins/highcontrast/ui.css +1 -101
- data/templates/tiny_mce/tiny_mce/themes/advanced/skins/o2k7/content.css +1 -46
- data/templates/tiny_mce/tiny_mce/themes/advanced/skins/o2k7/dialog.css +1 -116
- data/templates/tiny_mce/tiny_mce/themes/advanced/skins/o2k7/ui.css +1 -215
- data/templates/tiny_mce/tiny_mce/themes/advanced/skins/o2k7/ui_black.css +1 -8
- data/templates/tiny_mce/tiny_mce/themes/advanced/skins/o2k7/ui_silver.css +1 -5
- data/templates/tiny_mce/tiny_mce/themes/advanced/source_editor.htm +1 -25
- data/templates/tiny_mce/tiny_mce/themes/simple/editor_template.js +1 -1
- data/templates/tiny_mce/tiny_mce/themes/simple/editor_template_src.js +1 -84
- data/templates/tiny_mce/tiny_mce/themes/simple/langs/de.js +1 -0
- data/templates/tiny_mce/tiny_mce/themes/simple/langs/en.js +1 -11
- data/templates/tiny_mce/tiny_mce/themes/simple/skins/default/content.css +1 -25
- data/templates/tiny_mce/tiny_mce/themes/simple/skins/default/ui.css +1 -32
- data/templates/tiny_mce/tiny_mce/themes/simple/skins/o2k7/content.css +1 -17
- data/templates/tiny_mce/tiny_mce/themes/simple/skins/o2k7/ui.css +1 -35
- data/templates/tiny_mce/tiny_mce/tiny_mce.js +1 -1
- data/templates/tiny_mce/tiny_mce/tiny_mce_popup.js +1 -5
- data/templates/tiny_mce/tiny_mce/utils/editable_selects.js +1 -70
- data/templates/tiny_mce/tiny_mce/utils/form_utils.js +1 -207
- data/templates/tiny_mce/tiny_mce/utils/mctabs.js +1 -162
- data/templates/tiny_mce/tiny_mce/utils/validate.js +1 -252
- metadata +32 -17
- data/templates/mobile/jquery/mobile/default/form-check-off.png +0 -0
- data/templates/mobile/jquery/mobile/default/form-check-on.png +0 -0
- data/templates/mobile/jquery/mobile/default/form-radio-off.png +0 -0
- data/templates/mobile/jquery/mobile/default/form-radio-on.png +0 -0
- data/templates/mobile/jquery/mobile/valencia/form-check-off.png +0 -0
- data/templates/mobile/jquery/mobile/valencia/form-check-on.png +0 -0
- data/templates/mobile/jquery/mobile/valencia/form-radio-off.png +0 -0
- data/templates/mobile/jquery/mobile/valencia/form-radio-on.png +0 -0
@@ -1,22 +1 @@
|
|
1
|
-
tinyMCEPopup.requireLangPack();
|
2
|
-
|
3
|
-
var EmotionsDialog = {
|
4
|
-
init : function(ed) {
|
5
|
-
tinyMCEPopup.resizeToInnerSize();
|
6
|
-
},
|
7
|
-
|
8
|
-
insert : function(file, title) {
|
9
|
-
var ed = tinyMCEPopup.editor, dom = ed.dom;
|
10
|
-
|
11
|
-
tinyMCEPopup.execCommand('mceInsertContent', false, dom.createHTML('img', {
|
12
|
-
src : tinyMCEPopup.getWindowArg('plugin_url') + '/img/' + file,
|
13
|
-
alt : ed.getLang(title),
|
14
|
-
title : ed.getLang(title),
|
15
|
-
border : 0
|
16
|
-
}));
|
17
|
-
|
18
|
-
tinyMCEPopup.close();
|
19
|
-
}
|
20
|
-
};
|
21
|
-
|
22
|
-
tinyMCEPopup.onInit.add(EmotionsDialog.init, EmotionsDialog);
|
1
|
+
tinyMCEPopup.requireLangPack();var EmotionsDialog={init:function(a){tinyMCEPopup.resizeToInnerSize()},insert:function(b,d){var a=tinyMCEPopup.editor,c=a.dom;tinyMCEPopup.execCommand("mceInsertContent",false,c.createHTML("img",{src:tinyMCEPopup.getWindowArg("plugin_url")+"/img/"+b,alt:a.getLang(d),title:a.getLang(d),border:0}));tinyMCEPopup.close()}};tinyMCEPopup.onInit.add(EmotionsDialog.init,EmotionsDialog);
|
@@ -0,0 +1 @@
|
|
1
|
+
tinyMCE.addI18n("de.emotions_dlg",{cry:"Weinend",cool:"Cool",desc:"Smilies",title:"Smiley einf\u00fcgen",yell:"Br\u00fcllend",wink:"Zwinkernd",undecided:"Unentschlossen",tongue_out:"Zunge raus",surprised:"\u00dcberrascht",smile:"L\u00e4chelnd",sealed:"Verschlossen",money_mouth:"Geld",laughing:"Lachend",kiss:"K\u00fcssend",innocent:"Unschuldig",frown:"Stirnrunzelnd",foot_in_mouth:"Reingefallen",embarassed:"Verlegen"});
|
@@ -1,20 +1 @@
|
|
1
|
-
tinyMCE.addI18n(
|
2
|
-
title:"Insert emotion",
|
3
|
-
desc:"Emotions",
|
4
|
-
cool:"Cool",
|
5
|
-
cry:"Cry",
|
6
|
-
embarassed:"Embarassed",
|
7
|
-
foot_in_mouth:"Foot in mouth",
|
8
|
-
frown:"Frown",
|
9
|
-
innocent:"Innocent",
|
10
|
-
kiss:"Kiss",
|
11
|
-
laughing:"Laughing",
|
12
|
-
money_mouth:"Money mouth",
|
13
|
-
sealed:"Sealed",
|
14
|
-
smile:"Smile",
|
15
|
-
surprised:"Surprised",
|
16
|
-
tongue_out:"Tongue out",
|
17
|
-
undecided:"Undecided",
|
18
|
-
wink:"Wink",
|
19
|
-
yell:"Yell"
|
20
|
-
});
|
1
|
+
tinyMCE.addI18n("en.emotions_dlg",{title:"Insert emotion",desc:"Emotions",cool:"Cool",cry:"Cry",embarassed:"Embarassed",foot_in_mouth:"Foot in mouth",frown:"Frown",innocent:"Innocent",kiss:"Kiss",laughing:"Laughing",money_mouth:"Money mouth",sealed:"Sealed",smile:"Smile",surprised:"Surprised",tongue_out:"Tongue out",undecided:"Undecided",wink:"Wink",yell:"Yell"});
|
@@ -1,22 +1 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
2
|
-
<html xmlns="http://www.w3.org/1999/xhtml">
|
3
|
-
<head>
|
4
|
-
<title>{#example_dlg.title}</title>
|
5
|
-
<script type="text/javascript" src="../../tiny_mce_popup.js"></script>
|
6
|
-
<script type="text/javascript" src="js/dialog.js"></script>
|
7
|
-
</head>
|
8
|
-
<body>
|
9
|
-
|
10
|
-
<form onsubmit="ExampleDialog.insert();return false;" action="#">
|
11
|
-
<p>Here is a example dialog.</p>
|
12
|
-
<p>Selected text: <input id="someval" name="someval" type="text" class="text" /></p>
|
13
|
-
<p>Custom arg: <input id="somearg" name="somearg" type="text" class="text" /></p>
|
14
|
-
|
15
|
-
<div class="mceActionPanel">
|
16
|
-
<input type="button" id="insert" name="insert" value="{#insert}" onclick="ExampleDialog.insert();" />
|
17
|
-
<input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
|
18
|
-
</div>
|
19
|
-
</form>
|
20
|
-
|
21
|
-
</body>
|
22
|
-
</html>
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>{#example_dlg.title}</title><script type="text/javascript" src="../../tiny_mce_popup.js"></script><script type="text/javascript" src="js/dialog.js"></script></head><body><form onsubmit="ExampleDialog.insert();return false;" action="#"><p>Here is a example dialog.</p><p>Selected text:<input id="someval" name="someval" type="text" class="text"/></p><p>Custom arg:<input id="somearg" name="somearg" type="text" class="text"/></p><div class="mceActionPanel"><input type="button" id="insert" name="insert" value="{#insert}" onclick="ExampleDialog.insert();"/><input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();"/></div></form></body></html>
|
@@ -1 +1 @@
|
|
1
|
-
(function(){tinymce.PluginManager.requireLangPack("example");tinymce.create("tinymce.plugins.ExamplePlugin",{init:function(
|
1
|
+
(function(){tinymce.PluginManager.requireLangPack("example");tinymce.create("tinymce.plugins.ExamplePlugin",{init:function(d,c){d.addCommand("mceExample",function(){d.windowManager.open({file:c+"/dialog.htm",width:320+parseInt(d.getLang("example.delta_width",0)),height:120+parseInt(d.getLang("example.delta_height",0)),inline:1},{plugin_url:c,some_custom_arg:"custom arg"})});d.addButton("example",{title:"example.desc",cmd:"mceExample",image:c+"/img/example.gif"});d.onNodeChange.add(function(b,f,a){f.setActive("example",a.nodeName=="IMG")})},createControl:function(c,d){return null},getInfo:function(){return{longname:"Example plugin",author:"Some author",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/example",version:"1.0"}}});tinymce.PluginManager.add("example",tinymce.plugins.ExamplePlugin)})();
|
@@ -1,84 +1 @@
|
|
1
|
-
|
2
|
-
* editor_plugin_src.js
|
3
|
-
*
|
4
|
-
* Copyright 2009, Moxiecode Systems AB
|
5
|
-
* Released under LGPL License.
|
6
|
-
*
|
7
|
-
* License: http://tinymce.moxiecode.com/license
|
8
|
-
* Contributing: http://tinymce.moxiecode.com/contributing
|
9
|
-
*/
|
10
|
-
|
11
|
-
(function() {
|
12
|
-
// Load plugin specific language pack
|
13
|
-
tinymce.PluginManager.requireLangPack('example');
|
14
|
-
|
15
|
-
tinymce.create('tinymce.plugins.ExamplePlugin', {
|
16
|
-
/**
|
17
|
-
* Initializes the plugin, this will be executed after the plugin has been created.
|
18
|
-
* This call is done before the editor instance has finished it's initialization so use the onInit event
|
19
|
-
* of the editor instance to intercept that event.
|
20
|
-
*
|
21
|
-
* @param {tinymce.Editor} ed Editor instance that the plugin is initialized in.
|
22
|
-
* @param {string} url Absolute URL to where the plugin is located.
|
23
|
-
*/
|
24
|
-
init : function(ed, url) {
|
25
|
-
// Register the command so that it can be invoked by using tinyMCE.activeEditor.execCommand('mceExample');
|
26
|
-
ed.addCommand('mceExample', function() {
|
27
|
-
ed.windowManager.open({
|
28
|
-
file : url + '/dialog.htm',
|
29
|
-
width : 320 + parseInt(ed.getLang('example.delta_width', 0)),
|
30
|
-
height : 120 + parseInt(ed.getLang('example.delta_height', 0)),
|
31
|
-
inline : 1
|
32
|
-
}, {
|
33
|
-
plugin_url : url, // Plugin absolute URL
|
34
|
-
some_custom_arg : 'custom arg' // Custom argument
|
35
|
-
});
|
36
|
-
});
|
37
|
-
|
38
|
-
// Register example button
|
39
|
-
ed.addButton('example', {
|
40
|
-
title : 'example.desc',
|
41
|
-
cmd : 'mceExample',
|
42
|
-
image : url + '/img/example.gif'
|
43
|
-
});
|
44
|
-
|
45
|
-
// Add a node change handler, selects the button in the UI when a image is selected
|
46
|
-
ed.onNodeChange.add(function(ed, cm, n) {
|
47
|
-
cm.setActive('example', n.nodeName == 'IMG');
|
48
|
-
});
|
49
|
-
},
|
50
|
-
|
51
|
-
/**
|
52
|
-
* Creates control instances based in the incomming name. This method is normally not
|
53
|
-
* needed since the addButton method of the tinymce.Editor class is a more easy way of adding buttons
|
54
|
-
* but you sometimes need to create more complex controls like listboxes, split buttons etc then this
|
55
|
-
* method can be used to create those.
|
56
|
-
*
|
57
|
-
* @param {String} n Name of the control to create.
|
58
|
-
* @param {tinymce.ControlManager} cm Control manager to use inorder to create new control.
|
59
|
-
* @return {tinymce.ui.Control} New control instance or null if no control was created.
|
60
|
-
*/
|
61
|
-
createControl : function(n, cm) {
|
62
|
-
return null;
|
63
|
-
},
|
64
|
-
|
65
|
-
/**
|
66
|
-
* Returns information about the plugin as a name/value array.
|
67
|
-
* The current keys are longname, author, authorurl, infourl and version.
|
68
|
-
*
|
69
|
-
* @return {Object} Name/value array containing information about the plugin.
|
70
|
-
*/
|
71
|
-
getInfo : function() {
|
72
|
-
return {
|
73
|
-
longname : 'Example plugin',
|
74
|
-
author : 'Some author',
|
75
|
-
authorurl : 'http://tinymce.moxiecode.com',
|
76
|
-
infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/example',
|
77
|
-
version : "1.0"
|
78
|
-
};
|
79
|
-
}
|
80
|
-
});
|
81
|
-
|
82
|
-
// Register plugin
|
83
|
-
tinymce.PluginManager.add('example', tinymce.plugins.ExamplePlugin);
|
84
|
-
})();
|
1
|
+
(function(){tinymce.PluginManager.requireLangPack("example");tinymce.create("tinymce.plugins.ExamplePlugin",{init:function(a,b){a.addCommand("mceExample",function(){a.windowManager.open({file:b+"/dialog.htm",width:320+parseInt(a.getLang("example.delta_width",0)),height:120+parseInt(a.getLang("example.delta_height",0)),inline:1},{plugin_url:b,some_custom_arg:"custom arg"})});a.addButton("example",{title:"example.desc",cmd:"mceExample",image:b+"/img/example.gif"});a.onNodeChange.add(function(d,c,e){c.setActive("example",e.nodeName=="IMG")})},createControl:function(b,a){return null},getInfo:function(){return{longname:"Example plugin",author:"Some author",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/example",version:"1.0"}}});tinymce.PluginManager.add("example",tinymce.plugins.ExamplePlugin)})();
|
@@ -1,19 +1 @@
|
|
1
|
-
tinyMCEPopup.requireLangPack();
|
2
|
-
|
3
|
-
var ExampleDialog = {
|
4
|
-
init : function() {
|
5
|
-
var f = document.forms[0];
|
6
|
-
|
7
|
-
// Get the selected contents as text and place it in the input
|
8
|
-
f.someval.value = tinyMCEPopup.editor.selection.getContent({format : 'text'});
|
9
|
-
f.somearg.value = tinyMCEPopup.getWindowArg('some_custom_arg');
|
10
|
-
},
|
11
|
-
|
12
|
-
insert : function() {
|
13
|
-
// Insert the contents from the input into the document
|
14
|
-
tinyMCEPopup.editor.execCommand('mceInsertContent', false, document.forms[0].someval.value);
|
15
|
-
tinyMCEPopup.close();
|
16
|
-
}
|
17
|
-
};
|
18
|
-
|
19
|
-
tinyMCEPopup.onInit.add(ExampleDialog.init, ExampleDialog);
|
1
|
+
tinyMCEPopup.requireLangPack();var ExampleDialog={init:function(){var a=document.forms[0];a.someval.value=tinyMCEPopup.editor.selection.getContent({format:"text"});a.somearg.value=tinyMCEPopup.getWindowArg("some_custom_arg")},insert:function(){tinyMCEPopup.editor.execCommand("mceInsertContent",false,document.forms[0].someval.value);tinyMCEPopup.close()}};tinyMCEPopup.onInit.add(ExampleDialog.init,ExampleDialog);
|
@@ -1,182 +1 @@
|
|
1
|
-
|
2
|
-
#advanced_tab {
|
3
|
-
display: none;
|
4
|
-
}
|
5
|
-
|
6
|
-
#metatitle, #metakeywords, #metadescription, #metaauthor, #metacopyright {
|
7
|
-
width: 280px;
|
8
|
-
}
|
9
|
-
|
10
|
-
#doctype, #docencoding {
|
11
|
-
width: 200px;
|
12
|
-
}
|
13
|
-
|
14
|
-
#langcode {
|
15
|
-
width: 30px;
|
16
|
-
}
|
17
|
-
|
18
|
-
#bgimage {
|
19
|
-
width: 220px;
|
20
|
-
}
|
21
|
-
|
22
|
-
#fontface {
|
23
|
-
width: 240px;
|
24
|
-
}
|
25
|
-
|
26
|
-
#leftmargin, #rightmargin, #topmargin, #bottommargin {
|
27
|
-
width: 50px;
|
28
|
-
}
|
29
|
-
|
30
|
-
.panel_wrapper div.current {
|
31
|
-
height: 400px;
|
32
|
-
}
|
33
|
-
|
34
|
-
#stylesheet, #style {
|
35
|
-
width: 240px;
|
36
|
-
}
|
37
|
-
|
38
|
-
/* Head list classes */
|
39
|
-
|
40
|
-
.headlistwrapper {
|
41
|
-
width: 100%;
|
42
|
-
}
|
43
|
-
|
44
|
-
.addbutton, .removebutton, .moveupbutton, .movedownbutton {
|
45
|
-
border-top: 1px solid;
|
46
|
-
border-left: 1px solid;
|
47
|
-
border-bottom: 1px solid;
|
48
|
-
border-right: 1px solid;
|
49
|
-
border-color: #F0F0EE;
|
50
|
-
cursor: default;
|
51
|
-
display: block;
|
52
|
-
width: 20px;
|
53
|
-
height: 20px;
|
54
|
-
}
|
55
|
-
|
56
|
-
#doctypes {
|
57
|
-
width: 200px;
|
58
|
-
}
|
59
|
-
|
60
|
-
.addbutton:hover, .removebutton:hover, .moveupbutton:hover, .movedownbutton:hover {
|
61
|
-
border: 1px solid #0A246A;
|
62
|
-
background-color: #B6BDD2;
|
63
|
-
}
|
64
|
-
|
65
|
-
.addbutton {
|
66
|
-
background-image: url('../images/add.gif');
|
67
|
-
float: left;
|
68
|
-
margin-right: 3px;
|
69
|
-
}
|
70
|
-
|
71
|
-
.removebutton {
|
72
|
-
background-image: url('../images/remove.gif');
|
73
|
-
float: left;
|
74
|
-
}
|
75
|
-
|
76
|
-
.moveupbutton {
|
77
|
-
background-image: url('../images/move_up.gif');
|
78
|
-
float: left;
|
79
|
-
margin-right: 3px;
|
80
|
-
}
|
81
|
-
|
82
|
-
.movedownbutton {
|
83
|
-
background-image: url('../images/move_down.gif');
|
84
|
-
float: left;
|
85
|
-
}
|
86
|
-
|
87
|
-
.selected {
|
88
|
-
border: 1px solid #0A246A;
|
89
|
-
background-color: #B6BDD2;
|
90
|
-
}
|
91
|
-
|
92
|
-
.toolbar {
|
93
|
-
width: 100%;
|
94
|
-
}
|
95
|
-
|
96
|
-
#headlist {
|
97
|
-
width: 100%;
|
98
|
-
margin-top: 3px;
|
99
|
-
font-size: 11px;
|
100
|
-
}
|
101
|
-
|
102
|
-
#info, #title_element, #meta_element, #script_element, #style_element, #base_element, #link_element, #comment_element, #unknown_element {
|
103
|
-
display: none;
|
104
|
-
}
|
105
|
-
|
106
|
-
#addmenu {
|
107
|
-
position: absolute;
|
108
|
-
border: 1px solid gray;
|
109
|
-
display: none;
|
110
|
-
z-index: 100;
|
111
|
-
background-color: white;
|
112
|
-
}
|
113
|
-
|
114
|
-
#addmenu a {
|
115
|
-
display: block;
|
116
|
-
width: 100%;
|
117
|
-
line-height: 20px;
|
118
|
-
text-decoration: none;
|
119
|
-
background-color: white;
|
120
|
-
}
|
121
|
-
|
122
|
-
#addmenu a:hover {
|
123
|
-
background-color: #B6BDD2;
|
124
|
-
color: black;
|
125
|
-
}
|
126
|
-
|
127
|
-
#addmenu span {
|
128
|
-
padding-left: 10px;
|
129
|
-
padding-right: 10px;
|
130
|
-
}
|
131
|
-
|
132
|
-
#updateElementPanel {
|
133
|
-
display: none;
|
134
|
-
}
|
135
|
-
|
136
|
-
#script_element .panel_wrapper div.current {
|
137
|
-
height: 108px;
|
138
|
-
}
|
139
|
-
|
140
|
-
#style_element .panel_wrapper div.current {
|
141
|
-
height: 108px;
|
142
|
-
}
|
143
|
-
|
144
|
-
#link_element .panel_wrapper div.current {
|
145
|
-
height: 140px;
|
146
|
-
}
|
147
|
-
|
148
|
-
#element_script_value {
|
149
|
-
width: 100%;
|
150
|
-
height: 100px;
|
151
|
-
}
|
152
|
-
|
153
|
-
#element_comment_value {
|
154
|
-
width: 100%;
|
155
|
-
height: 120px;
|
156
|
-
}
|
157
|
-
|
158
|
-
#element_style_value {
|
159
|
-
width: 100%;
|
160
|
-
height: 100px;
|
161
|
-
}
|
162
|
-
|
163
|
-
#element_title, #element_script_src, #element_meta_name, #element_meta_content, #element_base_href, #element_link_href, #element_link_title {
|
164
|
-
width: 250px;
|
165
|
-
}
|
166
|
-
|
167
|
-
.updateElementButton {
|
168
|
-
margin-top: 3px;
|
169
|
-
}
|
170
|
-
|
171
|
-
/* MSIE specific styles */
|
172
|
-
|
173
|
-
* html .addbutton, * html .removebutton, * html .moveupbutton, * html .movedownbutton {
|
174
|
-
width: 22px;
|
175
|
-
height: 22px;
|
176
|
-
}
|
177
|
-
|
178
|
-
textarea {
|
179
|
-
height: 55px;
|
180
|
-
}
|
181
|
-
|
182
|
-
.panel_wrapper div.current {height:420px;}
|
1
|
+
#advanced_tab{display:none}#metatitle,#metakeywords,#metadescription,#metaauthor,#metacopyright{width:280px}#doctype,#docencoding{width:200px}#langcode{width:30px}#bgimage{width:220px}#fontface{width:240px}#leftmargin,#rightmargin,#topmargin,#bottommargin{width:50px}.panel_wrapper div.current{height:400px}#stylesheet,#style{width:240px}.headlistwrapper{width:100%}.addbutton,.removebutton,.moveupbutton,.movedownbutton{border-top:1px solid;border-left:1px solid;border-bottom:1px solid;border-right:1px solid;border-color:#f0f0ee;cursor:default;display:block;width:20px;height:20px}#doctypes{width:200px}.addbutton:hover,.removebutton:hover,.moveupbutton:hover,.movedownbutton:hover{border:1px solid #0a246a;background-color:#b6bdd2}.addbutton{background-image:url('../images/add.gif');float:left;margin-right:3px}.removebutton{background-image:url('../images/remove.gif');float:left}.moveupbutton{background-image:url('../images/move_up.gif');float:left;margin-right:3px}.movedownbutton{background-image:url('../images/move_down.gif');float:left}.selected{border:1px solid #0a246a;background-color:#b6bdd2}.toolbar{width:100%}#headlist{width:100%;margin-top:3px;font-size:11px}#info,#title_element,#meta_element,#script_element,#style_element,#base_element,#link_element,#comment_element,#unknown_element{display:none}#addmenu{position:absolute;border:1px solid gray;display:none;z-index:100;background-color:white}#addmenu a{display:block;width:100%;line-height:20px;text-decoration:none;background-color:white}#addmenu a:hover{background-color:#b6bdd2;color:black}#addmenu span{padding-left:10px;padding-right:10px}#updateElementPanel{display:none}#script_element .panel_wrapper div.current{height:108px}#style_element .panel_wrapper div.current{height:108px}#link_element .panel_wrapper div.current{height:140px}#element_script_value{width:100%;height:100px}#element_comment_value{width:100%;height:120px}#element_style_value{width:100%;height:100px}#element_title,#element_script_src,#element_meta_name,#element_meta_content,#element_base_href,#element_link_href,#element_link_title{width:250px}.updateElementButton{margin-top:3px}* html .addbutton,* html .removebutton,* html .moveupbutton,* html .movedownbutton{width:22px;height:22px}textarea{height:55px}.panel_wrapper div.current{height:420px}
|
@@ -1 +1 @@
|
|
1
|
-
(function(){tinymce.create("tinymce.plugins.FullPagePlugin",{init:function(
|
1
|
+
(function(){tinymce.create("tinymce.plugins.FullPagePlugin",{init:function(e,d){var f=this;f.editor=e;e.addCommand("mceFullPageProperties",function(){e.windowManager.open({file:d+"/fullpage.htm",width:430+parseInt(e.getLang("fullpage.delta_width",0)),height:495+parseInt(e.getLang("fullpage.delta_height",0)),inline:1},{plugin_url:d,head_html:f.head})});e.addButton("fullpage",{title:"fullpage.desc",cmd:"mceFullPageProperties"});e.onBeforeSetContent.add(f._setContent,f);e.onSetContent.add(f._setBodyAttribs,f);e.onGetContent.add(f._getContent,f)},getInfo:function(){return{longname:"Fullpage",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/fullpage",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_setBodyAttribs:function(v,z){var i,w,t,q,y,o,k,s=this.head.match(/body(.*?)>/i),r="",x,u=this.head.match(/<html([^>]*?)>/i);if(s&&s[1]){i=s[1].match(/\s*(\w+\s*=\s*".*?"|\w+\s*=\s*'.*?'|\w+\s*=\s*\w+|\w+)\s*/g);if(i){for(w=0,t=i.length;w<t;w++){q=i[w].split("=");y=q[0].replace(/\s/,"");o=q[1];if(o){o=o.replace(/^\s+/,"").replace(/\s+$/,"");k=o.match(/^["'](.*)["']$/);if(k){o=k[1]}if(y=="dir"){r=o}}else{o=y}v.dom.setAttrib(v.getBody(),"style",o)}}}if(r==""&&u&&u[1]){x=u[1].match(/dir\s*=\s*["']([^"']*)["']/i);if(x&&x[1]){r=x[1]}}bd=v.getBody();bd.setAttribute("dir",r)},_createSerializer:function(){return new tinymce.dom.Serializer({dom:this.editor.dom,indent:true,apply_source_formatting:true,indent_before:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,ul,li,area,title,meta,head",indent_after:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,ul,li,area,title,meta,head"})},_setContent:function(p,q){var l=this,r,c,n=q.content,m,k="";if(q.format=="raw"&&l.head){return}if(q.source_view&&p.getParam("fullpage_hide_in_source_view")){return}n=n.replace(/<(\/?)BODY/gi,"<$1body");r=n.indexOf("<body");if(r!=-1){r=n.indexOf(">",r);l.head=n.substring(0,r+1);c=n.indexOf("</body",r);if(c==-1){c=n.length}q.content=n.substring(r+1,c);l.foot=n.substring(c);function o(a){return a.replace(/<\/?[A-Z]+/g,function(b){return b.toLowerCase()})}l.head=o(l.head);l.foot=o(l.foot)}else{l.head="";if(p.getParam("fullpage_default_xml_pi")){l.head+='<?xml version="1.0" encoding="'+p.getParam("fullpage_default_encoding","ISO-8859-1")+'" ?>\n'}l.head+=p.getParam("fullpage_default_doctype",'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">');l.head+="\n<html>\n<head>\n<title>"+p.getParam("fullpage_default_title","Untitled document")+"</title>\n";if(m=p.getParam("fullpage_default_encoding")){l.head+='<meta http-equiv="Content-Type" content="'+m+'" />\n'}if(m=p.getParam("fullpage_default_font_family")){k+="font-family: "+m+";"}if(m=p.getParam("fullpage_default_font_size")){k+="font-size: "+m+";"}if(m=p.getParam("fullpage_default_text_color")){k+="color: "+m+";"}l.head+="</head>\n<body"+(k?' style="'+k+'"':"")+">\n";l.foot="\n</body>\n</html>"}},_getContent:function(e,f){var d=this;if(!f.source_view||!e.getParam("fullpage_hide_in_source_view")){f.content=tinymce.trim(d.head)+"\n"+tinymce.trim(f.content)+"\n"+tinymce.trim(d.foot)}}});tinymce.PluginManager.add("fullpage",tinymce.plugins.FullPagePlugin)})();
|
@@ -1,166 +1 @@
|
|
1
|
-
|
2
|
-
* editor_plugin_src.js
|
3
|
-
*
|
4
|
-
* Copyright 2009, Moxiecode Systems AB
|
5
|
-
* Released under LGPL License.
|
6
|
-
*
|
7
|
-
* License: http://tinymce.moxiecode.com/license
|
8
|
-
* Contributing: http://tinymce.moxiecode.com/contributing
|
9
|
-
*/
|
10
|
-
|
11
|
-
(function() {
|
12
|
-
tinymce.create('tinymce.plugins.FullPagePlugin', {
|
13
|
-
init : function(ed, url) {
|
14
|
-
var t = this;
|
15
|
-
|
16
|
-
t.editor = ed;
|
17
|
-
|
18
|
-
// Register commands
|
19
|
-
ed.addCommand('mceFullPageProperties', function() {
|
20
|
-
ed.windowManager.open({
|
21
|
-
file : url + '/fullpage.htm',
|
22
|
-
width : 430 + parseInt(ed.getLang('fullpage.delta_width', 0)),
|
23
|
-
height : 495 + parseInt(ed.getLang('fullpage.delta_height', 0)),
|
24
|
-
inline : 1
|
25
|
-
}, {
|
26
|
-
plugin_url : url,
|
27
|
-
head_html : t.head
|
28
|
-
});
|
29
|
-
});
|
30
|
-
|
31
|
-
// Register buttons
|
32
|
-
ed.addButton('fullpage', {title : 'fullpage.desc', cmd : 'mceFullPageProperties'});
|
33
|
-
|
34
|
-
ed.onBeforeSetContent.add(t._setContent, t);
|
35
|
-
ed.onSetContent.add(t._setBodyAttribs, t);
|
36
|
-
ed.onGetContent.add(t._getContent, t);
|
37
|
-
},
|
38
|
-
|
39
|
-
getInfo : function() {
|
40
|
-
return {
|
41
|
-
longname : 'Fullpage',
|
42
|
-
author : 'Moxiecode Systems AB',
|
43
|
-
authorurl : 'http://tinymce.moxiecode.com',
|
44
|
-
infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/fullpage',
|
45
|
-
version : tinymce.majorVersion + "." + tinymce.minorVersion
|
46
|
-
};
|
47
|
-
},
|
48
|
-
|
49
|
-
// Private plugin internal methods
|
50
|
-
|
51
|
-
_setBodyAttribs : function(ed, o) {
|
52
|
-
var bdattr, i, len, kv, k, v, t, attr = this.head.match(/body(.*?)>/i), bddir = '',htattr, hattr = this.head.match(/<html([^>]*?)>/i);
|
53
|
-
|
54
|
-
if (attr && attr[1]) {
|
55
|
-
bdattr = attr[1].match(/\s*(\w+\s*=\s*".*?"|\w+\s*=\s*'.*?'|\w+\s*=\s*\w+|\w+)\s*/g);
|
56
|
-
|
57
|
-
if (bdattr) {
|
58
|
-
for(i = 0, len = bdattr.length; i < len; i++) {
|
59
|
-
kv = bdattr[i].split('=');
|
60
|
-
k = kv[0].replace(/\s/,'');
|
61
|
-
v = kv[1];
|
62
|
-
|
63
|
-
if (v) {
|
64
|
-
v = v.replace(/^\s+/,'').replace(/\s+$/,'');
|
65
|
-
t = v.match(/^["'](.*)["']$/);
|
66
|
-
|
67
|
-
if (t)
|
68
|
-
v = t[1];
|
69
|
-
if(k == 'dir')
|
70
|
-
bddir = v;
|
71
|
-
} else
|
72
|
-
v = k;
|
73
|
-
|
74
|
-
ed.dom.setAttrib(ed.getBody(), 'style', v);
|
75
|
-
}
|
76
|
-
}
|
77
|
-
}
|
78
|
-
//if found fetch the dir-attribute from the html-tag and apply it to the editor-body
|
79
|
-
if(bddir == '' && hattr && hattr[1]){
|
80
|
-
htattr = hattr[1].match(/dir\s*=\s*["']([^"']*)["']/i);
|
81
|
-
if (htattr && htattr[1])
|
82
|
-
bddir = htattr[1];
|
83
|
-
}
|
84
|
-
bd = ed.getBody();
|
85
|
-
bd.setAttribute('dir', bddir);
|
86
|
-
},
|
87
|
-
|
88
|
-
_createSerializer : function() {
|
89
|
-
return new tinymce.dom.Serializer({
|
90
|
-
dom : this.editor.dom,
|
91
|
-
indent : true,
|
92
|
-
apply_source_formatting : true,
|
93
|
-
indent_before : 'p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,ul,li,area,title,meta,head',
|
94
|
-
indent_after : 'p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,ul,li,area,title,meta,head'
|
95
|
-
});
|
96
|
-
},
|
97
|
-
|
98
|
-
_setContent : function(ed, o) {
|
99
|
-
var t = this, sp, ep, c = o.content, v, st = '';
|
100
|
-
|
101
|
-
// Ignore raw updated if we already have a head, this will fix issues with undo/redo keeping the head/foot separate
|
102
|
-
if (o.format == 'raw' && t.head)
|
103
|
-
return;
|
104
|
-
|
105
|
-
if (o.source_view && ed.getParam('fullpage_hide_in_source_view'))
|
106
|
-
return;
|
107
|
-
|
108
|
-
// Parse out head, body and footer
|
109
|
-
c = c.replace(/<(\/?)BODY/gi, '<$1body');
|
110
|
-
sp = c.indexOf('<body');
|
111
|
-
|
112
|
-
if (sp != -1) {
|
113
|
-
sp = c.indexOf('>', sp);
|
114
|
-
t.head = c.substring(0, sp + 1);
|
115
|
-
|
116
|
-
ep = c.indexOf('</body', sp);
|
117
|
-
if (ep == -1)
|
118
|
-
ep = c.length;
|
119
|
-
|
120
|
-
o.content = c.substring(sp + 1, ep);
|
121
|
-
t.foot = c.substring(ep);
|
122
|
-
|
123
|
-
function low(s) {
|
124
|
-
return s.replace(/<\/?[A-Z]+/g, function(a) {
|
125
|
-
return a.toLowerCase();
|
126
|
-
})
|
127
|
-
};
|
128
|
-
|
129
|
-
t.head = low(t.head);
|
130
|
-
t.foot = low(t.foot);
|
131
|
-
} else {
|
132
|
-
t.head = '';
|
133
|
-
if (ed.getParam('fullpage_default_xml_pi'))
|
134
|
-
t.head += '<?xml version="1.0" encoding="' + ed.getParam('fullpage_default_encoding', 'ISO-8859-1') + '" ?>\n';
|
135
|
-
|
136
|
-
t.head += ed.getParam('fullpage_default_doctype', '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">');
|
137
|
-
t.head += '\n<html>\n<head>\n<title>' + ed.getParam('fullpage_default_title', 'Untitled document') + '</title>\n';
|
138
|
-
|
139
|
-
if (v = ed.getParam('fullpage_default_encoding'))
|
140
|
-
t.head += '<meta http-equiv="Content-Type" content="' + v + '" />\n';
|
141
|
-
|
142
|
-
if (v = ed.getParam('fullpage_default_font_family'))
|
143
|
-
st += 'font-family: ' + v + ';';
|
144
|
-
|
145
|
-
if (v = ed.getParam('fullpage_default_font_size'))
|
146
|
-
st += 'font-size: ' + v + ';';
|
147
|
-
|
148
|
-
if (v = ed.getParam('fullpage_default_text_color'))
|
149
|
-
st += 'color: ' + v + ';';
|
150
|
-
|
151
|
-
t.head += '</head>\n<body' + (st ? ' style="' + st + '"' : '') + '>\n';
|
152
|
-
t.foot = '\n</body>\n</html>';
|
153
|
-
}
|
154
|
-
},
|
155
|
-
|
156
|
-
_getContent : function(ed, o) {
|
157
|
-
var t = this;
|
158
|
-
|
159
|
-
if (!o.source_view || !ed.getParam('fullpage_hide_in_source_view'))
|
160
|
-
o.content = tinymce.trim(t.head) + '\n' + tinymce.trim(o.content) + '\n' + tinymce.trim(t.foot);
|
161
|
-
}
|
162
|
-
});
|
163
|
-
|
164
|
-
// Register plugin
|
165
|
-
tinymce.PluginManager.add('fullpage', tinymce.plugins.FullPagePlugin);
|
166
|
-
})();
|
1
|
+
(function(){tinymce.create("tinymce.plugins.FullPagePlugin",{init:function(a,b){var c=this;c.editor=a;a.addCommand("mceFullPageProperties",function(){a.windowManager.open({file:b+"/fullpage.htm",width:430+parseInt(a.getLang("fullpage.delta_width",0)),height:495+parseInt(a.getLang("fullpage.delta_height",0)),inline:1},{plugin_url:b,head_html:c.head})});a.addButton("fullpage",{title:"fullpage.desc",cmd:"mceFullPageProperties"});a.onBeforeSetContent.add(c._setContent,c);a.onSetContent.add(c._setBodyAttribs,c);a.onGetContent.add(c._getContent,c)},getInfo:function(){return{longname:"Fullpage",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/fullpage",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_setBodyAttribs:function(e,a){var p,d,g,l,b,m,n,h=this.head.match(/body(.*?)>/i),j="",c,f=this.head.match(/<html([^>]*?)>/i);if(h&&h[1]){p=h[1].match(/\s*(\w+\s*=\s*".*?"|\w+\s*=\s*'.*?'|\w+\s*=\s*\w+|\w+)\s*/g);if(p){for(d=0,g=p.length;d<g;d++){l=p[d].split("=");b=l[0].replace(/\s/,"");m=l[1];if(m){m=m.replace(/^\s+/,"").replace(/\s+$/,"");n=m.match(/^["'](.*)["']$/);if(n){m=n[1]}if(b=="dir"){j=m}}else{m=b}e.dom.setAttrib(e.getBody(),"style",m)}}}if(j==""&&f&&f[1]){c=f[1].match(/dir\s*=\s*["']([^"']*)["']/i);if(c&&c[1]){j=c[1]}}bd=e.getBody();bd.setAttribute("dir",j)},_createSerializer:function(){return new tinymce.dom.Serializer({dom:this.editor.dom,indent:true,apply_source_formatting:true,indent_before:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,ul,li,area,title,meta,head",indent_after:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,ul,li,area,title,meta,head"})},_setContent:function(d,b){var h=this,a,j,f=b.content,g,i="";if(b.format=="raw"&&h.head){return}if(b.source_view&&d.getParam("fullpage_hide_in_source_view")){return}f=f.replace(/<(\/?)BODY/gi,"<$1body");a=f.indexOf("<body");if(a!=-1){a=f.indexOf(">",a);h.head=f.substring(0,a+1);j=f.indexOf("</body",a);if(j==-1){j=f.length}b.content=f.substring(a+1,j);h.foot=f.substring(j);function e(c){return c.replace(/<\/?[A-Z]+/g,function(k){return k.toLowerCase()})}h.head=e(h.head);h.foot=e(h.foot)}else{h.head="";if(d.getParam("fullpage_default_xml_pi")){h.head+='<?xml version="1.0" encoding="'+d.getParam("fullpage_default_encoding","ISO-8859-1")+'" ?>\n'}h.head+=d.getParam("fullpage_default_doctype",'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">');h.head+="\n<html>\n<head>\n<title>"+d.getParam("fullpage_default_title","Untitled document")+"</title>\n";if(g=d.getParam("fullpage_default_encoding")){h.head+='<meta http-equiv="Content-Type" content="'+g+'" />\n'}if(g=d.getParam("fullpage_default_font_family")){i+="font-family: "+g+";"}if(g=d.getParam("fullpage_default_font_size")){i+="font-size: "+g+";"}if(g=d.getParam("fullpage_default_text_color")){i+="color: "+g+";"}h.head+="</head>\n<body"+(i?' style="'+i+'"':"")+">\n";h.foot="\n</body>\n</html>"}},_getContent:function(a,c){var b=this;if(!c.source_view||!a.getParam("fullpage_hide_in_source_view")){c.content=tinymce.trim(b.head)+"\n"+tinymce.trim(c.content)+"\n"+tinymce.trim(b.foot)}}});tinymce.PluginManager.add("fullpage",tinymce.plugins.FullPagePlugin)})();
|