{"id":9,"date":"2024-04-18T00:04:51","date_gmt":"2024-04-17T16:04:51","guid":{"rendered":"https:\/\/a.li6.cc\/?p=9"},"modified":"2024-04-18T17:14:19","modified_gmt":"2024-04-18T09:14:19","slug":"kindeditor%e7%bb%99%e5%9b%be%e7%89%87%e6%b7%bb%e5%8a%a0%e5%88%a0%e9%99%a4%e5%8a%9f%e8%83%bd%ef%bc%8c%e4%ba%b2%e6%b5%8b%e5%9c%a8%e7%94%a8","status":"publish","type":"post","link":"https:\/\/a.li6.cc\/index.php\/2024\/04\/18\/kindeditor%e7%bb%99%e5%9b%be%e7%89%87%e6%b7%bb%e5%8a%a0%e5%88%a0%e9%99%a4%e5%8a%9f%e8%83%bd%ef%bc%8c%e4%ba%b2%e6%b5%8b%e5%9c%a8%e7%94%a8\/","title":{"rendered":"kindeditor\u7ed9\u56fe\u7247\u6dfb\u52a0\u5220\u9664\u529f\u80fd\uff0c\u4eb2\u6d4b\u5728\u7528"},"content":{"rendered":"<h3>kindeditor-all.js<\/h3>\n<p>line:3610:<\/p>\n<pre><code>&#039;table.ke-zeroborder td {border:1px dotted #AAA;}&#039;,\n\u66ff\u6362\u6210,\u9632\u6b62td\u5185\u8f93\u5165\u6570\u5b57\u82f1\u6587\u4e0d\u4f1a\u6362\u884c\u3002\n&#039;table.ke-zeroborder td {border:1px dotted #AAA;word-wrap: break-word;word-break: break-all;}&#039;,<\/code><\/pre>\n<p>line:6865<\/p>\n<pre><code>imgPath = self.pluginsPath + name + &#039;\/images\/&#039;,\n\u4e0b\u9762\u52a0(\u5b9a\u4e49\u5220\u9664\u56fe\u7247\u7684api)\uff1a\ndelImgApi = K.undef(self.delImgApi, &#039;delurl&#039;),\n\/\/\u914d\u7f6e\u65f6\u8bb0\u5f97\u81ea\u5b9a\u4e49\u53c2\u6570\uff1adelImgApi:&#039;https:\/\/xxxxxxx&#039;<\/code><\/pre>\n<p>line:6884<\/p>\n<pre><code>&#039;&lt;div style=&quot;padding:10px 20px;&quot;&gt;&#039;,\n\u4e0b\u9762\u52a0\n&#039;&lt;style type=&quot;text\/css&quot;&gt;&#039;,\n            &#039;.relative{position:relative;}&#039;,\n            &#039;.operate-box{&#039;,\n            &#039;  position:absolute;top:-100px;left:0px;&#039;,\n            &#039;  transition:top 0.6s;&#039;,\n            &#039;  -moz-transition:top 0.6s; \/* Firefox 4 *\/&#039;,\n            &#039;  -webkit-transition:top 0.6s; \/* Safari and Chrome *\/&#039;,\n            &#039;  -o-transition:top 0.6s; \/* Opera *\/&#039;,\n            &#039;}&#039;,\n            &#039;.black_overlay{&#039;,\n            &#039;  background-color:black;-moz-opacity:0.8;opacity:.60;filter:alpha(opacity=80);position:absolute;left:0px;top:0px;&#039;,\n            &#039;  width: 100px;height: 100px;z-index:99;}&#039;,\n            &#039;.operate{&#039;,\n            &#039;  position:absolute;left:0px;top:0px;&#039;,\n            &#039;  width: 100px;height: 100px;z-index:199;padding:0px 15px;}&#039;,\n            &#039;.operate .left, .operate .right{width:30px;height:100px;line-height:100px;display:inline-block;text-align:center;}&#039;,\n            &#039;.operate img{&#039;,\n            &#039;  width:20px;border-radius:12px;z-index:199;background:#fff;&#039;,\n            &#039;  transition:transform 0.6s;&#039;,\n            &#039;  -moz-transition:transform 0.6s; \/* Firefox 4 *\/&#039;,\n            &#039;  -webkit-transition:transform 0.6s; \/* Safari and Chrome *\/&#039;,\n            &#039;  -o-transition:transform 0.6s; \/* Opera *\/&#039;,\n            &#039;}&#039;,\n            &#039;.operate img:hover{&#039;,\n            &#039;  transform:scale(1.5,1.5);&#039;,\n            &#039;  -ms-transform:scale(1.5,1.5); \/* IE 9 *\/&#039;,\n            &#039;  -moz-transform:scale(1.5,1.5); \/* Firefox *\/&#039;,\n            &#039;  -webkit-transform:scale(1.5,1.5); \/* Safari and Chrome *\/&#039;,\n            &#039;  -o-transform:scale(1.5,1.5); \/* Opera *\/&#039;,\n            &#039;}&#039;,\n            &#039;.operate .icon-add{border:1px solid #a6cc7a;}&#039;,\n            &#039;.operate .icon-delete{border:1px solid #ef6455;}&#039;,\n            &#039;&lt;\/style&gt;&#039;,<\/code><\/pre>\n<p>line:6937<\/p>\n<pre><code>el.click(function(e) {\n    clickFn.call(this, fileUrl, data.filename);\n});\n\u6539\u6210\uff1a\n$(el).find(&quot;.icon-add&quot;).click(function(e) {\n    clickFn.call(this, fileUrl, data.filename);\n});<\/code><\/pre>\n<p>line:7009<\/p>\n<pre><code>.mouseover(function(e) {\n    K(this).addClass(&#039;ke-on&#039;);\n})\n\u6539\u6210\n.mouseout(function(e) {\n    K(this).removeClass(&#039;ke-on&#039;);\n    \/\/\u5220\u9664\u56fe\u7247\u529f\u80fd\uff1a\u9f20\u6807\u79fb\u51fa\uff0c\u8ba9\u64cd\u4f5c\u6846\u5411\u4e0b\u6ed1\u51fa\n    $(K(this)).find(&quot;.operate-box&quot;).css({&quot;top&quot;:&quot;-100px&quot;});\n});<\/code><\/pre>\n<p>line:7018<\/p>\n<pre><code>var img = K(&#039;&lt;img src=&quot;&#039; + iconUrl + &#039;&quot; width=&quot;80&quot; height=&quot;80&quot; alt=&quot;&#039; + data.filename + &#039;&quot; \/&gt;&#039;);\n                if (!data.is_dir || data.has_file) {\n                    photoDiv.css(&#039;cursor&#039;, &#039;pointer&#039;);\n                    bindTitle(photoDiv, data);\n                    bindEvent(photoDiv, result, data, createView);\n                } else {\n                    photoDiv.attr(&#039;title&#039;, lang.emptyFolder);\n                }\n                photoDiv.append(img);\n\u52a0\u4e2a\u5c5e\u6027data-id\n\u5e76\u4e14\u5728img\u7ed1\u5b9a\u4e8b\u4ef6\u4e4b\u524d \u589e\u52a0\u5220\u9664\u6309\u94ae \n\u66ff\u6362\u6210\nvar img = K(&#039;&lt;img src=&quot;&#039; + iconUrl + &#039;&quot;  data-id=&quot;&#039; + data.id + &#039;&quot; width=&quot;80&quot; height=&quot;80&quot; alt=&quot;&#039; + data.filename + &#039;&quot; \/&gt;&#039;);\n\n                photoDiv.append(img);\n                \/\/\u6dfb\u52a0\u5220\u9664\u56fe\u7247\u529f\u80fd\n                var bgHtml = [\n                    &#039;&lt;div class=&quot;operate-box&quot;&gt;&#039;,\n                    &#039;  &lt;div class=&quot;black_overlay&quot;&gt;&lt;\/div&gt;&#039;,\n                    &#039;  &lt;div class=&quot;operate&quot;&gt;&#039;,\n                    &#039;      &lt;div class=&quot;left&quot;&gt;&lt;img src=&quot;&#039;+imgPath+&#039;add_24.png&quot; alt=&quot;&quot; class=&quot;icon-add&quot;\/&gt;&lt;\/div&gt;&#039;,\n                    &#039;      &lt;div class=&quot;right&quot;&gt;&lt;img src=&quot;&#039;+imgPath+&#039;delete_24.png&quot; alt=&quot;&quot; class=&quot;icon-delete&quot;\/&gt;&lt;\/div&gt;&#039;,\n                    &#039;  &lt;\/div&gt;&#039;,\n                    &#039;&lt;\/div&gt;&#039;\n                ].join(&quot; &quot;);\n                photoDiv.append(bgHtml);\n                if (!data.is_dir || data.has_file) {\n                    photoDiv.css(&#039;cursor&#039;, &#039;pointer&#039;);\n                    bindTitle(photoDiv, data);\n                    bindEvent(photoDiv, result, data, createView);\n                } else {\n                    photoDiv.attr(&#039;title&#039;, lang.emptyFolder);\n                }\n                $(photoDiv).find(&quot;.icon-delete&quot;).click(function(event){\n                    if(!confirm(&quot;\u786e\u8ba4\u5220\u9664\u8be5\u56fe\u7247\u5417\uff1f&quot;)) return false;\n                    var parentDiv =  $(this).parents(&quot;.ke-item&quot;);\n                    var id_ = $(this).parents(&quot;.ke-photo&quot;).find(&quot;img:first&quot;).attr(&quot;data-id&quot;);\n                    \/\/\u53d1\u9001\u5220\u9664\u56fe\u7247\u8bf7\u6c42\n                    $.post(delImgApi,{imgId: id_},function(json){\n                        if(json.error===0) {\n                            parentDiv.remove();\n                        } else {\n                            alert(json.message);\n                        }\n                    },&quot;json&quot;);\n                });<\/code><\/pre>\n<p>\u6700\u540e\u8865\u5145\u4e24\u4e2aicon\u5728\u8def\u5f84\uff1a<br \/>\n\\kindeditor\\plugins\\filemanager\\images<br \/>\n\u81ea\u5df1\u4e0d\u559c\u6b22\u53ef\u4ee5\u66ff\u6362<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/li6-sh.oss-cn-shanghai.aliyuncs.com\/2024\/04\/20240417165213822.png\" alt=\"\" \/><br \/>\n<img decoding=\"async\" src=\"http:\/\/li6-sh.oss-cn-shanghai.aliyuncs.com\/2024\/04\/20240417165212391.png\" alt=\"\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>kindeditor-all.js line:3610: &#039;table &hellip; <a href=\"https:\/\/a.li6.cc\/index.php\/2024\/04\/18\/kindeditor%e7%bb%99%e5%9b%be%e7%89%87%e6%b7%bb%e5%8a%a0%e5%88%a0%e9%99%a4%e5%8a%9f%e8%83%bd%ef%bc%8c%e4%ba%b2%e6%b5%8b%e5%9c%a8%e7%94%a8\/\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/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":[],"_links":{"self":[{"href":"https:\/\/a.li6.cc\/index.php\/wp-json\/wp\/v2\/posts\/9"}],"collection":[{"href":"https:\/\/a.li6.cc\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/a.li6.cc\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/a.li6.cc\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/a.li6.cc\/index.php\/wp-json\/wp\/v2\/comments?post=9"}],"version-history":[{"count":6,"href":"https:\/\/a.li6.cc\/index.php\/wp-json\/wp\/v2\/posts\/9\/revisions"}],"predecessor-version":[{"id":22,"href":"https:\/\/a.li6.cc\/index.php\/wp-json\/wp\/v2\/posts\/9\/revisions\/22"}],"wp:attachment":[{"href":"https:\/\/a.li6.cc\/index.php\/wp-json\/wp\/v2\/media?parent=9"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/a.li6.cc\/index.php\/wp-json\/wp\/v2\/categories?post=9"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/a.li6.cc\/index.php\/wp-json\/wp\/v2\/tags?post=9"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}