как интегрировать kcfinder в tinymce 4?

Кто-нибудь успешно интегрировал kcfinder в tinymce 4?

В приведенной ниже ссылке есть решение, но оно не содержит всего необходимого исходного кода.

http://www.tinymce.com/forum/viewtopic.php?id=30896


person ian    schedule 15.11.2013    source источник
comment
действительно мне нужно найти это, пожалуйста, дайте мне знать, если вы найдете его. Спасибо.   -  person Fatemeh Gharri    schedule 15.11.2013


Ответы (2)


вы должны скопировать папку kcfinder на свой сервер и просто установить в файле config.php наборы uploadURL и uploadDIR

 'uploadURL' => "http://localhost/smartytest/upload/",
 'uploadDir' => "k:\xampp\htdocs\smartytest\upload\",
person Payam Omrani    schedule 01.04.2014

ИСПОЛЬЗОВАТЬ ЭТО:

tinyMCE.init({mode:"exact",
skin:"o2k7",           
mode: "exact",
width : "650",
height:"200",
paste_text_use_dialog : true,
skin_variant:"silver",
relative_urls : true,
convert_urls : false,
elements:"contents",
theme:"advanced",
content_css : "javascript/tinymce/custom_css.css",

plugins:"pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,safari,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,wordcount,advlist,autosave",

theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,formatselect,fontselect,fontsizeselect, cut,copy,paste,pastetext",

theme_advanced_buttons2:"link,unlink,image,cleanup,code,|,forecolor,backcolor, table,advhr,|,sub,sup,|,fullscreen,|,bullist,numlist,outdent,indent,undo,redo",

// theme_advanced_buttons3:"table,advhr,|,sub,sup,|,fullscreen",
theme_advanced_toolbar_location :"top",
theme_advanced_toolbar_align        :"left",
theme_advanced_statusbar_location :"none",
theme_advanced_path                 : false,
paste_retain_style_properties   :"all",
theme_advanced_resizing         :false,
file_browser_callback:"openKCFinder"});

function openKCFinder(c,a,b,d){tinyMCE.activeEditor.windowManager.open({file:"javascript/kcfinder/browse.php?opener=tinymce&type="+b+"&dir="+b+"/public",title:"KCFinder",width:700,height:500,resizable:"yes",inline:true,close_previous:"no",popup_css:false},{window:d,input:c});return false};
person Sandeep    schedule 09.09.2014