{"id":917,"date":"2016-08-18T01:02:55","date_gmt":"2016-08-17T17:02:55","guid":{"rendered":"http:\/\/www.baishitou.cn\/?p=917"},"modified":"2016-08-19T09:43:45","modified_gmt":"2016-08-19T01:43:45","slug":"dedecms%e5%90%8e%e5%8f%b0%e6%96%b0%e5%bb%ba%e6%a8%a1%e5%9e%8b%e5%a4%9a%e4%b8%aa%e5%ad%97%e6%ae%b5%e8%b0%83%e7%94%a8%e7%99%be%e5%ba%a6%e7%bc%96%e8%be%91%e5%99%a8%ef%bc%8c","status":"publish","type":"post","link":"https:\/\/www.baishitou.cn\/917.html","title":{"rendered":"DEDECMS\u540e\u53f0\u65b0\u5efa\u6a21\u578b\u591a\u4e2a\u5b57\u6bb5\u8c03\u7528\u767e\u5ea6\u7f16\u8f91\u5668"},"content":{"rendered":"
dede\u540e\u53f0\u7f16\u8f91\u5668\u66f4\u6362\u4e3a\u767e\u5ea6\u7f16\u8f91\u5668ueditor \u4e4b\u540e \u6b63\u5e38\u60c5\u51b5\u4e0b \u4f60\u4e0d\u4f1a\u53d1\u73b0\u95ee\u9898\u00a0\u00a0\u4f46\u662f\u5982\u679c \u4f60\u7684\u6a21\u578b\u6bd4\u5982\u6587\u7ae0\u6a21\u578b \u6dfb\u52a0\u4e86\u81ea\u5b9a\u4e49\u5b57\u6bb5 \u800c\u4e14\u7c7b\u578b\u4e3aHTML\u683c\u5f0f \u6216\u8005\u6587\u672c\u4fdd\u5b58HTML\u683c\u5f0f \u5f53\u4f60\u53d1\u5e03\u6587\u7ae0\u7f16\u8f91\u6587\u7ae0\u65f6 \u4f60\u4f1a\u53d1\u73b0 \u53ea\u6709\u7b2c\u4e00\u4e2a\u7f16\u8f91\u5668\u663e\u793a\u51fa\u6765\u00a0\u00a0\u8fd8\u6709\u6700\u4e0b\u9762\u7684 \u6587\u7ae0\u5185\u5bb9<\/p>\n
\u8fd9\u91cc\u8bf4\u7684\u65b9\u6cd5\u662f\u5728dedecsm5.7\u7ec7\u68a6\u6574\u5408\u767e\u5ea6\u7f16\u8f91\u5668ueditor\u6700\u65b01.4.3\u65b9\u6cd5 \u57fa\u7840\u4e4b\u4e0a \u51fa\u73b0\u7684\u95ee\u9898\u00a0\u00a0\u4e0d\u8fc7\u7f51\u4e0a\u5927\u591a\u6559\u7a0b\u4ea6\u5982\u6b64<\/p>\n
\u6838\u5fc3\u4ee3\u7801<\/p>\n
else if($GLOBALS['cfg_html_editor']=='ueditor')
\n{
\n$fvalue = $fvalue=='' ? '<p><\/p>' : $fvalue;
\n$code = '
\n<script type=\"text\/javascript\" charset=\"utf-8\" src=\"\/include\/ueditor\/ueditor.config.js\"><\/script>
\n<script type=\"text\/javascript\" charset=\"utf-8\" src=\"\/include\/ueditor\/ueditor.all.js\"><\/script>
\n<link rel=\"stylesheet\" type=\"text\/css\" href=\"\/include\/ueditor\/themes\/default\/css\/ueditor.css\">
\n<textarea name=\"'.$fname.'\" id=\"'.$fname.'\" style=\"width:100%;\">'.$fvalue.'<\/textarea>
\n<script type=\"text\/javascript\">
\nvar ue = new baidu.editor.ui.Editor();
\nue.render(\"'.$fname.'\");
\n<\/script>';
\nif($gtype==\"print\")<\/p>\n
{
\necho $code;
\n}<\/p>\n
else
\n{
\nreturn $code;
\n}<\/p>\n
}<\/p>\n
\u5728\u6bcf\u6b21\u5b9e\u4f8b\u5316\u5bf9\u8c61\u7684\u65f6\u5019 \u90fd\u4f1a\u5f15\u5165js<\/p>\n
\u4ee5\u4e0a\u95ee\u9898\u7684\u89e3\u51b3\u529e\u6cd5\u5c31\u662f\u00a0\u00a0\u9875\u9762\u503c\u5f15\u7528\u4e00\u6b21js<\/p>\n
\u56fe\u4e2d\u7ea2\u8272\u4ee3\u7801\u90e8\u5206<\/p>\n
else if($GLOBALS['cfg_html_editor']=='ueditor') { else }<\/p>\n \u5728inc_func_funcAdmin.php \u5c06\u8fd9\u4e09\u884c\u4ee3\u7801\u526a\u5207\u00a0 \u00a0\u81f3 \u9700\u8981\u5f15\u5165\u7f16\u8f91\u5668\u7684\u9875\u9762 \u5982\u540e\u53f0\u7684\u53d1\u5e03\u6587\u7ae0\u6a21\u677f\u9875\u9762 article_add.htm\u00a0 \u00a0\u4fee\u6539\u6587\u7ae0\u7684\u6a21\u677f\u9875\u9762 article_edit.htm\u7b49\u7b49\u00a0\u00a0\u653e\u5728\u5934\u90e8\u7684head\u533a\u57df \u539f\u5219\u662f\u5728\u5b9e\u4f8b\u5316\u7f16\u8f91\u5668\u4e4b\u524d<\/p>\n inc_func_funcAdmin.php\u90e8\u5206 article_add.htm\u90e8\u5206 <\/p>\n
\n{
\n$fvalue = $fvalue=='' ? '<p><\/p>' : $fvalue;
\n$code = '
\n<script type=\"text\/javascript\" charset=\"utf-8\" src=\"\/include\/ueditor\/ueditor.config.js\"><\/script><\/span>
\n\u00a0\u00a0<script type=\"text\/javascript\" charset=\"utf-8\" src=\"\/include\/ueditor\/ueditor.all.js\"><\/script><\/span>
\n\u00a0\u00a0<link rel=\"stylesheet\" type=\"text\/css\" href=\"\/include\/ueditor\/themes\/default\/css\/ueditor.css\"><\/span>
\n<textarea name=\"'.$fname.'\" id=\"'.$fname.'\" style=\"width:100%;\">'.$fvalue.'<\/textarea>
\n<script type=\"text\/javascript\">
\nvar ue = new baidu.editor.ui.Editor();
\nue.render(\"'.$fname.'\");
\n<\/script>';
\nif($gtype==\"print\")<\/p>\n
\necho $code;
\n}<\/p>\n
\n{
\nreturn $code;
\n}<\/p>\n
\n<\/p>\n
\n<\/p>\n