【发布时间】:2013-11-28 09:47:18
【问题描述】:
有没有人成功地将 kcfinder 集成到 tinymce 4 中?
下面的链接中有一个解决方案,但它不包含所需的所有源代码。
【问题讨论】:
-
我真的需要找到这个,如果你找到了也请告诉我。谢谢。
-
我已经解决了这个link。它完成了工作,而不是功能齐全的文件管理器。
标签: tinymce tinymce-4 kcfinder
有没有人成功地将 kcfinder 集成到 tinymce 4 中?
下面的链接中有一个解决方案,但它不包含所需的所有源代码。
【问题讨论】:
标签: tinymce tinymce-4 kcfinder
你应该在你的服务器中复制 kcfinder 文件夹并设置 config.php 文件 设置uploadURL和uploadDIR
'uploadURL' => "http://localhost/smartytest/upload/",
'uploadDir' => "k:\xampp\htdocs\smartytest\upload\",
【讨论】:
使用这个:
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};
【讨论】: