1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
| function openKCFinder(field_name, url, type, win) {
tinyMCE.activeEditor.windowManager.open({
file: '../HtmlEditor/kcfinder/browse.php?opener=tinymce&type=' + type +'&lng=fr',
title: 'Sélectionner un fichier: ',
width: 700,
height: 500,
resizable: "yes",
inline: true,
close_previous: "no",
popup_css: false
},
{
window: win,
input: field_name
}
);
return false;
};
tinyMCE.init({
// General options
script_url: '../HtmlEditor/tinymce/jscripts/tiny_mce/tiny_mce.js',
mode : "textareas",
paste_text_sticky : true,
theme : "advanced",
skin : "o2k7",
language : "fr",
plugins : "autolink,lists,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,wordcount,advlist,autosave,visualblocks",
file_browser_callback: 'openKCFinder',
// Theme options
theme_advanced_buttons1 : "save,newdocument,print,|,undo,redo,cancel,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,fontselect,fontsizeselect",
theme_advanced_buttons2 : "cut,copy,paste,pastetext,|,search,|,bullist,numlist,|,ltr,rtl,|,outdent,indent,blockquote,visualchars,cite,abbr,acronym,|,link,unlink,|,forecolor,backcolor,del,ins",
theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,image,media,charmap,emotions,anchor,advhr",
theme_advanced_buttons4 : "preview,pagebreak,|,nonbreaking,restoredraft,fullscreenpreview,insertdate,inserttime",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_statusbar_location : "bottom",
theme_advanced_resizing : true
}); |