/branches/v4.0/wikini/maj_wikini/tools/templates/themes/default/javascripts/tiny_mce/plugins/print/readme.txt |
---|
New file |
0,0 → 1,0 |
Check the TinyMCE documentation for details on this plugin. |
/branches/v4.0/wikini/maj_wikini/tools/templates/themes/default/javascripts/tiny_mce/plugins/print/editor_plugin.js |
---|
New file |
0,0 → 1,0 |
tinyMCE.importPluginLanguagePack('print');var TinyMCE_PrintPlugin={getInfo:function(){return{longname:'Print',author:'Moxiecode Systems AB',authorurl:'http://tinymce.moxiecode.com',infourl:'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/print',version:tinyMCE.majorVersion+"."+tinyMCE.minorVersion}},getControlHTML:function(cn){switch(cn){case"print":return tinyMCE.getButtonHTML(cn,'lang_print_desc','{$pluginurl}/images/print.gif','mcePrint')}return""},execCommand:function(editor_id,element,command,user_interface,value){switch(command){case"mcePrint":tinyMCE.getInstanceById(editor_id).contentWindow.print();return true}return false}};tinyMCE.addPlugin("print",TinyMCE_PrintPlugin); |
/branches/v4.0/wikini/maj_wikini/tools/templates/themes/default/javascripts/tiny_mce/plugins/print/langs/en.js |
---|
New file |
0,0 → 1,5 |
// UK lang variables |
tinyMCE.addToLang('',{ |
print_desc : 'Print' |
}); |
/branches/v4.0/wikini/maj_wikini/tools/templates/themes/default/javascripts/tiny_mce/plugins/print/langs/fr.js |
---|
New file |
0,0 → 1,6 |
// FR lang variables |
// Modified by Motte, last updated 2006-03-23 |
tinyMCE.addToLang('',{ |
print_desc : 'Imprimer' |
}); |
/branches/v4.0/wikini/maj_wikini/tools/templates/themes/default/javascripts/tiny_mce/plugins/print/images/print.gif |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/branches/v4.0/wikini/maj_wikini/tools/templates/themes/default/javascripts/tiny_mce/plugins/print/images/print.gif |
---|
New file |
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/branches/v4.0/wikini/maj_wikini/tools/templates/themes/default/javascripts/tiny_mce/plugins/print/editor_plugin_src.js |
---|
New file |
0,0 → 1,47 |
/** |
* $Id: editor_plugin_src.js 201 2007-02-12 15:56:56Z spocke $ |
* |
* @author Moxiecode |
* @copyright Copyright © 2004-2007, Moxiecode Systems AB, All rights reserved. |
*/ |
/* Import theme specific language pack */ |
tinyMCE.importPluginLanguagePack('print'); |
var TinyMCE_PrintPlugin = { |
getInfo : function() { |
return { |
longname : 'Print', |
author : 'Moxiecode Systems AB', |
authorurl : 'http://tinymce.moxiecode.com', |
infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/print', |
version : tinyMCE.majorVersion + "." + tinyMCE.minorVersion |
}; |
}, |
getControlHTML : function(cn) { |
switch (cn) { |
case "print": |
return tinyMCE.getButtonHTML(cn, 'lang_print_desc', '{$pluginurl}/images/print.gif', 'mcePrint'); |
} |
return ""; |
}, |
/** |
* Executes the search/replace commands. |
*/ |
execCommand : function(editor_id, element, command, user_interface, value) { |
// Handle commands |
switch (command) { |
case "mcePrint": |
tinyMCE.getInstanceById(editor_id).contentWindow.print(); |
return true; |
} |
// Pass to next handler in chain |
return false; |
} |
}; |
tinyMCE.addPlugin("print", TinyMCE_PrintPlugin); |