{"id":1240,"date":"2010-08-10T11:22:00","date_gmt":"2010-08-10T03:22:00","guid":{"rendered":""},"modified":"2010-08-10T11:22:00","modified_gmt":"2010-08-10T03:22:00","slug":"","status":"publish","type":"post","link":"https:\/\/kyle.ai\/blog\/1240.html","title":{"rendered":"CKEditor\u914d\u7f6e\u4e0a\u4f20\u56fe\u7247\u529f\u80fd"},"content":{"rendered":"<p><html><head><meta http-equiv=\"Content-Type\" content=\"text\/html; charset=utf-8\" \/><title>CKEditor\u914d\u7f6e\u4e0a\u4f20\u56fe\u7247\u529f\u80fd<\/title><\/head><body><\/p>\n<h1 style=\"display:none\">CKEditor\u914d\u7f6e\u4e0a\u4f20\u56fe\u7247\u529f\u80fd<\/h1>\n<div>\n<p><font size=\"2\">5\u3001CKEditor \u4e0d\u5177\u5907\u4e0a\u4f20\u529f\u80fd\uff0c\u9700\u8981\u96c6\u6210 CKFinder \u624d\u80fd\u5b9e\u73b0\u4e0a\u4f20\u529f\u80fd\u3002<\/font><\/p>\n<p><font size=\"2\">CKFinder 1.4.1.1 \u4e0e CKEditor 3.0.1 \u8fdb\u884c\u96c6\u6210\u7684\u914d\u7f6e\u65b9\u6cd5\uff1a<\/font><\/p>\n<p><font size=\"2\">\u5b98\u65b9\u7f51\u7ad9\uff1aCKFinder\uff08powerful and easy to use Ajax file manager for web browsers\uff09<\/font><\/p>\n<p><font size=\"2\">\u4e0b\u8f7d\u5730\u5740\uff1aCKFinder 1.4.1.1 for Asp.net\uff08updated 02.10.2009\uff09<\/font><\/p>\n<p><font size=\"2\">6\u3001\u4e0b\u8f7d ckfinder_aspnet_1.4.1.1.zip \u5e76\u89e3\u538b\u5230 ckfinder\uff08\u5728\u6839\u76ee\u5f55\u4e0b\uff09\u3002<\/font><\/p>\n<p><font size=\"2\">7\u3001\u6253\u5f00 &quot; \\ckfinder\\config.ascx &quot;\uff0c\u4fee\u6539 BaseUrl \u4e3a BaseUrl = &quot;~\/ckfinder\/userfiles\/&quot;;<br \/>\n\/\/ \u6ce8\u610f&ldquo;~&rdquo;<br \/>\n\/\/ \u4ee5 userfiles \u4e3a\u9ed8\u8ba4\u8def\u5f84\uff0c\u5176\u76ee\u5f55\u4e0b\u4f1a\u81ea\u52a8\u751f\u6210images\u3001flash\u7b49\u5b50\u76ee\u5f55\u3002<\/font><\/p>\n<p><font size=\"2\">8\u3001\u5728 ckeditor\/config.js \u4e2d\u96c6\u6210 ckfinder\u3002<\/font><\/p>\n<p><font size=\"2\">\/\/ \u5728 CKEditor \u4e2d\u96c6\u6210 CKFinder\uff0c\u6ce8\u610f ckfinder \u7684\u8def\u5f84\u9009\u62e9\u8981\u6b63\u786e\u3002<br \/>\nCKFinder.SetupCKEditor(null, &#8216;..\/ckfinder\/&#8217;);<\/font><\/p>\n<p><font size=\"2\">9\u3001\u5728 aspx \u9875\u9762\u6216\u8005 master \u6a21\u677f\u9875 &lt;head&gt; \u6807\u7b7e\u4e2d\u8f7d\u5165 ckfinder.js\uff1a<\/font><\/p>\n<p><font size=\"2\">&lt;!&#8211; \u8f7d\u5165 CKFinder JS \u6587\u4ef6 &#8211;&gt;<br \/>\n&lt;script src=&quot;..\/ckfinder\/ckfinder.js&quot; type=&quot;text\/javascript&quot;&gt;&lt;\/script&gt;<br \/>\n\u7136\u540e\u518d\u6309CKEditor\u7684\u914d\u7f6e\u6765\uff0c\u914d\u7f6e\u597dCKEditor\u5c31\u884c\u4e86\u3002<\/font><\/p>\n<p><font size=\"2\">\u4e0e\u5176\u4ed6 .net \u63a7\u4ef6\u4f7f\u7528\u65b9\u6cd5\u76f8\u540c\uff0c\u8bbe\u7f6e Text='&lt;%# Bind(&quot;info&quot;) %&gt;&#8217; \u53ef\u4ee5\u65b9\u4fbf\u4e0e\u6570\u636e\u6e90\u8fdb\u884c\u4ea4\u4e92\u3002<\/font><\/p>\n<p><font size=\"2\">10\u3001\u53ef\u4ee5\u5c06 _samples\u3001_source \u6587\u4ef6\u5939\u5220\u9664\uff0clang \u76ee\u5f55\u4e0b\u53ef\u4ee5\u53ea\u4fdd\u7559en.js\u3001zh.js\u3001zh-cn.js \u4e09\u4e2a<\/font><\/p>\n<p><font size=\"2\">\u8bed\u8a00\u6587\u4ef6\u3002<\/font><\/p>\n<p><font size=\"2\">\u5e38\u89c1\u9519\u8bef\u6392\u9664\u65b9\u6cd5\uff1a<\/font><\/p>\n<p><font size=\"2\">\u75c7\u72b6\uff1a\u56e0\u4e3a\u5b89\u5168\u539f\u56e0\uff0c\u6587\u4ef6\u4e0d\u53ef\u6d4f\u89c8\u3002\u8bf7\u8054\u7cfb\u7cfb\u7edf\u7ba1\u7406\u5458\u5e76\u68c0\u67e5CKFinder\u914d\u7f6e\u6587\u4ef6\u3002<\/font><\/p>\n<p><font size=\"2\">\u8bed\u53e5\uff1a<br \/>\npublic override bool CheckAuthentication()<br \/>\n{<br \/>\nreture false;<br \/>\n}<\/font><\/p>\n<p><font size=\"2\">\u539f\u56e0\uff1a\u672a\u8bbe\u7f6e\u7528\u6237\u8eab\u4efd\u9a8c\u8bc1\u6216\u8005\u7528\u6237\u672a\u767b\u5f55\u3002<\/font><\/p>\n<p><font size=\"2\">\u75c7\u72b6\uff1a\u672a\u77e5\u9519\u8bef<\/font><\/p>\n<p><font size=\"2\">\u8bed\u53e5\uff1a<br \/>\npublic override bool CheckAuthentication()<br \/>\n{<br \/>\nreture true;<br \/>\n}<\/font><\/p>\n<p><font size=\"2\">\u539f\u56e0\uff1a\u8bbe\u7f6e\u4e0d\u8fdb\u884c\u7528\u6237\u8eab\u4efd\u9a8c\u8bc1\uff0c\u4f46\u662f BaseUrl \u8def\u5f84\u4e0d\u5bf9\u3002<\/font><\/p>\n<\/div>\n<p><\/body><\/html><\/p>\n","protected":false},"excerpt":{"rendered":"<p>CKEditor\u914d\u7f6e\u4e0a\u4f20\u56fe\u7247\u529f\u80fd CKEditor\u914d\u7f6e\u4e0a\u4f20\u56fe\u7247\u529f\u80fd 5\u3001CKEditor \u4e0d\u5177\u5907\u4e0a\u4f20\u529f\u80fd\uff0c\u9700\u8981 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-1240","post","type-post","status-publish","format-standard","hentry","category-code_related"],"_links":{"self":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/1240","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/comments?post=1240"}],"version-history":[{"count":0,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/1240\/revisions"}],"wp:attachment":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/media?parent=1240"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/categories?post=1240"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/tags?post=1240"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}