cable 0.9.16 → 0.9.17
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/app/controllers/admin_controller.rb +1 -1
- data/app/views/layouts/admin.html.erb +3 -1
- data/lib/generators/cable/install_generator.rb +1 -0
- data/lib/generators/cable/menu/templates/erb/menus/_menu.html.erb +1 -1
- data/lib/generators/cable/menu/templates/erb/menus/_resources.html.erb +1 -1
- data/lib/generators/cable/menu/templates/erb/menus/show.html.erb +1 -1
- data/public/javascripts/admin.js +16 -16
- metadata +2 -254
- data/public/javascripts/tinymce/jquery.tinymce.js +0 -1
- data/public/javascripts/tinymce/langs/en.js +0 -222
- data/public/javascripts/tinymce/license.txt +0 -504
- data/public/javascripts/tinymce/plugins/advhr/css/advhr.css +0 -5
- data/public/javascripts/tinymce/plugins/advhr/editor_plugin.js +0 -1
- data/public/javascripts/tinymce/plugins/advhr/editor_plugin_src.js +0 -57
- data/public/javascripts/tinymce/plugins/advhr/js/rule.js +0 -43
- data/public/javascripts/tinymce/plugins/advhr/langs/en_dlg.js +0 -7
- data/public/javascripts/tinymce/plugins/advhr/rule.htm +0 -58
- data/public/javascripts/tinymce/plugins/advimage/css/advimage.css +0 -13
- data/public/javascripts/tinymce/plugins/advimage/editor_plugin.js +0 -1
- data/public/javascripts/tinymce/plugins/advimage/editor_plugin_src.js +0 -50
- data/public/javascripts/tinymce/plugins/advimage/image.htm +0 -235
- data/public/javascripts/tinymce/plugins/advimage/img/sample.gif +0 -0
- data/public/javascripts/tinymce/plugins/advimage/js/image.js +0 -445
- data/public/javascripts/tinymce/plugins/advimage/langs/en_dlg.js +0 -45
- data/public/javascripts/tinymce/plugins/advlink/css/advlink.css +0 -8
- data/public/javascripts/tinymce/plugins/advlink/editor_plugin.js +0 -1
- data/public/javascripts/tinymce/plugins/advlink/editor_plugin_src.js +0 -61
- data/public/javascripts/tinymce/plugins/advlink/js/advlink.js +0 -523
- data/public/javascripts/tinymce/plugins/advlink/langs/en_dlg.js +0 -54
- data/public/javascripts/tinymce/plugins/advlink/link.htm +0 -338
- data/public/javascripts/tinymce/plugins/advlist/editor_plugin.js +0 -1
- data/public/javascripts/tinymce/plugins/advlist/editor_plugin_src.js +0 -154
- data/public/javascripts/tinymce/plugins/autolink/editor_plugin.js +0 -1
- data/public/javascripts/tinymce/plugins/autolink/editor_plugin_src.js +0 -169
- data/public/javascripts/tinymce/plugins/autoresize/editor_plugin.js +0 -1
- data/public/javascripts/tinymce/plugins/autoresize/editor_plugin_src.js +0 -119
- data/public/javascripts/tinymce/plugins/autosave/editor_plugin.js +0 -1
- data/public/javascripts/tinymce/plugins/autosave/editor_plugin_src.js +0 -431
- data/public/javascripts/tinymce/plugins/autosave/langs/en.js +0 -4
- data/public/javascripts/tinymce/plugins/bbcode/editor_plugin.js +0 -1
- data/public/javascripts/tinymce/plugins/bbcode/editor_plugin_src.js +0 -120
- data/public/javascripts/tinymce/plugins/contextmenu/editor_plugin.js +0 -1
- data/public/javascripts/tinymce/plugins/contextmenu/editor_plugin_src.js +0 -156
- data/public/javascripts/tinymce/plugins/directionality/editor_plugin.js +0 -1
- data/public/javascripts/tinymce/plugins/directionality/editor_plugin_src.js +0 -82
- data/public/javascripts/tinymce/plugins/emotions/editor_plugin.js +0 -1
- data/public/javascripts/tinymce/plugins/emotions/editor_plugin_src.js +0 -43
- data/public/javascripts/tinymce/plugins/emotions/emotions.htm +0 -41
- data/public/javascripts/tinymce/plugins/emotions/img/smiley-cool.gif +0 -0
- data/public/javascripts/tinymce/plugins/emotions/img/smiley-cry.gif +0 -0
- data/public/javascripts/tinymce/plugins/emotions/img/smiley-embarassed.gif +0 -0
- data/public/javascripts/tinymce/plugins/emotions/img/smiley-foot-in-mouth.gif +0 -0
- data/public/javascripts/tinymce/plugins/emotions/img/smiley-frown.gif +0 -0
- data/public/javascripts/tinymce/plugins/emotions/img/smiley-innocent.gif +0 -0
- data/public/javascripts/tinymce/plugins/emotions/img/smiley-kiss.gif +0 -0
- data/public/javascripts/tinymce/plugins/emotions/img/smiley-laughing.gif +0 -0
- data/public/javascripts/tinymce/plugins/emotions/img/smiley-money-mouth.gif +0 -0
- data/public/javascripts/tinymce/plugins/emotions/img/smiley-sealed.gif +0 -0
- data/public/javascripts/tinymce/plugins/emotions/img/smiley-smile.gif +0 -0
- data/public/javascripts/tinymce/plugins/emotions/img/smiley-surprised.gif +0 -0
- data/public/javascripts/tinymce/plugins/emotions/img/smiley-tongue-out.gif +0 -0
- data/public/javascripts/tinymce/plugins/emotions/img/smiley-undecided.gif +0 -0
- data/public/javascripts/tinymce/plugins/emotions/img/smiley-wink.gif +0 -0
- data/public/javascripts/tinymce/plugins/emotions/img/smiley-yell.gif +0 -0
- data/public/javascripts/tinymce/plugins/emotions/js/emotions.js +0 -22
- data/public/javascripts/tinymce/plugins/emotions/langs/en_dlg.js +0 -20
- data/public/javascripts/tinymce/plugins/example/dialog.htm +0 -22
- data/public/javascripts/tinymce/plugins/example/editor_plugin.js +0 -1
- data/public/javascripts/tinymce/plugins/example/editor_plugin_src.js +0 -84
- data/public/javascripts/tinymce/plugins/example/img/example.gif +0 -0
- data/public/javascripts/tinymce/plugins/example/js/dialog.js +0 -19
- data/public/javascripts/tinymce/plugins/example/langs/en.js +0 -3
- data/public/javascripts/tinymce/plugins/example/langs/en_dlg.js +0 -3
- data/public/javascripts/tinymce/plugins/fullpage/css/fullpage.css +0 -184
- data/public/javascripts/tinymce/plugins/fullpage/editor_plugin.js +0 -1
- data/public/javascripts/tinymce/plugins/fullpage/editor_plugin_src.js +0 -198
- data/public/javascripts/tinymce/plugins/fullpage/fullpage.htm +0 -571
- data/public/javascripts/tinymce/plugins/fullpage/js/fullpage.js +0 -497
- data/public/javascripts/tinymce/plugins/fullpage/langs/en_dlg.js +0 -85
- data/public/javascripts/tinymce/plugins/fullscreen/editor_plugin.js +0 -1
- data/public/javascripts/tinymce/plugins/fullscreen/editor_plugin_src.js +0 -159
- data/public/javascripts/tinymce/plugins/fullscreen/fullscreen.htm +0 -109
- data/public/javascripts/tinymce/plugins/iespell/editor_plugin.js +0 -1
- data/public/javascripts/tinymce/plugins/iespell/editor_plugin_src.js +0 -54
- data/public/javascripts/tinymce/plugins/inlinepopups/editor_plugin.js +0 -1
- data/public/javascripts/tinymce/plugins/inlinepopups/editor_plugin_src.js +0 -696
- data/public/javascripts/tinymce/plugins/inlinepopups/skins/clearlooks2/img/alert.gif +0 -0
- data/public/javascripts/tinymce/plugins/inlinepopups/skins/clearlooks2/img/button.gif +0 -0
- data/public/javascripts/tinymce/plugins/inlinepopups/skins/clearlooks2/img/buttons.gif +0 -0
- data/public/javascripts/tinymce/plugins/inlinepopups/skins/clearlooks2/img/confirm.gif +0 -0
- data/public/javascripts/tinymce/plugins/inlinepopups/skins/clearlooks2/img/corners.gif +0 -0
- data/public/javascripts/tinymce/plugins/inlinepopups/skins/clearlooks2/img/horizontal.gif +0 -0
- data/public/javascripts/tinymce/plugins/inlinepopups/skins/clearlooks2/img/vertical.gif +0 -0
- data/public/javascripts/tinymce/plugins/inlinepopups/skins/clearlooks2/window.css +0 -90
- data/public/javascripts/tinymce/plugins/inlinepopups/template.htm +0 -387
- data/public/javascripts/tinymce/plugins/insertdatetime/editor_plugin.js +0 -1
- data/public/javascripts/tinymce/plugins/insertdatetime/editor_plugin_src.js +0 -83
- data/public/javascripts/tinymce/plugins/layer/editor_plugin.js +0 -1
- data/public/javascripts/tinymce/plugins/layer/editor_plugin_src.js +0 -214
- data/public/javascripts/tinymce/plugins/legacyoutput/editor_plugin.js +0 -1
- data/public/javascripts/tinymce/plugins/legacyoutput/editor_plugin_src.js +0 -139
- data/public/javascripts/tinymce/plugins/lists/editor_plugin.js +0 -1
- data/public/javascripts/tinymce/plugins/lists/editor_plugin_src.js +0 -617
- data/public/javascripts/tinymce/plugins/media/css/media.css +0 -17
- data/public/javascripts/tinymce/plugins/media/editor_plugin.js +0 -1
- data/public/javascripts/tinymce/plugins/media/editor_plugin_src.js +0 -770
- data/public/javascripts/tinymce/plugins/media/js/embed.js +0 -73
- data/public/javascripts/tinymce/plugins/media/js/media.js +0 -354
- data/public/javascripts/tinymce/plugins/media/langs/en_dlg.js +0 -109
- data/public/javascripts/tinymce/plugins/media/media.htm +0 -812
- data/public/javascripts/tinymce/plugins/media/moxieplayer.swf +0 -0
- data/public/javascripts/tinymce/plugins/nonbreaking/editor_plugin.js +0 -1
- data/public/javascripts/tinymce/plugins/nonbreaking/editor_plugin_src.js +0 -53
- data/public/javascripts/tinymce/plugins/noneditable/editor_plugin.js +0 -1
- data/public/javascripts/tinymce/plugins/noneditable/editor_plugin_src.js +0 -90
- data/public/javascripts/tinymce/plugins/pagebreak/editor_plugin.js +0 -1
- data/public/javascripts/tinymce/plugins/pagebreak/editor_plugin_src.js +0 -74
- data/public/javascripts/tinymce/plugins/paste/editor_plugin.js +0 -1
- data/public/javascripts/tinymce/plugins/paste/editor_plugin_src.js +0 -930
- data/public/javascripts/tinymce/plugins/paste/js/pastetext.js +0 -36
- data/public/javascripts/tinymce/plugins/paste/js/pasteword.js +0 -51
- data/public/javascripts/tinymce/plugins/paste/langs/en_dlg.js +0 -5
- data/public/javascripts/tinymce/plugins/paste/pastetext.htm +0 -27
- data/public/javascripts/tinymce/plugins/paste/pasteword.htm +0 -21
- data/public/javascripts/tinymce/plugins/preview/editor_plugin.js +0 -1
- data/public/javascripts/tinymce/plugins/preview/editor_plugin_src.js +0 -53
- data/public/javascripts/tinymce/plugins/preview/example.html +0 -28
- data/public/javascripts/tinymce/plugins/preview/jscripts/embed.js +0 -73
- data/public/javascripts/tinymce/plugins/preview/preview.html +0 -17
- data/public/javascripts/tinymce/plugins/print/editor_plugin.js +0 -1
- data/public/javascripts/tinymce/plugins/print/editor_plugin_src.js +0 -34
- data/public/javascripts/tinymce/plugins/save/editor_plugin.js +0 -1
- data/public/javascripts/tinymce/plugins/save/editor_plugin_src.js +0 -101
- data/public/javascripts/tinymce/plugins/searchreplace/css/searchreplace.css +0 -6
- data/public/javascripts/tinymce/plugins/searchreplace/editor_plugin.js +0 -1
- data/public/javascripts/tinymce/plugins/searchreplace/editor_plugin_src.js +0 -61
- data/public/javascripts/tinymce/plugins/searchreplace/js/searchreplace.js +0 -142
- data/public/javascripts/tinymce/plugins/searchreplace/langs/en_dlg.js +0 -16
- data/public/javascripts/tinymce/plugins/searchreplace/searchreplace.htm +0 -100
- data/public/javascripts/tinymce/plugins/spellchecker/css/content.css +0 -1
- data/public/javascripts/tinymce/plugins/spellchecker/editor_plugin.js +0 -1
- data/public/javascripts/tinymce/plugins/spellchecker/editor_plugin_src.js +0 -435
- data/public/javascripts/tinymce/plugins/spellchecker/img/wline.gif +0 -0
- data/public/javascripts/tinymce/plugins/style/css/props.css +0 -13
- data/public/javascripts/tinymce/plugins/style/editor_plugin.js +0 -1
- data/public/javascripts/tinymce/plugins/style/editor_plugin_src.js +0 -55
- data/public/javascripts/tinymce/plugins/style/js/props.js +0 -635
- data/public/javascripts/tinymce/plugins/style/langs/en_dlg.js +0 -70
- data/public/javascripts/tinymce/plugins/style/props.htm +0 -838
- data/public/javascripts/tinymce/plugins/tabfocus/editor_plugin.js +0 -1
- data/public/javascripts/tinymce/plugins/tabfocus/editor_plugin_src.js +0 -114
- data/public/javascripts/tinymce/plugins/table/cell.htm +0 -178
- data/public/javascripts/tinymce/plugins/table/css/cell.css +0 -17
- data/public/javascripts/tinymce/plugins/table/css/row.css +0 -25
- data/public/javascripts/tinymce/plugins/table/css/table.css +0 -13
- data/public/javascripts/tinymce/plugins/table/editor_plugin.js +0 -1
- data/public/javascripts/tinymce/plugins/table/editor_plugin_src.js +0 -1198
- data/public/javascripts/tinymce/plugins/table/js/cell.js +0 -284
- data/public/javascripts/tinymce/plugins/table/js/merge_cells.js +0 -27
- data/public/javascripts/tinymce/plugins/table/js/row.js +0 -232
- data/public/javascripts/tinymce/plugins/table/js/table.js +0 -450
- data/public/javascripts/tinymce/plugins/table/langs/en_dlg.js +0 -74
- data/public/javascripts/tinymce/plugins/table/merge_cells.htm +0 -32
- data/public/javascripts/tinymce/plugins/table/row.htm +0 -157
- data/public/javascripts/tinymce/plugins/table/table.htm +0 -188
- data/public/javascripts/tinymce/plugins/template/blank.htm +0 -12
- data/public/javascripts/tinymce/plugins/template/css/template.css +0 -23
- data/public/javascripts/tinymce/plugins/template/editor_plugin.js +0 -1
- data/public/javascripts/tinymce/plugins/template/editor_plugin_src.js +0 -159
- data/public/javascripts/tinymce/plugins/template/js/template.js +0 -106
- data/public/javascripts/tinymce/plugins/template/langs/en_dlg.js +0 -15
- data/public/javascripts/tinymce/plugins/template/template.htm +0 -31
- data/public/javascripts/tinymce/plugins/visualchars/editor_plugin.js +0 -1
- data/public/javascripts/tinymce/plugins/visualchars/editor_plugin_src.js +0 -83
- data/public/javascripts/tinymce/plugins/wordcount/editor_plugin.js +0 -1
- data/public/javascripts/tinymce/plugins/wordcount/editor_plugin_src.js +0 -114
- data/public/javascripts/tinymce/plugins/xhtmlxtras/abbr.htm +0 -142
- data/public/javascripts/tinymce/plugins/xhtmlxtras/acronym.htm +0 -142
- data/public/javascripts/tinymce/plugins/xhtmlxtras/attributes.htm +0 -149
- data/public/javascripts/tinymce/plugins/xhtmlxtras/cite.htm +0 -142
- data/public/javascripts/tinymce/plugins/xhtmlxtras/css/attributes.css +0 -11
- data/public/javascripts/tinymce/plugins/xhtmlxtras/css/popup.css +0 -9
- data/public/javascripts/tinymce/plugins/xhtmlxtras/del.htm +0 -162
- data/public/javascripts/tinymce/plugins/xhtmlxtras/editor_plugin.js +0 -1
- data/public/javascripts/tinymce/plugins/xhtmlxtras/editor_plugin_src.js +0 -132
- data/public/javascripts/tinymce/plugins/xhtmlxtras/ins.htm +0 -162
- data/public/javascripts/tinymce/plugins/xhtmlxtras/js/abbr.js +0 -28
- data/public/javascripts/tinymce/plugins/xhtmlxtras/js/acronym.js +0 -28
- data/public/javascripts/tinymce/plugins/xhtmlxtras/js/attributes.js +0 -125
- data/public/javascripts/tinymce/plugins/xhtmlxtras/js/cite.js +0 -28
- data/public/javascripts/tinymce/plugins/xhtmlxtras/js/del.js +0 -53
- data/public/javascripts/tinymce/plugins/xhtmlxtras/js/element_common.js +0 -229
- data/public/javascripts/tinymce/plugins/xhtmlxtras/js/ins.js +0 -53
- data/public/javascripts/tinymce/plugins/xhtmlxtras/langs/en_dlg.js +0 -32
- data/public/javascripts/tinymce/themes/advanced/about.htm +0 -52
- data/public/javascripts/tinymce/themes/advanced/anchor.htm +0 -26
- data/public/javascripts/tinymce/themes/advanced/charmap.htm +0 -51
- data/public/javascripts/tinymce/themes/advanced/color_picker.htm +0 -74
- data/public/javascripts/tinymce/themes/advanced/editor_template.js +0 -1
- data/public/javascripts/tinymce/themes/advanced/editor_template_src.js +0 -1360
- data/public/javascripts/tinymce/themes/advanced/image.htm +0 -80
- data/public/javascripts/tinymce/themes/advanced/img/colorpicker.jpg +0 -0
- data/public/javascripts/tinymce/themes/advanced/img/flash.gif +0 -0
- data/public/javascripts/tinymce/themes/advanced/img/icons.gif +0 -0
- data/public/javascripts/tinymce/themes/advanced/img/iframe.gif +0 -0
- data/public/javascripts/tinymce/themes/advanced/img/pagebreak.gif +0 -0
- data/public/javascripts/tinymce/themes/advanced/img/quicktime.gif +0 -0
- data/public/javascripts/tinymce/themes/advanced/img/realmedia.gif +0 -0
- data/public/javascripts/tinymce/themes/advanced/img/shockwave.gif +0 -0
- data/public/javascripts/tinymce/themes/advanced/img/trans.gif +0 -0
- data/public/javascripts/tinymce/themes/advanced/img/video.gif +0 -0
- data/public/javascripts/tinymce/themes/advanced/img/windowsmedia.gif +0 -0
- data/public/javascripts/tinymce/themes/advanced/js/about.js +0 -73
- data/public/javascripts/tinymce/themes/advanced/js/anchor.js +0 -42
- data/public/javascripts/tinymce/themes/advanced/js/charmap.js +0 -355
- data/public/javascripts/tinymce/themes/advanced/js/color_picker.js +0 -329
- data/public/javascripts/tinymce/themes/advanced/js/image.js +0 -247
- data/public/javascripts/tinymce/themes/advanced/js/link.js +0 -153
- data/public/javascripts/tinymce/themes/advanced/js/source_editor.js +0 -56
- data/public/javascripts/tinymce/themes/advanced/langs/en.js +0 -68
- data/public/javascripts/tinymce/themes/advanced/langs/en_dlg.js +0 -54
- data/public/javascripts/tinymce/themes/advanced/link.htm +0 -57
- data/public/javascripts/tinymce/themes/advanced/shortcuts.htm +0 -47
- data/public/javascripts/tinymce/themes/advanced/skins/default/content.css +0 -47
- data/public/javascripts/tinymce/themes/advanced/skins/default/dialog.css +0 -117
- data/public/javascripts/tinymce/themes/advanced/skins/default/img/buttons.png +0 -0
- data/public/javascripts/tinymce/themes/advanced/skins/default/img/items.gif +0 -0
- data/public/javascripts/tinymce/themes/advanced/skins/default/img/menu_arrow.gif +0 -0
- data/public/javascripts/tinymce/themes/advanced/skins/default/img/menu_check.gif +0 -0
- data/public/javascripts/tinymce/themes/advanced/skins/default/img/progress.gif +0 -0
- data/public/javascripts/tinymce/themes/advanced/skins/default/img/tabs.gif +0 -0
- data/public/javascripts/tinymce/themes/advanced/skins/default/ui.css +0 -213
- data/public/javascripts/tinymce/themes/advanced/skins/highcontrast/content.css +0 -23
- data/public/javascripts/tinymce/themes/advanced/skins/highcontrast/dialog.css +0 -105
- data/public/javascripts/tinymce/themes/advanced/skins/highcontrast/ui.css +0 -101
- data/public/javascripts/tinymce/themes/advanced/skins/o2k7/content.css +0 -46
- data/public/javascripts/tinymce/themes/advanced/skins/o2k7/dialog.css +0 -117
- data/public/javascripts/tinymce/themes/advanced/skins/o2k7/img/button_bg.png +0 -0
- data/public/javascripts/tinymce/themes/advanced/skins/o2k7/img/button_bg_black.png +0 -0
- data/public/javascripts/tinymce/themes/advanced/skins/o2k7/img/button_bg_silver.png +0 -0
- data/public/javascripts/tinymce/themes/advanced/skins/o2k7/ui.css +0 -216
- data/public/javascripts/tinymce/themes/advanced/skins/o2k7/ui_black.css +0 -8
- data/public/javascripts/tinymce/themes/advanced/skins/o2k7/ui_silver.css +0 -5
- data/public/javascripts/tinymce/themes/advanced/source_editor.htm +0 -25
- data/public/javascripts/tinymce/themes/simple/editor_template.js +0 -1
- data/public/javascripts/tinymce/themes/simple/editor_template_src.js +0 -84
- data/public/javascripts/tinymce/themes/simple/img/icons.gif +0 -0
- data/public/javascripts/tinymce/themes/simple/langs/en.js +0 -11
- data/public/javascripts/tinymce/themes/simple/skins/default/content.css +0 -25
- data/public/javascripts/tinymce/themes/simple/skins/default/ui.css +0 -32
- data/public/javascripts/tinymce/themes/simple/skins/o2k7/content.css +0 -17
- data/public/javascripts/tinymce/themes/simple/skins/o2k7/img/button_bg.png +0 -0
- data/public/javascripts/tinymce/themes/simple/skins/o2k7/ui.css +0 -35
- data/public/javascripts/tinymce/tiny_mce.js +0 -1
- data/public/javascripts/tinymce/tiny_mce_popup.js +0 -5
- data/public/javascripts/tinymce/tiny_mce_src.js +0 -15752
- data/public/javascripts/tinymce/utils/editable_selects.js +0 -70
- data/public/javascripts/tinymce/utils/form_utils.js +0 -210
- data/public/javascripts/tinymce/utils/mctabs.js +0 -162
- data/public/javascripts/tinymce/utils/validate.js +0 -252
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -1,22 +0,0 @@
|
|
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,20 +0,0 @@
|
|
1
|
-
tinyMCE.addI18n('en.emotions_dlg',{
|
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,22 +0,0 @@
|
|
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 +0,0 @@
|
|
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,84 +0,0 @@
|
|
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
|
-
})();
|
Binary file
|
@@ -1,19 +0,0 @@
|
|
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,184 +0,0 @@
|
|
1
|
-
/* Hide the advanced tab */
|
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
|
-
#doctypes {
|
39
|
-
width: 200px;
|
40
|
-
}
|
41
|
-
|
42
|
-
/* Head list classes */
|
43
|
-
|
44
|
-
.headlistwrapper {
|
45
|
-
width: 100%;
|
46
|
-
}
|
47
|
-
|
48
|
-
/* not implemented advanced tab buttons
|
49
|
-
.addbutton, .removebutton, .moveupbutton, .movedownbutton {
|
50
|
-
border-top: 1px solid;
|
51
|
-
border-left: 1px solid;
|
52
|
-
border-bottom: 1px solid;
|
53
|
-
border-right: 1px solid;
|
54
|
-
border-color: #F0F0EE;
|
55
|
-
cursor: default;
|
56
|
-
display: block;
|
57
|
-
width: 20px;
|
58
|
-
height: 20px;
|
59
|
-
}
|
60
|
-
|
61
|
-
.addbutton:hover, .removebutton:hover, .moveupbutton:hover, .movedownbutton:hover {
|
62
|
-
border: 1px solid #0A246A;
|
63
|
-
background-color: #B6BDD2;
|
64
|
-
}
|
65
|
-
|
66
|
-
.addbutton {
|
67
|
-
background-image: url('../images/add.gif');
|
68
|
-
float: left;
|
69
|
-
margin-right: 3px;
|
70
|
-
}
|
71
|
-
|
72
|
-
.removebutton {
|
73
|
-
background-image: url('../images/remove.gif');
|
74
|
-
float: left;
|
75
|
-
}
|
76
|
-
|
77
|
-
.moveupbutton {
|
78
|
-
background-image: url('../images/move_up.gif');
|
79
|
-
float: left;
|
80
|
-
margin-right: 3px;
|
81
|
-
}
|
82
|
-
|
83
|
-
.movedownbutton {
|
84
|
-
background-image: url('../images/move_down.gif');
|
85
|
-
float: left;
|
86
|
-
}
|
87
|
-
*/
|
88
|
-
|
89
|
-
.selected {
|
90
|
-
border: 1px solid #0A246A;
|
91
|
-
background-color: #B6BDD2;
|
92
|
-
}
|
93
|
-
|
94
|
-
.toolbar {
|
95
|
-
width: 100%;
|
96
|
-
}
|
97
|
-
|
98
|
-
#headlist {
|
99
|
-
width: 100%;
|
100
|
-
margin-top: 3px;
|
101
|
-
font-size: 11px;
|
102
|
-
}
|
103
|
-
|
104
|
-
#info, #title_element, #meta_element, #script_element, #style_element, #base_element, #link_element, #comment_element, #unknown_element {
|
105
|
-
display: none;
|
106
|
-
}
|
107
|
-
|
108
|
-
#addmenu {
|
109
|
-
position: absolute;
|
110
|
-
border: 1px solid gray;
|
111
|
-
display: none;
|
112
|
-
z-index: 100;
|
113
|
-
background-color: white;
|
114
|
-
}
|
115
|
-
|
116
|
-
#addmenu a {
|
117
|
-
display: block;
|
118
|
-
width: 100%;
|
119
|
-
line-height: 20px;
|
120
|
-
text-decoration: none;
|
121
|
-
background-color: white;
|
122
|
-
}
|
123
|
-
|
124
|
-
#addmenu a:hover {
|
125
|
-
background-color: #B6BDD2;
|
126
|
-
color: black;
|
127
|
-
}
|
128
|
-
|
129
|
-
#addmenu span {
|
130
|
-
padding-left: 10px;
|
131
|
-
padding-right: 10px;
|
132
|
-
}
|
133
|
-
|
134
|
-
#updateElementPanel {
|
135
|
-
display: none;
|
136
|
-
}
|
137
|
-
|
138
|
-
#script_element .panel_wrapper div.current {
|
139
|
-
height: 108px;
|
140
|
-
}
|
141
|
-
|
142
|
-
#style_element .panel_wrapper div.current {
|
143
|
-
height: 108px;
|
144
|
-
}
|
145
|
-
|
146
|
-
#link_element .panel_wrapper div.current {
|
147
|
-
height: 140px;
|
148
|
-
}
|
149
|
-
|
150
|
-
#element_script_value {
|
151
|
-
width: 100%;
|
152
|
-
height: 100px;
|
153
|
-
}
|
154
|
-
|
155
|
-
#element_comment_value {
|
156
|
-
width: 100%;
|
157
|
-
height: 120px;
|
158
|
-
}
|
159
|
-
|
160
|
-
#element_style_value {
|
161
|
-
width: 100%;
|
162
|
-
height: 100px;
|
163
|
-
}
|
164
|
-
|
165
|
-
#element_title, #element_script_src, #element_meta_name, #element_meta_content, #element_base_href, #element_link_href, #element_link_title {
|
166
|
-
width: 250px;
|
167
|
-
}
|
168
|
-
|
169
|
-
.updateElementButton {
|
170
|
-
margin-top: 3px;
|
171
|
-
}
|
172
|
-
|
173
|
-
/* MSIE specific styles */
|
174
|
-
|
175
|
-
* html .addbutton, * html .removebutton, * html .moveupbutton, * html .movedownbutton {
|
176
|
-
width: 22px;
|
177
|
-
height: 22px;
|
178
|
-
}
|
179
|
-
|
180
|
-
textarea {
|
181
|
-
height: 55px;
|
182
|
-
}
|
183
|
-
|
184
|
-
.panel_wrapper div.current {height:420px;}
|
@@ -1 +0,0 @@
|
|
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 i=this,a,l,f=b.content,h,j="";if(b.format=="raw"&&i.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);i.head=f.substring(0,a+1);var k=0,g;i.css="";while((k=i.head.indexOf("<style",k))!=-1){k=f.indexOf(">",k)+1;if((g=i.head.indexOf("</style",k))==-1){break}i.css+=i.head.substring(k,g);k=g}l=f.indexOf("</body",a);if(l==-1){l=f.length}b.content=f.substring(a+1,l);i.foot=f.substring(l);function e(c){return c.replace(/<\/?[A-Z]+/g,function(m){return m.toLowerCase()})}i.head=e(i.head);i.foot=e(i.foot)}else{i.head="";if(d.getParam("fullpage_default_xml_pi")){i.head+='<?xml version="1.0" encoding="'+d.getParam("fullpage_default_encoding","ISO-8859-1")+'" ?>\n'}i.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">');i.head+="\n<html>\n<head>\n";if(h=d.getParam("fullpage_default_title")){i.head+="<title>"+h+"</title>\n"}if(h=d.getParam("fullpage_default_encoding")){i.head+='<meta http-equiv="Content-Type" content="text/html; charset='+h+'" />\n'}if(h=d.getParam("fullpage_default_font_family")){j+="font-family: "+h+";"}if(h=d.getParam("fullpage_default_font_size")){j+="font-size: "+h+";"}if(h=d.getParam("fullpage_default_text_color")){j+="color: "+h+";"}i.head+="</head>\n<body"+(j?' style="'+j+'"':"")+">\n";i.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);if(b.css){b._setStyle(a,b.css)}}},_setStyle:function(a,b){a.dom.remove("injectedCSS");var d=a.dom.doc,c=d.createElement("style");c.type="text/css";c.id="injectedCSS";if(c.styleSheet){c.styleSheet.cssText=b}else{c.appendChild(d.createTextNode(b))}d.getElementsByTagName("head")[0].appendChild(c)}});tinymce.PluginManager.add("fullpage",tinymce.plugins.FullPagePlugin)})();
|
@@ -1,198 +0,0 @@
|
|
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
|
-
// Concatenate all <style>'s text into t.css
|
117
|
-
var ss = 0, es;
|
118
|
-
t.css = '';
|
119
|
-
while ((ss = t.head.indexOf('<style', ss)) != -1) {
|
120
|
-
ss = c.indexOf('>', ss) + 1;
|
121
|
-
if ( (es = t.head.indexOf('</style', ss)) == -1)
|
122
|
-
break;
|
123
|
-
t.css += t.head.substring(ss, es);
|
124
|
-
ss = es;
|
125
|
-
}
|
126
|
-
|
127
|
-
ep = c.indexOf('</body', sp);
|
128
|
-
if (ep == -1)
|
129
|
-
ep = c.length;
|
130
|
-
|
131
|
-
o.content = c.substring(sp + 1, ep);
|
132
|
-
t.foot = c.substring(ep);
|
133
|
-
|
134
|
-
function low(s) {
|
135
|
-
return s.replace(/<\/?[A-Z]+/g, function(a) {
|
136
|
-
return a.toLowerCase();
|
137
|
-
})
|
138
|
-
};
|
139
|
-
|
140
|
-
t.head = low(t.head);
|
141
|
-
t.foot = low(t.foot);
|
142
|
-
} else {
|
143
|
-
t.head = '';
|
144
|
-
if (ed.getParam('fullpage_default_xml_pi'))
|
145
|
-
t.head += '<?xml version="1.0" encoding="' + ed.getParam('fullpage_default_encoding', 'ISO-8859-1') + '" ?>\n';
|
146
|
-
|
147
|
-
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">');
|
148
|
-
t.head += '\n<html>\n<head>\n';
|
149
|
-
|
150
|
-
if (v = ed.getParam('fullpage_default_title'))
|
151
|
-
t.head += '<title>' + v + '</title>\n';
|
152
|
-
|
153
|
-
if (v = ed.getParam('fullpage_default_encoding'))
|
154
|
-
t.head += '<meta http-equiv="Content-Type" content="text/html; charset=' + v + '" />\n';
|
155
|
-
|
156
|
-
if (v = ed.getParam('fullpage_default_font_family'))
|
157
|
-
st += 'font-family: ' + v + ';';
|
158
|
-
|
159
|
-
if (v = ed.getParam('fullpage_default_font_size'))
|
160
|
-
st += 'font-size: ' + v + ';';
|
161
|
-
|
162
|
-
if (v = ed.getParam('fullpage_default_text_color'))
|
163
|
-
st += 'color: ' + v + ';';
|
164
|
-
|
165
|
-
t.head += '</head>\n<body' + (st ? ' style="' + st + '"' : '') + '>\n';
|
166
|
-
t.foot = '\n</body>\n</html>';
|
167
|
-
}
|
168
|
-
},
|
169
|
-
|
170
|
-
_getContent : function(ed, o) {
|
171
|
-
var t = this;
|
172
|
-
|
173
|
-
if (!o.source_view || !ed.getParam('fullpage_hide_in_source_view')) {
|
174
|
-
o.content = tinymce.trim(t.head) + '\n' + tinymce.trim(o.content) + '\n' + tinymce.trim(t.foot);
|
175
|
-
|
176
|
-
if (t.css)
|
177
|
-
t._setStyle(ed, t.css);
|
178
|
-
}
|
179
|
-
},
|
180
|
-
|
181
|
-
_setStyle : function(ed, css) {
|
182
|
-
ed.dom.remove('injectedCSS');
|
183
|
-
var doc = ed.dom.doc, style = doc.createElement('style');
|
184
|
-
style.type = 'text/css';
|
185
|
-
style.id = 'injectedCSS';
|
186
|
-
|
187
|
-
if (style.styleSheet) // IE
|
188
|
-
style.styleSheet.cssText = css;
|
189
|
-
else // other browsers
|
190
|
-
style.appendChild(doc.createTextNode(css));
|
191
|
-
|
192
|
-
doc.getElementsByTagName('head')[0].appendChild(style);
|
193
|
-
}
|
194
|
-
});
|
195
|
-
|
196
|
-
// Register plugin
|
197
|
-
tinymce.PluginManager.add('fullpage', tinymce.plugins.FullPagePlugin);
|
198
|
-
})();
|