{"id":869,"date":"2016-05-18T16:52:47","date_gmt":"2016-05-18T08:52:47","guid":{"rendered":"http:\/\/www.baishitou.cn\/?p=869"},"modified":"2017-11-16T09:35:11","modified_gmt":"2017-11-16T01:35:11","slug":"%e5%88%a9%e7%94%a8%e7%99%be%e5%ba%a6%e7%9a%84%ef%bc%88ueditor%ef%bc%89%e7%bc%96%e8%be%91%e5%99%a8%e6%9b%bf%e6%8d%a2dedecms%e8%87%aa%e5%b8%a6%e7%9a%84%e7%bc%96%e8%be%91%e5%99%a8","status":"publish","type":"post","link":"https:\/\/www.baishitou.cn\/869.html","title":{"rendered":"\u5229\u7528\u767e\u5ea6\u7684\uff08ueditor\uff09\u7f16\u8f91\u5668\u66ff\u6362dedecms\u81ea\u5e26\u7684\u7f16\u8f91\u5668"},"content":{"rendered":"

\u7b2c\u4e00\u6b65\uff1a\u4e0b\u8f7d\u76f8\u5bf9\u5e94\u7f16\u8f91\u5668\u7684\u7248\u672c<\/strong>
\n\u9996\u5148\uff0c\u53bb\u767e\u5ea6\u641c\u7d22\u201c\u767e\u5ea6ueditor\u7f16\u8f91\u5668\u201d\uff0c\u7136\u540e\u70b9\u51fb\u8fdb\u5165\u5b98\u7f51\uff0c\u627e\u5230\u4e0b\u8f7d\u9875\u9762\u3002\u627e\u5230\u6211\u4eec\u60f3\u8981\u7684\u7f16\u8f91\u5668\u7684\u7248\u672c\uff0c\u8fd9\u70b9\u76f8\u4fe1\u4e0d\u8981\u6211\u591a\u8bf4\u4e86\u3002\u4e0b\u8f7d\u4e0b\u6765\uff0c\u7136\u540e\u4fee\u6539\u540d\u79f0\u4e3a\u201cueditor\u201d\uff0c\u5e76\u8fdb\u884c\u6253\u5305\u4e0a\u4f20\u5230include\u76ee\u5f55\u4e0b\u3002
\n\u6e29\u99a8\u63d0\u793a\uff1a\u5728\u5b89\u88c5\u524d\uff0c\u6700\u597d\u5907\u4efd\u4e0b\u6240\u8981\u4fee\u6539\u7684\u6587\u4ef6\u3002
\n\u7b2c\u4e8c\u6b65\uff1a\u4fee\u6539inc_func_funcAdmin.php\u6587\u4ef6\u3002<\/strong><\/p>\n

\u6211\u5728\u7f51\u4e0a\u627e\u7684\u662f\u8bf4\u5728184\u884c\u540e\u9762\u653e\u5165\u4e0b\u5217\u4ee3\u7801\uff0c\u7ed3\u679c\u653e\u5165\u540e\uff0c\u53d1\u5e03\u4e0a\u4f20\u56fe\u7247\u5565\u7684\u63d0\u793a\u9519\u8bef\u3002\u7f51\u4e0a\u641c\u7d22\u8bf4\u662f\u8981\u628aWINDOWS\u4e0b\u7684TEMP\u6743\u9650\u6539\u6210\u53ef\u8bfb\u5199\u3002\u6211\u5c31\u60f3\u4e0d\u660e\u767d\u4e0a\u4f20\u7f51\u7ad9\u56fe\u7247\u4e0e\u7cfb\u7edf\u4e34\u65f6\u6587\u4ef6\u6709\u6bdb\u7684\u5173\u7cfb\u554a\uff0c\u540e\u6765\u4ed4\u7ec6\u770b\u4e86\u4e00\u4e0b\u4ee3\u7801\uff0c\u628a\u4e0b\u9762\u4ee3\u7801\u653e\u5165160\u884c\u540e\uff0c\u6b63\u5e38\u4e86\u3002<\/p>\n

{\r\n        $gtype = \"print\";\r\n    }\r\n<\/pre>\n

\u4f60\u53ef\u4ee5\u641c\u7d22\u4e0a\u9762\u4ee3\u7801\uff0c\u628a\u4e0b\u9762\u7684\u4ee3\u7801\u653e\u5728\u5b83\u540e\u9762\u5c31\u884c\u4e86\u3002<\/p>\n

else if($GLOBALS['cfg_html_editor']=='ueditor')\r\n{\r\n$fvalue = $fvalue=='' ? '<p><\/p>' : $fvalue;\r\n$code = '<script type=\"text\/javascript\" charset=\"utf-8\"\r\nsrc=\"\/include\/ueditor\/ueditor.config.js\"><\/script>\r\n<script type=\"text\/javascript\" charset=\"utf-8\"\r\nsrc=\"\/include\/ueditor\/ueditor.all.js\"><\/script>\r\n<link rel=\"stylesheet\" type=\"text\/css\"\r\nhref=\"\/include\/ueditor\/themes\/default\/css\/ueditor.css\"\/>\r\n<textarea name=\"'.$fname.'\" id=\"'.$fname.'\"\r\nstyle=\"width:100%;height:400px;\">'.$fvalue.'<\/textarea>\r\n<script type=\"text\/javascript\">var ue = new\r\nbaidu.editor.ui.Editor();ue.render(\"'.$fname.'\");<\/script>';\r\nif($gtype==\"print\")\r\n{\r\necho $code;\r\n}\r\nelse\r\n{\r\nreturn $code;\r\n}\r\n}<\/code><\/pre>\n

 <\/p>\n

\u5982\u4e0b\u56fe\uff1a\"QQ\u622a\u56fe20160518165624\"<\/a><\/p>\n

 <\/p>\n

\u7b2c\u4e09\u6b65\uff1a\u4fee\u6539\u914d\u7f6e <\/strong>
\n\u8fdb\u5165\u7f51\u7ad9\u540e\u53f0-->\u7cfb\u7edf-->\u7cfb\u7edf\u57fa\u672c\u53c2\u6570-->\u6838\u5fc3\u8bbe\u7f6e-->\u5c06 Html\u7f16\u8f91\u5668\u7684\u503c\u6539\u4e3a ueditor \uff0c\u7136\u540e\u4fdd\u5b58\u3002 \u66f4\u65b0\u4e00\u4e0b\u7f13\u5b58\u3002\u5230\u4e86\u8fd9\u4e00\u6b65\uff0c\u90a3\u4e48\u606d\u559c\u4f60\uff0c\u6587\u672c\u7f16\u8f91\u5668\u5df2\u7ecf\u66ff\u6362\u6210\u529f\uff01\"QQ\u622a\u56fe20160518165720\"<\/p>\n","protected":false},"excerpt":{"rendered":"

\u7b2c\u4e00\u6b65\uff1a\u4e0b\u8f7d\u76f8\u5bf9\u5e94\u7f16\u8f91\u5668\u7684\u7248\u672c \u9996\u5148\uff0c\u53bb\u767e\u5ea6\u641c\u7d22\u201c\u767e\u5ea6ueditor\u7f16\u8f91\u5668\u201d\uff0c\u7136\u540e\u70b9\u51fb\u8fdb\u5165\u5b98\u7f51\uff0c\u627e\u5230\u4e0b\u8f7d\u9875\u9762\u3002 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[43,253,254],"class_list":["post-869","post","type-post","status-publish","format-standard","hentry","category-web","tag-dedecms","tag-ueditor","tag-254"],"_links":{"self":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/869","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/comments?post=869"}],"version-history":[{"count":0,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/869\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/media?parent=869"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/categories?post=869"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/tags?post=869"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}