1、上傳的mp4文件提示多媒體文件類型不在許可列表和站內(nèi)媒體選擇無法顯示
https://www.dedehtml.com/notes/dede-mediatype.html
2、織夢(mèng)文章內(nèi)容保存第三方視頻iframe變圖片的解決方法
https://www.dedehtml.com/notes/iframe-images.html
https://pan.baidu.com/s/1lZTuPJnOcNcf7JLKkRohbw 密碼: wfaa
1、選擇對(duì)應(yīng)的編碼版本下載,解壓得到dialog和kindeditor,把這2個(gè)文件夾上傳到網(wǎng)站include文件夾里
2、打開 include/inc/inc_fun_funAdmin.php 找到
else if($GLOBALS['cfg_html_editor']=='ckeditor')
在它上面加入
else if($GLOBALS['cfg_html_editor']=='kindeditor')
{
$fvalue = dede_htmlspecialchars($fvalue);
$uploadJson = $GLOBALS['cfg_cmspath']."/include/dialog/kindeditor_post.php";
$fileManagerJson = $GLOBALS['cfg_cmspath']."/include/dialog/kindeditor_manager.php";
$allowFileManager = 'true';
$extendconfig = '';
if($etype == 'Member' || $etype == 'MemberLit' || $etype == 'Diy' || $etype == 'Feedback')
{
$uploadJson = "";
$fileManagerJson = "";
$allowFileManager = 'false';
$extendconfig = 'allowImageUpload : false,';
$extendconfig .= 'allowFlashUpload : false,';
$extendconfig .= 'allowMediaUpload : false,';
$extendconfig .= 'allowFileUpload : false,';
}
$items['Member'] = "[
'source', '|', 'undo', 'redo', '|', 'preview', 'print', 'template', 'cut', 'copy', 'paste',
'plainpaste', 'wordpaste', '|', 'justifyleft', 'justifycenter', 'justifyright',
'justifyfull', 'insertorderedlist', 'insertunorderedlist', 'indent', 'outdent', 'subscript',
'superscript', 'clearhtml', 'quickformat', 'selectall', '|', 'fullscreen', '/',
'formatblock', 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold',
'italic', 'underline', 'strikethrough', 'lineheight', 'removeformat', '|', 'image',
'flash', 'media', 'insertfile', 'table', 'hr', 'emoticons', 'map', 'pagebreak',
'link', 'unlink', '|', 'about']";
$items['Small'] = $items['MemberLit'] = $items['Diy'] = "[
'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
'insertunorderedlist', '|', 'emoticons', 'image', 'link']";
$items['Feedback']= "[
'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
'insertunorderedlist', '|', 'emoticons']";
$itemconfig = '';
if(isset($items[$etype]))
{
$itemconfig = "items :{$items[$etype]},";
}
$session_id = session_id();
$code = "<link rel=\"stylesheet\" href=\"{$GLOBALS['cfg_cmspath']}/include/kindeditor/themes/default/default.css\" /><link rel=\"stylesheet\" href=\"{$GLOBALS['cfg_cmspath']}/include/kindeditor/plugins/code/prettify.css\" /><script src=\"{$GLOBALS['cfg_cmspath']}/include/kindeditor/kindeditor-all.js\"></script><script src=\"{$GLOBALS['cfg_cmspath']}/include/kindeditor/lang/zh-CN.js\"></script><script src=\"{$GLOBALS['cfg_cmspath']}/include/kindeditor/plugins/code/prettify.js\"></script><script type=\"text/javascript\">KindEditor.ready(function(K) {editor1 = K.create('textarea[name=\"{$fname}\"]', {imageSizeLimit : '10MB',imageUploadLimit : 100,cssPath : '{$GLOBALS['cfg_cmspath']}/include/kindeditor/plugins/code/prettify.css',uploadJson : '{$uploadJson}',fileManagerJson : '{$fileManagerJson}',filterMode: false,extraFileUploadParams: {PHPSESSID : '{$session_id}'},{$extendconfig}{$itemconfig}allowFileManager : {$allowFileManager},afterBlur: function(){this.sync();}});prettyPrint();});</script><textarea name=\"{$fname}\" style=\"height:{$nheight}px;visibility:hidden;width:100%;\">{$fvalue}</textarea>";
if($gtype=="print")
{
echo $code;
}
else
{
return $code;
}
}
3、后臺(tái)-系統(tǒng)-系統(tǒng)基本參數(shù)-核心設(shè)置-Html編輯器 ,填寫kindeditor
打開 /include/inc/inc_fun_funAdmin.php 找到
$uploadJson = "";
注釋或者刪除它
繼續(xù)找到
$extendconfig = 'allowImageUpload : false,';
注釋或者刪除它
版權(quán)聲明: 本站資源均來自互聯(lián)網(wǎng)或會(huì)員發(fā)布,如果侵犯了您的權(quán)益請(qǐng)與我們聯(lián)系,我們將在24小時(shí)內(nèi)刪除!謝謝!
轉(zhuǎn)載請(qǐng)注明: 織夢(mèng)富文本編輯器ckeditor更換為kindeditor