enable fullscreen editing with tinyMCE

This commit is contained in:
did 2011-07-03 02:02:52 -07:00
parent 7405b9343b
commit 05331dee86
3 changed files with 10 additions and 6 deletions

View File

@ -60,8 +60,8 @@ x bugs
x import => okay x import => okay
x delete an item => okay x delete an item => okay
x bug: duplicate fields (new entry) when errors in the content type form x bug: duplicate fields (new entry) when errors in the content type form
- rake task to import a remote template x tinyMCE => fullscreen
- tinyMCE => fullscreen - rake task to import a remote template / export ?
=> MERGE => MERGE

View File

@ -48,9 +48,9 @@ var TinyMceDefaultSettings = {
script_url : '/javascripts/admin/plugins/tiny_mce/tiny_mce.js', script_url : '/javascripts/admin/plugins/tiny_mce/tiny_mce.js',
theme : 'advanced', theme : 'advanced',
skin : 'locomotive', skin : 'locomotive',
plugins: 'safari,inlinepopups,locomedia', plugins: 'safari,inlinepopups,locomedia,fullscreen',
extended_valid_elements: 'iframe[width|height|frameborder|allowfullscreen|src|title]', extended_valid_elements: 'iframe[width|height|frameborder|allowfullscreen|src|title]',
theme_advanced_buttons1 : 'code,|,bold,italic,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,bullist,numlist,|,outdent,indent,blockquote,|,link,unlink', theme_advanced_buttons1 : 'fullscreen,code,|,bold,italic,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,bullist,numlist,|,outdent,indent,blockquote,|,link,unlink',
theme_advanced_buttons2 : 'formatselect,fontselect,fontsizeselect,|,locomedia', theme_advanced_buttons2 : 'formatselect,fontselect,fontsizeselect,|,locomedia',
theme_advanced_buttons3 : '', theme_advanced_buttons3 : '',
theme_advanced_toolbar_location : "top", theme_advanced_toolbar_location : "top",
@ -58,7 +58,11 @@ var TinyMceDefaultSettings = {
height: '300', height: '300',
width: '710', width: '710',
inlinepopups_skin: 'locomotive', inlinepopups_skin: 'locomotive',
convert_urls: false convert_urls: false,
fullscreen_new_window : false,
fullscreen_settings : {
theme_advanced_path_location : "top"
}
}; };
/* ___ global ___ */ /* ___ global ___ */

View File

@ -1 +1 @@
(function(){tinymce.create('tinymce.plugins.LocoMediaPlugin',{init:function(ed,url){ed.addCommand('locoMedia',function(){ed.windowManager.open({file:url+'/dialog.htm?7',width:645,height:650,inline:1},{plugin_url:url})});ed.addButton('locomedia',{title:'locomedia.image_desc',cmd:'locoMedia'})},getInfo:function(){return{longname:'Locomotive Media File',author:'Didier Lafforgue',authorurl:'http://www.locomotivecms.com',infourl:'http://www.locomotivecms.com',version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add('locomedia',tinymce.plugins.LocoMediaPlugin)})(); (function(){tinymce.create('tinymce.plugins.LocoMediaPlugin',{init:function(ed,url){ed.addCommand('locoMedia',function(){ed.windowManager.open({file:url+'/dialog.htm?7',width:645,height:350,inline:1},{plugin_url:url})});ed.addButton('locomedia',{title:'locomedia.image_desc',cmd:'locoMedia'})},getInfo:function(){return{longname:'Locomotive Media File',author:'Didier Lafforgue',authorurl:'http://www.locomotivecms.com',infourl:'http://www.locomotivecms.com',version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add('locomedia',tinymce.plugins.LocoMediaPlugin)})();