use_tinymce 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/MIT-LICENSE +20 -0
- data/README.markdown +48 -0
- data/Rakefile +44 -0
- data/assets/tinymce/changelog.txt +1303 -0
- data/assets/tinymce/examples/accessibility.html +101 -0
- data/assets/tinymce/examples/css/content.css +105 -0
- data/assets/tinymce/examples/css/word.css +53 -0
- data/assets/tinymce/examples/custom_formats.html +111 -0
- data/assets/tinymce/examples/full.html +101 -0
- data/assets/tinymce/examples/index.html +10 -0
- data/assets/tinymce/examples/lists/image_list.js +9 -0
- data/assets/tinymce/examples/lists/link_list.js +10 -0
- data/assets/tinymce/examples/lists/media_list.js +14 -0
- data/assets/tinymce/examples/lists/template_list.js +9 -0
- data/assets/tinymce/examples/media/logo.jpg +0 -0
- data/assets/tinymce/examples/media/logo_over.jpg +0 -0
- data/assets/tinymce/examples/media/sample.avi +0 -0
- data/assets/tinymce/examples/media/sample.dcr +0 -0
- data/assets/tinymce/examples/media/sample.flv +0 -0
- data/assets/tinymce/examples/media/sample.mov +0 -0
- data/assets/tinymce/examples/media/sample.ram +1 -0
- data/assets/tinymce/examples/media/sample.rm +0 -0
- data/assets/tinymce/examples/media/sample.swf +0 -0
- data/assets/tinymce/examples/menu.html +18 -0
- data/assets/tinymce/examples/simple.html +47 -0
- data/assets/tinymce/examples/skins.html +216 -0
- data/assets/tinymce/examples/templates/layout1.htm +15 -0
- data/assets/tinymce/examples/templates/snippet1.htm +1 -0
- data/assets/tinymce/examples/word.html +72 -0
- data/assets/tinymce/jscripts/tiny_mce/langs/en.js +223 -0
- data/assets/tinymce/jscripts/tiny_mce/license.txt +504 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/advhr/css/advhr.css +5 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/advhr/editor_plugin.js +1 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/advhr/editor_plugin_src.js +57 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/advhr/js/rule.js +43 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/advhr/langs/en_dlg.js +7 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/advhr/rule.htm +58 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/advimage/css/advimage.css +13 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/advimage/editor_plugin.js +1 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/advimage/editor_plugin_src.js +50 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/advimage/image.htm +235 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/advimage/img/sample.gif +0 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/advimage/js/image.js +458 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/advimage/langs/en_dlg.js +45 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/advlink/css/advlink.css +8 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/advlink/editor_plugin.js +1 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/advlink/editor_plugin_src.js +61 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/advlink/js/advlink.js +532 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/advlink/langs/en_dlg.js +54 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/advlink/link.htm +338 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/advlist/editor_plugin.js +1 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/advlist/editor_plugin_src.js +161 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/autolink/editor_plugin.js +1 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/autolink/editor_plugin_src.js +169 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/autoresize/editor_plugin.js +1 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/autoresize/editor_plugin_src.js +128 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/autosave/editor_plugin.js +1 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/autosave/editor_plugin_src.js +431 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/autosave/langs/en.js +4 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/bbcode/editor_plugin.js +1 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/bbcode/editor_plugin_src.js +120 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/contextmenu/editor_plugin.js +1 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/contextmenu/editor_plugin_src.js +161 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/directionality/editor_plugin.js +1 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/directionality/editor_plugin_src.js +82 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/emotions/editor_plugin.js +1 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/emotions/editor_plugin_src.js +43 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/emotions/emotions.htm +41 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-cool.gif +0 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-cry.gif +0 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-embarassed.gif +0 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-foot-in-mouth.gif +0 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-frown.gif +0 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-innocent.gif +0 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-kiss.gif +0 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-laughing.gif +0 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-money-mouth.gif +0 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-sealed.gif +0 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-smile.gif +0 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-surprised.gif +0 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-tongue-out.gif +0 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-undecided.gif +0 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-wink.gif +0 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-yell.gif +0 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/emotions/js/emotions.js +22 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/emotions/langs/en_dlg.js +20 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/example/dialog.htm +22 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/example/editor_plugin.js +1 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/example/editor_plugin_src.js +84 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/example/img/example.gif +0 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/example/js/dialog.js +19 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/example/langs/en.js +3 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/example/langs/en_dlg.js +3 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/fullpage/css/fullpage.css +143 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/fullpage/editor_plugin.js +1 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/fullpage/editor_plugin_src.js +399 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/fullpage/fullpage.htm +259 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/fullpage/js/fullpage.js +232 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/fullpage/langs/en_dlg.js +85 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/fullscreen/editor_plugin.js +1 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/fullscreen/editor_plugin_src.js +159 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/fullscreen/fullscreen.htm +109 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/iespell/editor_plugin.js +1 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/iespell/editor_plugin_src.js +54 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/inlinepopups/editor_plugin.js +1 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/inlinepopups/editor_plugin_src.js +696 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/alert.gif +0 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/button.gif +0 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/buttons.gif +0 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/confirm.gif +0 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/corners.gif +0 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/horizontal.gif +0 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/vertical.gif +0 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/window.css +90 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/inlinepopups/template.htm +387 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/insertdatetime/editor_plugin.js +1 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/insertdatetime/editor_plugin_src.js +83 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/layer/editor_plugin.js +1 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/layer/editor_plugin_src.js +214 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/legacyoutput/editor_plugin.js +1 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/legacyoutput/editor_plugin_src.js +139 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/lists/editor_plugin.js +1 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/lists/editor_plugin_src.js +617 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/media/css/media.css +17 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/media/editor_plugin.js +1 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/media/editor_plugin_src.js +770 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/media/js/embed.js +73 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/media/js/media.js +354 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/media/langs/en_dlg.js +109 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/media/media.htm +812 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/media/moxieplayer.swf +0 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/nonbreaking/editor_plugin.js +1 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/nonbreaking/editor_plugin_src.js +53 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/noneditable/editor_plugin.js +1 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/noneditable/editor_plugin_src.js +92 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/pagebreak/editor_plugin.js +1 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/pagebreak/editor_plugin_src.js +74 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/paste/editor_plugin.js +1 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/paste/editor_plugin_src.js +933 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/paste/js/pastetext.js +36 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/paste/js/pasteword.js +51 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/paste/langs/en_dlg.js +5 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/paste/pastetext.htm +27 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/paste/pasteword.htm +21 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/preview/editor_plugin.js +1 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/preview/editor_plugin_src.js +53 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/preview/example.html +28 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/preview/jscripts/embed.js +73 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/preview/preview.html +17 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/print/editor_plugin.js +1 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/print/editor_plugin_src.js +34 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/save/editor_plugin.js +1 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/save/editor_plugin_src.js +101 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/searchreplace/css/searchreplace.css +6 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/searchreplace/editor_plugin.js +1 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/searchreplace/editor_plugin_src.js +61 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/searchreplace/js/searchreplace.js +142 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/searchreplace/langs/en_dlg.js +16 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/searchreplace/searchreplace.htm +100 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/spellchecker/css/content.css +1 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/spellchecker/editor_plugin.js +1 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/spellchecker/editor_plugin_src.js +435 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/spellchecker/img/wline.gif +0 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/style/css/props.css +13 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/style/editor_plugin.js +1 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/style/editor_plugin_src.js +55 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/style/js/props.js +635 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/style/langs/en_dlg.js +70 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/style/props.htm +838 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/tabfocus/editor_plugin.js +1 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/tabfocus/editor_plugin_src.js +114 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/table/cell.htm +178 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/table/css/cell.css +17 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/table/css/row.css +25 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/table/css/table.css +13 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/table/editor_plugin.js +1 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/table/editor_plugin_src.js +1202 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/table/js/cell.js +284 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/table/js/merge_cells.js +27 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/table/js/row.js +232 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/table/js/table.js +450 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/table/langs/en_dlg.js +74 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/table/merge_cells.htm +32 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/table/row.htm +157 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/table/table.htm +188 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/template/blank.htm +12 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/template/css/template.css +23 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/template/editor_plugin.js +1 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/template/editor_plugin_src.js +159 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/template/js/template.js +106 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/template/langs/en_dlg.js +15 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/template/template.htm +31 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/visualchars/editor_plugin.js +1 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/visualchars/editor_plugin_src.js +83 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/wordcount/editor_plugin.js +1 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/wordcount/editor_plugin_src.js +114 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/abbr.htm +142 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/acronym.htm +142 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/attributes.htm +149 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/cite.htm +142 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/css/attributes.css +11 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/css/popup.css +9 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/del.htm +162 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/editor_plugin.js +1 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/editor_plugin_src.js +132 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/ins.htm +162 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/abbr.js +28 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/acronym.js +28 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/attributes.js +111 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/cite.js +28 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/del.js +53 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/element_common.js +229 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/ins.js +53 -0
- data/assets/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/langs/en_dlg.js +32 -0
- data/assets/tinymce/jscripts/tiny_mce/themes/advanced/about.htm +52 -0
- data/assets/tinymce/jscripts/tiny_mce/themes/advanced/anchor.htm +26 -0
- data/assets/tinymce/jscripts/tiny_mce/themes/advanced/charmap.htm +51 -0
- data/assets/tinymce/jscripts/tiny_mce/themes/advanced/color_picker.htm +74 -0
- data/assets/tinymce/jscripts/tiny_mce/themes/advanced/editor_template.js +1 -0
- data/assets/tinymce/jscripts/tiny_mce/themes/advanced/editor_template_src.js +1360 -0
- data/assets/tinymce/jscripts/tiny_mce/themes/advanced/image.htm +80 -0
- data/assets/tinymce/jscripts/tiny_mce/themes/advanced/img/colorpicker.jpg +0 -0
- data/assets/tinymce/jscripts/tiny_mce/themes/advanced/img/flash.gif +0 -0
- data/assets/tinymce/jscripts/tiny_mce/themes/advanced/img/icons.gif +0 -0
- data/assets/tinymce/jscripts/tiny_mce/themes/advanced/img/iframe.gif +0 -0
- data/assets/tinymce/jscripts/tiny_mce/themes/advanced/img/pagebreak.gif +0 -0
- data/assets/tinymce/jscripts/tiny_mce/themes/advanced/img/quicktime.gif +0 -0
- data/assets/tinymce/jscripts/tiny_mce/themes/advanced/img/realmedia.gif +0 -0
- data/assets/tinymce/jscripts/tiny_mce/themes/advanced/img/shockwave.gif +0 -0
- data/assets/tinymce/jscripts/tiny_mce/themes/advanced/img/trans.gif +0 -0
- data/assets/tinymce/jscripts/tiny_mce/themes/advanced/img/video.gif +0 -0
- data/assets/tinymce/jscripts/tiny_mce/themes/advanced/img/windowsmedia.gif +0 -0
- data/assets/tinymce/jscripts/tiny_mce/themes/advanced/js/about.js +73 -0
- data/assets/tinymce/jscripts/tiny_mce/themes/advanced/js/anchor.js +42 -0
- data/assets/tinymce/jscripts/tiny_mce/themes/advanced/js/charmap.js +355 -0
- data/assets/tinymce/jscripts/tiny_mce/themes/advanced/js/color_picker.js +329 -0
- data/assets/tinymce/jscripts/tiny_mce/themes/advanced/js/image.js +247 -0
- data/assets/tinymce/jscripts/tiny_mce/themes/advanced/js/link.js +153 -0
- data/assets/tinymce/jscripts/tiny_mce/themes/advanced/js/source_editor.js +56 -0
- data/assets/tinymce/jscripts/tiny_mce/themes/advanced/langs/en.js +68 -0
- data/assets/tinymce/jscripts/tiny_mce/themes/advanced/langs/en_dlg.js +54 -0
- data/assets/tinymce/jscripts/tiny_mce/themes/advanced/link.htm +57 -0
- data/assets/tinymce/jscripts/tiny_mce/themes/advanced/shortcuts.htm +47 -0
- data/assets/tinymce/jscripts/tiny_mce/themes/advanced/skins/default/content.css +47 -0
- data/assets/tinymce/jscripts/tiny_mce/themes/advanced/skins/default/dialog.css +117 -0
- data/assets/tinymce/jscripts/tiny_mce/themes/advanced/skins/default/img/buttons.png +0 -0
- data/assets/tinymce/jscripts/tiny_mce/themes/advanced/skins/default/img/items.gif +0 -0
- data/assets/tinymce/jscripts/tiny_mce/themes/advanced/skins/default/img/menu_arrow.gif +0 -0
- data/assets/tinymce/jscripts/tiny_mce/themes/advanced/skins/default/img/menu_check.gif +0 -0
- data/assets/tinymce/jscripts/tiny_mce/themes/advanced/skins/default/img/progress.gif +0 -0
- data/assets/tinymce/jscripts/tiny_mce/themes/advanced/skins/default/img/tabs.gif +0 -0
- data/assets/tinymce/jscripts/tiny_mce/themes/advanced/skins/default/ui.css +213 -0
- data/assets/tinymce/jscripts/tiny_mce/themes/advanced/skins/highcontrast/content.css +23 -0
- data/assets/tinymce/jscripts/tiny_mce/themes/advanced/skins/highcontrast/dialog.css +105 -0
- data/assets/tinymce/jscripts/tiny_mce/themes/advanced/skins/highcontrast/ui.css +101 -0
- data/assets/tinymce/jscripts/tiny_mce/themes/advanced/skins/o2k7/content.css +46 -0
- data/assets/tinymce/jscripts/tiny_mce/themes/advanced/skins/o2k7/dialog.css +117 -0
- data/assets/tinymce/jscripts/tiny_mce/themes/advanced/skins/o2k7/img/button_bg.png +0 -0
- data/assets/tinymce/jscripts/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_black.png +0 -0
- data/assets/tinymce/jscripts/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_silver.png +0 -0
- data/assets/tinymce/jscripts/tiny_mce/themes/advanced/skins/o2k7/ui.css +216 -0
- data/assets/tinymce/jscripts/tiny_mce/themes/advanced/skins/o2k7/ui_black.css +8 -0
- data/assets/tinymce/jscripts/tiny_mce/themes/advanced/skins/o2k7/ui_silver.css +5 -0
- data/assets/tinymce/jscripts/tiny_mce/themes/advanced/source_editor.htm +25 -0
- data/assets/tinymce/jscripts/tiny_mce/themes/simple/editor_template.js +1 -0
- data/assets/tinymce/jscripts/tiny_mce/themes/simple/editor_template_src.js +84 -0
- data/assets/tinymce/jscripts/tiny_mce/themes/simple/img/icons.gif +0 -0
- data/assets/tinymce/jscripts/tiny_mce/themes/simple/langs/en.js +11 -0
- data/assets/tinymce/jscripts/tiny_mce/themes/simple/skins/default/content.css +25 -0
- data/assets/tinymce/jscripts/tiny_mce/themes/simple/skins/default/ui.css +32 -0
- data/assets/tinymce/jscripts/tiny_mce/themes/simple/skins/o2k7/content.css +17 -0
- data/assets/tinymce/jscripts/tiny_mce/themes/simple/skins/o2k7/img/button_bg.png +0 -0
- data/assets/tinymce/jscripts/tiny_mce/themes/simple/skins/o2k7/ui.css +35 -0
- data/assets/tinymce/jscripts/tiny_mce/tiny_mce.js +1 -0
- data/assets/tinymce/jscripts/tiny_mce/tiny_mce_popup.js +5 -0
- data/assets/tinymce/jscripts/tiny_mce/tiny_mce_src.js +15812 -0
- data/assets/tinymce/jscripts/tiny_mce/utils/editable_selects.js +70 -0
- data/assets/tinymce/jscripts/tiny_mce/utils/form_utils.js +210 -0
- data/assets/tinymce/jscripts/tiny_mce/utils/mctabs.js +162 -0
- data/assets/tinymce/jscripts/tiny_mce/utils/validate.js +252 -0
- data/assets/use_tinymce_init_advanced.js +15 -0
- data/assets/use_tinymce_init_simple.js +5 -0
- data/lib/tasks/use_tinymce.rake +25 -0
- data/lib/use_tinymce/railengine.rb +12 -0
- data/lib/use_tinymce/use_tinymce.rb +33 -0
- data/lib/use_tinymce.rb +4 -0
- data/test/use_tinymce_base_test.rb +70 -0
- metadata +353 -0
@@ -0,0 +1,259 @@
|
|
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>{#fullpage_dlg.title}</title>
|
5
|
+
<script type="text/javascript" src="../../tiny_mce_popup.js"></script>
|
6
|
+
<script type="text/javascript" src="../../utils/mctabs.js"></script>
|
7
|
+
<script type="text/javascript" src="../../utils/form_utils.js"></script>
|
8
|
+
<script type="text/javascript" src="js/fullpage.js"></script>
|
9
|
+
<link href="css/fullpage.css" rel="stylesheet" type="text/css" />
|
10
|
+
</head>
|
11
|
+
<body id="fullpage" style="display: none">
|
12
|
+
<form onsubmit="FullPageDialog.update();return false;" name="fullpage" action="#">
|
13
|
+
<div class="tabs">
|
14
|
+
<ul>
|
15
|
+
<li id="meta_tab" class="current"><span><a href="javascript:mcTabs.displayTab('meta_tab','meta_panel');" onmousedown="return false;">{#fullpage_dlg.meta_tab}</a></span></li>
|
16
|
+
<li id="appearance_tab"><span><a href="javascript:mcTabs.displayTab('appearance_tab','appearance_panel');" onmousedown="return false;">{#fullpage_dlg.appearance_tab}</a></span></li>
|
17
|
+
</ul>
|
18
|
+
</div>
|
19
|
+
|
20
|
+
<div class="panel_wrapper">
|
21
|
+
<div id="meta_panel" class="panel current">
|
22
|
+
<fieldset>
|
23
|
+
<legend>{#fullpage_dlg.meta_props}</legend>
|
24
|
+
|
25
|
+
<table border="0" cellpadding="4" cellspacing="0">
|
26
|
+
<tr>
|
27
|
+
<td class="nowrap"><label for="metatitle">{#fullpage_dlg.meta_title}</label> </td>
|
28
|
+
<td><input type="text" id="metatitle" name="metatitle" value="" class="mceFocus" /></td>
|
29
|
+
</tr>
|
30
|
+
<tr>
|
31
|
+
<td class="nowrap"><label for="metakeywords">{#fullpage_dlg.meta_keywords}</label> </td>
|
32
|
+
<td><textarea id="metakeywords" name="metakeywords" rows="4"></textarea></td>
|
33
|
+
</tr>
|
34
|
+
<tr>
|
35
|
+
<td class="nowrap"><label for="metadescription">{#fullpage_dlg.meta_description}</label> </td>
|
36
|
+
<td><textarea id="metadescription" name="metadescription" rows="4"></textarea></td>
|
37
|
+
</tr>
|
38
|
+
<tr>
|
39
|
+
<td class="nowrap"><label for="metaauthor">{#fullpage_dlg.author}</label> </td>
|
40
|
+
<td><input type="text" id="metaauthor" name="metaauthor" value="" /></td>
|
41
|
+
</tr>
|
42
|
+
<tr>
|
43
|
+
<td class="nowrap"><label for="metacopyright">{#fullpage_dlg.copyright}</label> </td>
|
44
|
+
<td><input type="text" id="metacopyright" name="metacopyright" value="" /></td>
|
45
|
+
</tr>
|
46
|
+
<tr>
|
47
|
+
<td class="nowrap"><label for="metarobots">{#fullpage_dlg.meta_robots}</label> </td>
|
48
|
+
<td>
|
49
|
+
<select id="metarobots" name="metarobots">
|
50
|
+
<option value="">{#not_set}</option>
|
51
|
+
<option value="index,follow">{#fullpage_dlg.meta_index_follow}</option>
|
52
|
+
<option value="index,nofollow">{#fullpage_dlg.meta_index_nofollow}</option>
|
53
|
+
<option value="noindex,follow">{#fullpage_dlg.meta_noindex_follow}</option>
|
54
|
+
<option value="noindex,nofollow">{#fullpage_dlg.meta_noindex_nofollow}</option>
|
55
|
+
</select>
|
56
|
+
</td>
|
57
|
+
</tr>
|
58
|
+
</table>
|
59
|
+
</fieldset>
|
60
|
+
|
61
|
+
<fieldset>
|
62
|
+
<legend>{#fullpage_dlg.langprops}</legend>
|
63
|
+
|
64
|
+
<table border="0" cellpadding="4" cellspacing="0">
|
65
|
+
<tr>
|
66
|
+
<td class="column1"><label for="docencoding">{#fullpage_dlg.encoding}</label></td>
|
67
|
+
<td>
|
68
|
+
<select id="docencoding" name="docencoding">
|
69
|
+
<option value="">{#not_set}</option>
|
70
|
+
</select>
|
71
|
+
</td>
|
72
|
+
</tr>
|
73
|
+
<tr>
|
74
|
+
<td class="nowrap"><label for="doctype">{#fullpage_dlg.doctypes}</label> </td>
|
75
|
+
<td>
|
76
|
+
<select id="doctype" name="doctype">
|
77
|
+
<option value="">{#not_set}</option>
|
78
|
+
</select>
|
79
|
+
</td>
|
80
|
+
</tr>
|
81
|
+
<tr>
|
82
|
+
<td class="nowrap"><label for="langcode">{#fullpage_dlg.langcode}</label> </td>
|
83
|
+
<td><input type="text" id="langcode" name="langcode" value="" /></td>
|
84
|
+
</tr>
|
85
|
+
<tr>
|
86
|
+
<td class="column1"><label for="langdir">{#fullpage_dlg.langdir}</label></td>
|
87
|
+
<td>
|
88
|
+
<select id="langdir" name="langdir">
|
89
|
+
<option value="">{#not_set}</option>
|
90
|
+
<option value="ltr">{#fullpage_dlg.ltr}</option>
|
91
|
+
<option value="rtl">{#fullpage_dlg.rtl}</option>
|
92
|
+
</select>
|
93
|
+
</td>
|
94
|
+
</tr>
|
95
|
+
<tr>
|
96
|
+
<td class="nowrap"><label for="xml_pi">{#fullpage_dlg.xml_pi}</label> </td>
|
97
|
+
<td><input type="checkbox" id="xml_pi" name="xml_pi" class="checkbox" /></td>
|
98
|
+
</tr>
|
99
|
+
</table>
|
100
|
+
</fieldset>
|
101
|
+
</div>
|
102
|
+
|
103
|
+
<div id="appearance_panel" class="panel">
|
104
|
+
<fieldset>
|
105
|
+
<legend>{#fullpage_dlg.appearance_textprops}</legend>
|
106
|
+
|
107
|
+
<table border="0" cellpadding="4" cellspacing="0">
|
108
|
+
<tr>
|
109
|
+
<td class="column1"><label for="fontface">{#fullpage_dlg.fontface}</label></td>
|
110
|
+
<td>
|
111
|
+
<select id="fontface" name="fontface" onchange="FullPageDialog.changedStyleProp();">
|
112
|
+
<option value="">{#not_set}</option>
|
113
|
+
</select>
|
114
|
+
</td>
|
115
|
+
</tr>
|
116
|
+
|
117
|
+
<tr>
|
118
|
+
<td class="column1"><label for="fontsize">{#fullpage_dlg.fontsize}</label></td>
|
119
|
+
<td>
|
120
|
+
<select id="fontsize" name="fontsize" onchange="FullPageDialog.changedStyleProp();">
|
121
|
+
<option value="">{#not_set}</option>
|
122
|
+
</select>
|
123
|
+
</td>
|
124
|
+
</tr>
|
125
|
+
|
126
|
+
<tr>
|
127
|
+
<td class="column1"><label for="textcolor">{#fullpage_dlg.textcolor}</label></td>
|
128
|
+
<td>
|
129
|
+
<table border="0" cellpadding="0" cellspacing="0">
|
130
|
+
<tr>
|
131
|
+
<td><input id="textcolor" name="textcolor" type="text" value="" size="9" onchange="updateColor('textcolor_pick','textcolor');FullPageDialog.changedStyleProp();" /></td>
|
132
|
+
<td id="textcolor_pickcontainer"> </td>
|
133
|
+
</tr>
|
134
|
+
</table>
|
135
|
+
</td>
|
136
|
+
</tr>
|
137
|
+
</table>
|
138
|
+
</fieldset>
|
139
|
+
|
140
|
+
<fieldset>
|
141
|
+
<legend>{#fullpage_dlg.appearance_bgprops}</legend>
|
142
|
+
|
143
|
+
<table border="0" cellpadding="4" cellspacing="0">
|
144
|
+
<tr>
|
145
|
+
<td class="column1"><label for="bgimage">{#fullpage_dlg.bgimage}</label></td>
|
146
|
+
<td>
|
147
|
+
<table border="0" cellpadding="0" cellspacing="0">
|
148
|
+
<tr>
|
149
|
+
<td><input id="bgimage" name="bgimage" type="text" value="" onchange="FullPageDialog.changedStyleProp();" /></td>
|
150
|
+
<td id="bgimage_pickcontainer"> </td>
|
151
|
+
</tr>
|
152
|
+
</table>
|
153
|
+
</td>
|
154
|
+
</tr>
|
155
|
+
<tr>
|
156
|
+
<td class="column1"><label for="bgcolor">{#fullpage_dlg.bgcolor}</label></td>
|
157
|
+
<td>
|
158
|
+
<table border="0" cellpadding="0" cellspacing="0">
|
159
|
+
<tr>
|
160
|
+
<td><input id="bgcolor" name="bgcolor" type="text" value="" size="9" onchange="updateColor('bgcolor_pick','bgcolor');FullPageDialog.changedStyleProp();" /></td>
|
161
|
+
<td id="bgcolor_pickcontainer"> </td>
|
162
|
+
</tr>
|
163
|
+
</table>
|
164
|
+
</td>
|
165
|
+
</tr>
|
166
|
+
</table>
|
167
|
+
</fieldset>
|
168
|
+
|
169
|
+
<fieldset>
|
170
|
+
<legend>{#fullpage_dlg.appearance_marginprops}</legend>
|
171
|
+
|
172
|
+
<table border="0" cellpadding="4" cellspacing="0">
|
173
|
+
<tr>
|
174
|
+
<td class="column1"><label for="leftmargin">{#fullpage_dlg.left_margin}</label></td>
|
175
|
+
<td><input id="leftmargin" name="leftmargin" type="text" value="" onchange="FullPageDialog.changedStyleProp();" /></td>
|
176
|
+
<td class="column1"><label for="rightmargin">{#fullpage_dlg.right_margin}</label></td>
|
177
|
+
<td><input id="rightmargin" name="rightmargin" type="text" value="" onchange="FullPageDialog.changedStyleProp();" /></td>
|
178
|
+
</tr>
|
179
|
+
<tr>
|
180
|
+
<td class="column1"><label for="topmargin">{#fullpage_dlg.top_margin}</label></td>
|
181
|
+
<td><input id="topmargin" name="topmargin" type="text" value="" onchange="FullPageDialog.changedStyleProp();" /></td>
|
182
|
+
<td class="column1"><label for="bottommargin">{#fullpage_dlg.bottom_margin}</label></td>
|
183
|
+
<td><input id="bottommargin" name="bottommargin" type="text" value="" onchange="FullPageDialog.changedStyleProp();" /></td>
|
184
|
+
</tr>
|
185
|
+
</table>
|
186
|
+
</fieldset>
|
187
|
+
|
188
|
+
<fieldset>
|
189
|
+
<legend>{#fullpage_dlg.appearance_linkprops}</legend>
|
190
|
+
|
191
|
+
<table border="0" cellpadding="4" cellspacing="0">
|
192
|
+
<tr>
|
193
|
+
<td class="column1"><label for="link_color">{#fullpage_dlg.link_color}</label></td>
|
194
|
+
<td>
|
195
|
+
<table border="0" cellpadding="0" cellspacing="0">
|
196
|
+
<tr>
|
197
|
+
<td><input id="link_color" name="link_color" type="text" value="" size="9" onchange="updateColor('link_color_pick','link_color');FullPageDialog.changedStyleProp();" /></td>
|
198
|
+
<td id="link_color_pickcontainer"> </td>
|
199
|
+
</tr>
|
200
|
+
</table>
|
201
|
+
</td>
|
202
|
+
|
203
|
+
<td class="column1"><label for="visited_color">{#fullpage_dlg.visited_color}</label></td>
|
204
|
+
<td>
|
205
|
+
<table border="0" cellpadding="0" cellspacing="0">
|
206
|
+
<tr>
|
207
|
+
<td><input id="visited_color" name="visited_color" type="text" value="" size="9" onchange="updateColor('visited_color_pick','visited_color');FullPageDialog.changedStyleProp();" /></td>
|
208
|
+
<td id="visited_color_pickcontainer"> </td>
|
209
|
+
</tr>
|
210
|
+
</table>
|
211
|
+
</td>
|
212
|
+
</tr>
|
213
|
+
|
214
|
+
<tr>
|
215
|
+
<td class="column1"><label for="active_color">{#fullpage_dlg.active_color}</label></td>
|
216
|
+
<td>
|
217
|
+
<table border="0" cellpadding="0" cellspacing="0">
|
218
|
+
<tr>
|
219
|
+
<td><input id="active_color" name="active_color" type="text" value="" size="9" onchange="updateColor('active_color_pick','active_color');FullPageDialog.changedStyleProp();" /></td>
|
220
|
+
<td id="active_color_pickcontainer"> </td>
|
221
|
+
</tr>
|
222
|
+
</table>
|
223
|
+
</td>
|
224
|
+
|
225
|
+
<td> </td>
|
226
|
+
<td> </td>
|
227
|
+
</tr>
|
228
|
+
</table>
|
229
|
+
</fieldset>
|
230
|
+
|
231
|
+
<fieldset>
|
232
|
+
<legend>{#fullpage_dlg.appearance_style}</legend>
|
233
|
+
|
234
|
+
<table border="0" cellpadding="4" cellspacing="0">
|
235
|
+
<tr>
|
236
|
+
<td class="column1"><label for="stylesheet">{#fullpage_dlg.stylesheet}</label></td>
|
237
|
+
<td><table border="0" cellpadding="0" cellspacing="0">
|
238
|
+
<tr>
|
239
|
+
<td><input id="stylesheet" name="stylesheet" type="text" value="" /></td>
|
240
|
+
<td id="stylesheet_browsercontainer"> </td>
|
241
|
+
</tr>
|
242
|
+
</table></td>
|
243
|
+
</tr>
|
244
|
+
<tr>
|
245
|
+
<td class="column1"><label for="style">{#fullpage_dlg.style}</label></td>
|
246
|
+
<td><input id="style" name="style" type="text" value="" onchange="FullPageDialog.changedStyle();" /></td>
|
247
|
+
</tr>
|
248
|
+
</table>
|
249
|
+
</fieldset>
|
250
|
+
</div>
|
251
|
+
</div>
|
252
|
+
|
253
|
+
<div class="mceActionPanel">
|
254
|
+
<input type="submit" id="insert" name="update" value="{#update}" />
|
255
|
+
<input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
|
256
|
+
</div>
|
257
|
+
</form>
|
258
|
+
</body>
|
259
|
+
</html>
|
@@ -0,0 +1,232 @@
|
|
1
|
+
/**
|
2
|
+
* fullpage.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
|
+
tinyMCEPopup.requireLangPack();
|
13
|
+
|
14
|
+
var defaultDocTypes =
|
15
|
+
'XHTML 1.0 Transitional=<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">,' +
|
16
|
+
'XHTML 1.0 Frameset=<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">,' +
|
17
|
+
'XHTML 1.0 Strict=<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">,' +
|
18
|
+
'XHTML 1.1=<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">,' +
|
19
|
+
'HTML 4.01 Transitional=<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">,' +
|
20
|
+
'HTML 4.01 Strict=<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">,' +
|
21
|
+
'HTML 4.01 Frameset=<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">';
|
22
|
+
|
23
|
+
var defaultEncodings =
|
24
|
+
'Western european (iso-8859-1)=iso-8859-1,' +
|
25
|
+
'Central European (iso-8859-2)=iso-8859-2,' +
|
26
|
+
'Unicode (UTF-8)=utf-8,' +
|
27
|
+
'Chinese traditional (Big5)=big5,' +
|
28
|
+
'Cyrillic (iso-8859-5)=iso-8859-5,' +
|
29
|
+
'Japanese (iso-2022-jp)=iso-2022-jp,' +
|
30
|
+
'Greek (iso-8859-7)=iso-8859-7,' +
|
31
|
+
'Korean (iso-2022-kr)=iso-2022-kr,' +
|
32
|
+
'ASCII (us-ascii)=us-ascii';
|
33
|
+
|
34
|
+
var defaultFontNames = 'Arial=arial,helvetica,sans-serif;Courier New=courier new,courier,monospace;Georgia=georgia,times new roman,times,serif;Tahoma=tahoma,arial,helvetica,sans-serif;Times New Roman=times new roman,times,serif;Verdana=verdana,arial,helvetica,sans-serif;Impact=impact;WingDings=wingdings';
|
35
|
+
var defaultFontSizes = '10px,11px,12px,13px,14px,15px,16px';
|
36
|
+
|
37
|
+
function setVal(id, value) {
|
38
|
+
var elm = document.getElementById(id);
|
39
|
+
|
40
|
+
if (elm) {
|
41
|
+
value = value || '';
|
42
|
+
|
43
|
+
if (elm.nodeName == "SELECT")
|
44
|
+
selectByValue(document.forms[0], id, value);
|
45
|
+
else if (elm.type == "checkbox")
|
46
|
+
elm.checked = !!value;
|
47
|
+
else
|
48
|
+
elm.value = value;
|
49
|
+
}
|
50
|
+
};
|
51
|
+
|
52
|
+
function getVal(id) {
|
53
|
+
var elm = document.getElementById(id);
|
54
|
+
|
55
|
+
if (elm.nodeName == "SELECT")
|
56
|
+
return elm.options[elm.selectedIndex].value;
|
57
|
+
|
58
|
+
if (elm.type == "checkbox")
|
59
|
+
return elm.checked;
|
60
|
+
|
61
|
+
return elm.value;
|
62
|
+
};
|
63
|
+
|
64
|
+
window.FullPageDialog = {
|
65
|
+
changedStyle : function() {
|
66
|
+
var val, styles = tinyMCEPopup.editor.dom.parseStyle(getVal('style'));
|
67
|
+
|
68
|
+
setVal('fontface', styles['font-face']);
|
69
|
+
setVal('fontsize', styles['font-size']);
|
70
|
+
setVal('textcolor', styles['color']);
|
71
|
+
|
72
|
+
if (val = styles['background-image'])
|
73
|
+
setVal('bgimage', val.replace(new RegExp("url\\('?([^']*)'?\\)", 'gi'), "$1"));
|
74
|
+
else
|
75
|
+
setVal('bgimage', '');
|
76
|
+
|
77
|
+
setVal('bgcolor', styles['background-color']);
|
78
|
+
|
79
|
+
// Reset margin form elements
|
80
|
+
setVal('topmargin', '');
|
81
|
+
setVal('rightmargin', '');
|
82
|
+
setVal('bottommargin', '');
|
83
|
+
setVal('leftmargin', '');
|
84
|
+
|
85
|
+
// Expand margin
|
86
|
+
if (val = styles['margin']) {
|
87
|
+
val = val.split(' ');
|
88
|
+
styles['margin-top'] = val[0] || '';
|
89
|
+
styles['margin-right'] = val[1] || val[0] || '';
|
90
|
+
styles['margin-bottom'] = val[2] || val[0] || '';
|
91
|
+
styles['margin-left'] = val[3] || val[0] || '';
|
92
|
+
}
|
93
|
+
|
94
|
+
if (val = styles['margin-top'])
|
95
|
+
setVal('topmargin', val.replace(/px/, ''));
|
96
|
+
|
97
|
+
if (val = styles['margin-right'])
|
98
|
+
setVal('rightmargin', val.replace(/px/, ''));
|
99
|
+
|
100
|
+
if (val = styles['margin-bottom'])
|
101
|
+
setVal('bottommargin', val.replace(/px/, ''));
|
102
|
+
|
103
|
+
if (val = styles['margin-left'])
|
104
|
+
setVal('leftmargin', val.replace(/px/, ''));
|
105
|
+
|
106
|
+
updateColor('bgcolor_pick', 'bgcolor');
|
107
|
+
updateColor('textcolor_pick', 'textcolor');
|
108
|
+
},
|
109
|
+
|
110
|
+
changedStyleProp : function() {
|
111
|
+
var val, dom = tinyMCEPopup.editor.dom, styles = dom.parseStyle(getVal('style'));
|
112
|
+
|
113
|
+
styles['font-face'] = getVal('fontface');
|
114
|
+
styles['font-size'] = getVal('fontsize');
|
115
|
+
styles['color'] = getVal('textcolor');
|
116
|
+
styles['background-color'] = getVal('bgcolor');
|
117
|
+
|
118
|
+
if (val = getVal('bgimage'))
|
119
|
+
styles['background-image'] = "url('" + val + "')";
|
120
|
+
else
|
121
|
+
styles['background-image'] = '';
|
122
|
+
|
123
|
+
delete styles['margin'];
|
124
|
+
|
125
|
+
if (val = getVal('topmargin'))
|
126
|
+
styles['margin-top'] = val + "px";
|
127
|
+
else
|
128
|
+
styles['margin-top'] = '';
|
129
|
+
|
130
|
+
if (val = getVal('rightmargin'))
|
131
|
+
styles['margin-right'] = val + "px";
|
132
|
+
else
|
133
|
+
styles['margin-right'] = '';
|
134
|
+
|
135
|
+
if (val = getVal('bottommargin'))
|
136
|
+
styles['margin-bottom'] = val + "px";
|
137
|
+
else
|
138
|
+
styles['margin-bottom'] = '';
|
139
|
+
|
140
|
+
if (val = getVal('leftmargin'))
|
141
|
+
styles['margin-left'] = val + "px";
|
142
|
+
else
|
143
|
+
styles['margin-left'] = '';
|
144
|
+
|
145
|
+
// Serialize, parse and reserialize this will compress redundant styles
|
146
|
+
setVal('style', dom.serializeStyle(dom.parseStyle(dom.serializeStyle(styles))));
|
147
|
+
this.changedStyle();
|
148
|
+
},
|
149
|
+
|
150
|
+
update : function() {
|
151
|
+
var data = {};
|
152
|
+
|
153
|
+
tinymce.each(tinyMCEPopup.dom.select('select,input,textarea'), function(node) {
|
154
|
+
data[node.id] = getVal(node.id);
|
155
|
+
});
|
156
|
+
|
157
|
+
tinyMCEPopup.editor.plugins.fullpage._dataToHtml(data);
|
158
|
+
tinyMCEPopup.close();
|
159
|
+
}
|
160
|
+
};
|
161
|
+
|
162
|
+
function init() {
|
163
|
+
var form = document.forms[0], i, item, list, editor = tinyMCEPopup.editor;
|
164
|
+
|
165
|
+
// Setup doctype select box
|
166
|
+
list = editor.getParam("fullpage_doctypes", defaultDocTypes).split(',');
|
167
|
+
for (i = 0; i < list.length; i++) {
|
168
|
+
item = list[i].split('=');
|
169
|
+
|
170
|
+
if (item.length > 1)
|
171
|
+
addSelectValue(form, 'doctype', item[0], item[1]);
|
172
|
+
}
|
173
|
+
|
174
|
+
// Setup fonts select box
|
175
|
+
list = editor.getParam("fullpage_fonts", defaultFontNames).split(';');
|
176
|
+
for (i = 0; i < list.length; i++) {
|
177
|
+
item = list[i].split('=');
|
178
|
+
|
179
|
+
if (item.length > 1)
|
180
|
+
addSelectValue(form, 'fontface', item[0], item[1]);
|
181
|
+
}
|
182
|
+
|
183
|
+
// Setup fontsize select box
|
184
|
+
list = editor.getParam("fullpage_fontsizes", defaultFontSizes).split(',');
|
185
|
+
for (i = 0; i < list.length; i++)
|
186
|
+
addSelectValue(form, 'fontsize', list[i], list[i]);
|
187
|
+
|
188
|
+
// Setup encodings select box
|
189
|
+
list = editor.getParam("fullpage_encodings", defaultEncodings).split(',');
|
190
|
+
for (i = 0; i < list.length; i++) {
|
191
|
+
item = list[i].split('=');
|
192
|
+
|
193
|
+
if (item.length > 1)
|
194
|
+
addSelectValue(form, 'docencoding', item[0], item[1]);
|
195
|
+
}
|
196
|
+
|
197
|
+
// Setup color pickers
|
198
|
+
document.getElementById('bgcolor_pickcontainer').innerHTML = getColorPickerHTML('bgcolor_pick','bgcolor');
|
199
|
+
document.getElementById('link_color_pickcontainer').innerHTML = getColorPickerHTML('link_color_pick','link_color');
|
200
|
+
document.getElementById('visited_color_pickcontainer').innerHTML = getColorPickerHTML('visited_color_pick','visited_color');
|
201
|
+
document.getElementById('active_color_pickcontainer').innerHTML = getColorPickerHTML('active_color_pick','active_color');
|
202
|
+
document.getElementById('textcolor_pickcontainer').innerHTML = getColorPickerHTML('textcolor_pick','textcolor');
|
203
|
+
document.getElementById('stylesheet_browsercontainer').innerHTML = getBrowserHTML('stylesheetbrowser','stylesheet','file','fullpage');
|
204
|
+
document.getElementById('bgimage_pickcontainer').innerHTML = getBrowserHTML('bgimage_browser','bgimage','image','fullpage');
|
205
|
+
|
206
|
+
// Resize some elements
|
207
|
+
if (isVisible('stylesheetbrowser'))
|
208
|
+
document.getElementById('stylesheet').style.width = '220px';
|
209
|
+
|
210
|
+
if (isVisible('link_href_browser'))
|
211
|
+
document.getElementById('element_link_href').style.width = '230px';
|
212
|
+
|
213
|
+
if (isVisible('bgimage_browser'))
|
214
|
+
document.getElementById('bgimage').style.width = '210px';
|
215
|
+
|
216
|
+
// Update form
|
217
|
+
tinymce.each(tinyMCEPopup.getWindowArg('data'), function(value, key) {
|
218
|
+
setVal(key, value);
|
219
|
+
});
|
220
|
+
|
221
|
+
FullPageDialog.changedStyle();
|
222
|
+
|
223
|
+
// Update colors
|
224
|
+
updateColor('textcolor_pick', 'textcolor');
|
225
|
+
updateColor('bgcolor_pick', 'bgcolor');
|
226
|
+
updateColor('visited_color_pick', 'visited_color');
|
227
|
+
updateColor('active_color_pick', 'active_color');
|
228
|
+
updateColor('link_color_pick', 'link_color');
|
229
|
+
};
|
230
|
+
|
231
|
+
tinyMCEPopup.onInit.add(init);
|
232
|
+
})();
|
@@ -0,0 +1,85 @@
|
|
1
|
+
tinyMCE.addI18n('en.fullpage_dlg',{
|
2
|
+
title:"Document properties",
|
3
|
+
meta_tab:"General",
|
4
|
+
appearance_tab:"Appearance",
|
5
|
+
advanced_tab:"Advanced",
|
6
|
+
meta_props:"Meta information",
|
7
|
+
langprops:"Language and encoding",
|
8
|
+
meta_title:"Title",
|
9
|
+
meta_keywords:"Keywords",
|
10
|
+
meta_description:"Description",
|
11
|
+
meta_robots:"Robots",
|
12
|
+
doctypes:"Doctype",
|
13
|
+
langcode:"Language code",
|
14
|
+
langdir:"Language direction",
|
15
|
+
ltr:"Left to right",
|
16
|
+
rtl:"Right to left",
|
17
|
+
xml_pi:"XML declaration",
|
18
|
+
encoding:"Character encoding",
|
19
|
+
appearance_bgprops:"Background properties",
|
20
|
+
appearance_marginprops:"Body margins",
|
21
|
+
appearance_linkprops:"Link colors",
|
22
|
+
appearance_textprops:"Text properties",
|
23
|
+
bgcolor:"Background color",
|
24
|
+
bgimage:"Background image",
|
25
|
+
left_margin:"Left margin",
|
26
|
+
right_margin:"Right margin",
|
27
|
+
top_margin:"Top margin",
|
28
|
+
bottom_margin:"Bottom margin",
|
29
|
+
text_color:"Text color",
|
30
|
+
font_size:"Font size",
|
31
|
+
font_face:"Font face",
|
32
|
+
link_color:"Link color",
|
33
|
+
hover_color:"Hover color",
|
34
|
+
visited_color:"Visited color",
|
35
|
+
active_color:"Active color",
|
36
|
+
textcolor:"Color",
|
37
|
+
fontsize:"Font size",
|
38
|
+
fontface:"Font family",
|
39
|
+
meta_index_follow:"Index and follow the links",
|
40
|
+
meta_index_nofollow:"Index and don't follow the links",
|
41
|
+
meta_noindex_follow:"Do not index but follow the links",
|
42
|
+
meta_noindex_nofollow:"Do not index and don\'t follow the links",
|
43
|
+
appearance_style:"Stylesheet and style properties",
|
44
|
+
stylesheet:"Stylesheet",
|
45
|
+
style:"Style",
|
46
|
+
author:"Author",
|
47
|
+
copyright:"Copyright",
|
48
|
+
add:"Add new element",
|
49
|
+
remove:"Remove selected element",
|
50
|
+
moveup:"Move selected element up",
|
51
|
+
movedown:"Move selected element down",
|
52
|
+
head_elements:"Head elements",
|
53
|
+
info:"Information",
|
54
|
+
add_title:"Title element",
|
55
|
+
add_meta:"Meta element",
|
56
|
+
add_script:"Script element",
|
57
|
+
add_style:"Style element",
|
58
|
+
add_link:"Link element",
|
59
|
+
add_base:"Base element",
|
60
|
+
add_comment:"Comment node",
|
61
|
+
title_element:"Title element",
|
62
|
+
script_element:"Script element",
|
63
|
+
style_element:"Style element",
|
64
|
+
base_element:"Base element",
|
65
|
+
link_element:"Link element",
|
66
|
+
meta_element:"Meta element",
|
67
|
+
comment_element:"Comment",
|
68
|
+
src:"Src",
|
69
|
+
language:"Language",
|
70
|
+
href:"Href",
|
71
|
+
target:"Target",
|
72
|
+
type:"Type",
|
73
|
+
charset:"Charset",
|
74
|
+
defer:"Defer",
|
75
|
+
media:"Media",
|
76
|
+
properties:"Properties",
|
77
|
+
name:"Name",
|
78
|
+
value:"Value",
|
79
|
+
content:"Content",
|
80
|
+
rel:"Rel",
|
81
|
+
rev:"Rev",
|
82
|
+
hreflang:"Href lang",
|
83
|
+
general_props:"General",
|
84
|
+
advanced_props:"Advanced"
|
85
|
+
});
|
@@ -0,0 +1 @@
|
|
1
|
+
(function(){var a=tinymce.DOM;tinymce.create("tinymce.plugins.FullScreenPlugin",{init:function(d,e){var f=this,g={},c,b;f.editor=d;d.addCommand("mceFullScreen",function(){var i,j=a.doc.documentElement;if(d.getParam("fullscreen_is_enabled")){if(d.getParam("fullscreen_new_window")){closeFullscreen()}else{a.win.setTimeout(function(){tinymce.dom.Event.remove(a.win,"resize",f.resizeFunc);tinyMCE.get(d.getParam("fullscreen_editor_id")).setContent(d.getContent({format:"raw"}),{format:"raw"});tinyMCE.remove(d);a.remove("mce_fullscreen_container");j.style.overflow=d.getParam("fullscreen_html_overflow");a.setStyle(a.doc.body,"overflow",d.getParam("fullscreen_overflow"));a.win.scrollTo(d.getParam("fullscreen_scrollx"),d.getParam("fullscreen_scrolly"));tinyMCE.settings=tinyMCE.oldSettings},10)}return}if(d.getParam("fullscreen_new_window")){i=a.win.open(e+"/fullscreen.htm","mceFullScreenPopup","fullscreen=yes,menubar=no,toolbar=no,scrollbars=no,resizable=yes,left=0,top=0,width="+screen.availWidth+",height="+screen.availHeight);try{i.resizeTo(screen.availWidth,screen.availHeight)}catch(h){}}else{tinyMCE.oldSettings=tinyMCE.settings;g.fullscreen_overflow=a.getStyle(a.doc.body,"overflow",1)||"auto";g.fullscreen_html_overflow=a.getStyle(j,"overflow",1);c=a.getViewPort();g.fullscreen_scrollx=c.x;g.fullscreen_scrolly=c.y;if(tinymce.isOpera&&g.fullscreen_overflow=="visible"){g.fullscreen_overflow="auto"}if(tinymce.isIE&&g.fullscreen_overflow=="scroll"){g.fullscreen_overflow="auto"}if(tinymce.isIE&&(g.fullscreen_html_overflow=="visible"||g.fullscreen_html_overflow=="scroll")){g.fullscreen_html_overflow="auto"}if(g.fullscreen_overflow=="0px"){g.fullscreen_overflow=""}a.setStyle(a.doc.body,"overflow","hidden");j.style.overflow="hidden";c=a.getViewPort();a.win.scrollTo(0,0);if(tinymce.isIE){c.h-=1}if(tinymce.isIE6){b="absolute;top:"+c.y}else{b="fixed;top:0"}n=a.add(a.doc.body,"div",{id:"mce_fullscreen_container",style:"position:"+b+";left:0;width:"+c.w+"px;height:"+c.h+"px;z-index:200000;"});a.add(n,"div",{id:"mce_fullscreen"});tinymce.each(d.settings,function(k,l){g[l]=k});g.id="mce_fullscreen";g.width=n.clientWidth;g.height=n.clientHeight-15;g.fullscreen_is_enabled=true;g.fullscreen_editor_id=d.id;g.theme_advanced_resizing=false;g.save_onsavecallback=function(){d.setContent(tinyMCE.get(g.id).getContent({format:"raw"}),{format:"raw"});d.execCommand("mceSave")};tinymce.each(d.getParam("fullscreen_settings"),function(m,l){g[l]=m});if(g.theme_advanced_toolbar_location==="external"){g.theme_advanced_toolbar_location="top"}f.fullscreenEditor=new tinymce.Editor("mce_fullscreen",g);f.fullscreenEditor.onInit.add(function(){f.fullscreenEditor.setContent(d.getContent());f.fullscreenEditor.focus()});f.fullscreenEditor.render();f.fullscreenElement=new tinymce.dom.Element("mce_fullscreen_container");f.fullscreenElement.update();f.resizeFunc=tinymce.dom.Event.add(a.win,"resize",function(){var o=tinymce.DOM.getViewPort(),l=f.fullscreenEditor,k,m;k=l.dom.getSize(l.getContainer().firstChild);m=l.dom.getSize(l.getContainer().getElementsByTagName("iframe")[0]);l.theme.resizeTo(o.w-k.w+m.w,o.h-k.h+m.h)})}});d.addButton("fullscreen",{title:"fullscreen.desc",cmd:"mceFullScreen"});d.onNodeChange.add(function(i,h){h.setActive("fullscreen",i.getParam("fullscreen_is_enabled"))})},getInfo:function(){return{longname:"Fullscreen",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/fullscreen",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("fullscreen",tinymce.plugins.FullScreenPlugin)})();
|