{"id":29290,"date":"2024-11-25T13:17:20","date_gmt":"2024-11-25T05:17:20","guid":{"rendered":"https:\/\/fwq.ai\/blog\/29290\/"},"modified":"2024-11-25T13:17:20","modified_gmt":"2024-11-25T05:17:20","slug":"ecshop%e5%a6%82%e4%bd%95%e5%ae%89%e8%a3%85%e7%99%be%e5%ba%a6%e7%bc%96%e8%be%91ueditor","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/29290\/","title":{"rendered":"ECSHOP\u5982\u4f55\u5b89\u88c5\u767e\u5ea6\u7f16\u8f91UEditor"},"content":{"rendered":"<p>ecshop\u7cfb\u7edf\u81ea\u5e26\u7684\u7f16\u8f91\u5668\u5927\u5bb6\u7528\u8fc7\u90fd\u77e5\u9053\uff0c\u96be\u7528\u4e0d\u8bf4\uff0c\u8fd8\u4e0d\u80fd\u6279\u91cf\u4e0a\u4f20\u56fe\u7247\u3002\u5f88\u591a\u670b\u53cb\u90fd\u559c\u6b22\u767e\u5ea6\u7f16\u8f91\u5668\uff0c\u56e0\u4e3a\u767e\u5ea6\u7f16\u8f91\u5668\u529f\u80fd\u5f3a\u5927\uff0c\u4f7f\u7528\u65b9\u4fbf\uff0c\u800c\u4e14\u4e0d\u4f1a\u751f\u6210\u592a\u591a\u591a\u4f59\u4ee3\u7801\u3002<\/p>\n<p style=\"text-align: center\"><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/020\/5dbfbe7c745f4899.jpg\" class=\"aligncenter\" title=\"ECSHOP\u5982\u4f55\u5b89\u88c5\u767e\u5ea6\u7f16\u8f91UEditor\u63d2\u56fe\" alt=\"ECSHOP\u5982\u4f55\u5b89\u88c5\u767e\u5ea6\u7f16\u8f91UEditor\u63d2\u56fe\" \/><\/p>\n<p>\u7f51\u4e0a\u6709\u8bb8\u591aECSHOP\u6574\u5408\u767e\u5ea6\u7f16\u8f91\u5668\u7684\u6559\u7a0b\uff0c\u4f46\u5927\u591a\u90fd\u6709\u4e00\u4e9b\u95ee\u9898\u3002<\/p>\n<p>\u63a8\u8350\uff1a\u300a\u300b<\/p>\n<p>\u5148\u770b\u6548\u679c\u56fe\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/image\/236\/618\/833\/1572847124874214.png\" class=\"aligncenter\" title=\"ECSHOP\u5982\u4f55\u5b89\u88c5\u767e\u5ea6\u7f16\u8f91UEditor\u63d2\u56fe1\" alt=\"ECSHOP\u5982\u4f55\u5b89\u88c5\u767e\u5ea6\u7f16\u8f91UEditor\u63d2\u56fe1\" \/><\/p>\n<p>\u6559\u7a0b\u5f00\u59cb\uff1a<\/p>\n<p>\u7b2c\u4e00\u6b65\uff1a<\/p>\n<p>\u5148\u5230\u767e\u5ea6\u7f16\u8f91\u5668\u5b98\u7f51\u4e0b\u8f7d\u6700\u65b0\u7248\uff0c\u5c06\u6587\u4ef6\u5939\u6539\u540d\u4e3a\u201cueditor\u201d\uff0c\u4e0a\u4f20\u5230 \/includes\/ \u76ee\u5f55\u4e0b<\/p>\n<p>\uff08\u4e5f\u53ef\u4ee5\u5728\u672c\u6559\u7a0b\u5e95\u90e8\u4e0b\u8f7d\u5236\u4f5c\u597d\u7684ueditor1.4.3\u7248\uff09<\/p>\n<p>\u7b2c\u4e8c\u6b65\uff1a<\/p>\n<p>\u6253\u5f00\u8fd9\u4e24\u4e2a\u6587\u4ef6\uff0c\u4e00\u4e2a\u662f\u5546\u54c1\u7f16\u8f91\uff0c\u4e00\u4e2a\u662f\u6587\u7ae0\u7f16\u8f91<\/p>\n<pre>\/admin\/templates\/goods_info.htm\n\/admin\/templates\/article_info.htm<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u67e5\u627e\uff1a<\/p>\n<pre>{$FCKeditor}<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u4fee\u6539\u6210\uff1a<\/p>\n<pre>&lt;script&gt;&lt;\/script&gt;&lt;script&gt; &lt;\/script&gt;&lt;!--\u5efa\u8bae\u624b\u52a8\u52a0\u5728\u8bed\u8a00\uff0c\u907f\u514d\u5728ie\u4e0b\u6709\u65f6\u56e0\u4e3a\u52a0\u8f7d\u8bed\u8a00\u5931\u8d25\u5bfc\u81f4\u7f16\u8f91\u5668\u52a0\u8f7d\u5931\u8d25--&gt;&lt;!--\u8fd9\u91cc\u52a0\u8f7d\u7684\u8bed\u8a00\u6587\u4ef6\u4f1a\u8986\u76d6\u4f60\u5728\u914d\u7f6e\u9879\u76ee\u91cc\u6dfb\u52a0\u7684\u8bed\u8a00\u7c7b\u578b\uff0c\u6bd4\u5982\u4f60\u5728\u914d\u7f6e\u9879\u76ee\u91cc\u914d\u7f6e\u7684\u662f\u82f1\u6587\uff0c\u8fd9\u91cc\u52a0\u8f7d\u7684\u4e2d\u6587\uff0c\u90a3\u6700\u540e\u5c31\u662f\u4e2d\u6587--&gt;&lt;script&gt;&lt;\/script&gt;&lt;style&gt;\n.clear {\nclear: both;\n}\n&lt;\/style&gt;&lt;textarea&gt;&nbsp;{$goods.goods_desc}&lt;\/textarea&gt;&lt;script&gt;\ndelete(Object.prototype.toJSONString);\nUE.getEditor(&#039;goods_desc&#039;)\n&lt;\/script&gt;<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u4e24\u4e2a\u6587\u4ef6\u90fd\u8fd9\u6837\u4fee\u6539\u3002<\/p>\n<p>\u6ce8\u610f\u8fd9\u884c\u4ee3\u7801\uff1a<\/p>\n<pre>&lt;textarea&gt;&nbsp;{$goods.goods_desc}&lt;\/textarea&gt;<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>width\u548cheight\u5206\u522b\u662f\u6307\u7f16\u8f91\u5668\u7684\u5927\u5c0f\uff0c\u4f46\u662fIE\u5185\u6838\u7684\u6d4f\u89c8\u5668\uff0c\u6709\u53ef\u80fd\u4e0d\u652f\u6301\u5199\u6210px\uff0c\u6240\u4ee5\u7f16\u8f91\u5668\u7684\u5927\u5c0f\u53ef\u80fd\u6709\u4e9b\u4e0d\u5b8c\u7f8e\uff0c\u8fd9\u662f\u8ddfCSS\u6709\u5173\uff0c\u8fd9\u4e2a\u53ef\u4ee5\u81ea\u884c\u89e3\u51b3\u3002<\/p>\n<p>\u8fd9\u4e2a\u65f6\u5019\uff0c\u5176\u5b9eECSHOP\u540e\u53f0\u7f16\u8f91\u5668\u5176\u5b9e\u5df2\u7ecf\u53ef\u4ee5\u6b63\u5e38\u4f7f\u7528\u4e86\uff0c\u53ea\u662f\u8fdb\u5165\u5546\u54c1\u5217\u8868\u3001\u5206\u7c7b\u7b49\u7b49\uff0c\u4f1a\u62a5\u9519\u7684\uff0c\u63d0\u793a\u7f3a\u5c11Ajax\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/image\/703\/748\/930\/1572847131126319.png\" class=\"aligncenter\" title=\"ECSHOP\u5982\u4f55\u5b89\u88c5\u767e\u5ea6\u7f16\u8f91UEditor\u63d2\u56fe2\" alt=\"ECSHOP\u5982\u4f55\u5b89\u88c5\u767e\u5ea6\u7f16\u8f91UEditor\u63d2\u56fe2\" \/><\/p>\n<p>\u4e0b\u9762\u63a5\u7740\u63d0\u4f9b\u89e3\u51b3\u65b9\u6cd5<\/p>\n<p>\u7b2c\u4e09\u6b65\uff1a\u89e3\u51b3\u540e\u53f0js\u51b2\u7a81<\/p>\n<p>\u6253\u5f00 \/admin\/templates\/pageheader.htm<\/p>\n<p>\u5728\u5934\u90e8\u627e\u5230\uff1a<\/p>\n<pre>{insert_scripts&nbsp;files=\"..\/js\/transport.js,common.js,..\/js\/utils.js\"}<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u4fee\u6539\u4e3a\uff1a<\/p>\n<pre>&lt;script&gt;&lt;\/script&gt;&lt;script&gt;&lt;\/script&gt;&lt;script&gt;&lt;\/script&gt;&lt;script&gt;&lt;\/script&gt;\n{insert_scripts&nbsp;files=\"..\/js\/utils.js\"}<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u8fd9\u6837\u5c31\u53ef\u4ee5\u4e86\u3002<\/p>\n<p>\u6ce8\u610f\uff0c\u4e0d\u8981\u5fd8\u8bb0\u4e86\u5f15\u7528\u7684JQ\u6587\u4ef6\u3002\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662fECSHOP\u5982\u4f55\u5b89\u88c5\u767e\u5ea6\u7f16\u8f91UEditor\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>ecshop\u7cfb\u7edf\u81ea\u5e26\u7684\u7f16\u8f91\u5668\u5927\u5bb6\u7528\u8fc7\u90fd\u77e5\u9053\uff0c\u96be\u7528\u4e0d\u8bf4\uff0c\u8fd8\u4e0d\u80fd\u6279\u91cf\u4e0a\u4f20\u56fe\u7247\u3002\u5f88\u591a\u670b\u53cb\u90fd\u559c\u6b22\u767e\u5ea6\u7f16\u8f91\u5668\uff0c\u56e0\u4e3a\u767e\u5ea6\u7f16\u8f91\u5668\u529f\u80fd\u5f3a\u5927\uff0c\u4f7f\u7528\u65b9\u4fbf\uff0c\u800c\u4e14\u4e0d\u4f1a\u751f\u6210\u592a\u591a\u591a\u4f59\u4ee3\u7801\u3002 \u7f51\u4e0a\u6709\u8bb8\u591aECSHOP\u6574\u5408\u767e\u5ea6\u7f16\u8f91\u5668\u7684\u6559\u7a0b\uff0c\u4f46\u5927\u591a\u90fd\u6709\u4e00\u4e9b\u95ee\u9898\u3002 \u63a8\u8350\uff1a\u300a\u300b \u5148\u770b\u6548\u679c\u56fe\uff1a \u6559\u7a0b\u5f00\u59cb\uff1a \u7b2c\u4e00\u6b65\uff1a \u5148\u5230\u767e\u5ea6\u7f16\u8f91\u5668\u5b98\u7f51\u4e0b\u8f7d\u6700\u65b0\u7248\uff0c\u5c06\u6587\u4ef6\u5939\u6539\u540d\u4e3a\u201cueditor\u201d\uff0c\u4e0a\u4f20\u5230 \/includes\/ \u76ee\u5f55\u4e0b \uff08\u4e5f\u53ef\u4ee5\u5728\u672c\u6559\u7a0b\u5e95\u90e8\u4e0b\u8f7d\u5236\u4f5c\u597d\u7684ueditor1.4.3\u7248\uff09 \u7b2c\u4e8c\u6b65\uff1a \u6253\u5f00\u8fd9\u4e24\u4e2a\u6587\u4ef6\uff0c\u4e00\u4e2a\u662f\u5546\u54c1\u7f16\u8f91\uff0c\u4e00\u4e2a\u662f\u6587\u7ae0\u7f16\u8f91 \/admin\/templates\/goods_info.htm \/admin\/templates\/article_info.htm \u767b\u5f55\u540e\u590d\u5236 \u67e5\u627e\uff1a {$FCKeditor} \u767b\u5f55\u540e\u590d\u5236 \u4fee\u6539\u6210\uff1a &lt;script&gt;&lt;\/script&gt;&lt;script&gt; &lt;\/script&gt;&lt;!&#8211;\u5efa\u8bae\u624b\u52a8\u52a0\u5728\u8bed\u8a00\uff0c\u907f\u514d\u5728ie\u4e0b\u6709\u65f6\u56e0\u4e3a\u52a0\u8f7d\u8bed\u8a00\u5931\u8d25\u5bfc\u81f4\u7f16\u8f91\u5668\u52a0\u8f7d\u5931\u8d25&#8211;&gt;&lt;!&#8211;\u8fd9\u91cc\u52a0\u8f7d\u7684\u8bed\u8a00\u6587\u4ef6\u4f1a\u8986\u76d6\u4f60\u5728\u914d\u7f6e\u9879\u76ee\u91cc\u6dfb\u52a0\u7684\u8bed\u8a00\u7c7b\u578b\uff0c\u6bd4\u5982\u4f60\u5728\u914d\u7f6e\u9879\u76ee\u91cc\u914d\u7f6e\u7684\u662f\u82f1\u6587\uff0c\u8fd9\u91cc\u52a0\u8f7d\u7684\u4e2d\u6587\uff0c\u90a3\u6700\u540e\u5c31\u662f\u4e2d\u6587&#8211;&gt;&lt;script&gt;&lt;\/script&gt;&lt;style&gt; .clear { clear: both; } &lt;\/style&gt;&lt;textarea&gt;&nbsp;{$goods.goods_desc}&lt;\/textarea&gt;&lt;script&gt; delete(Object.prototype.toJSONString); UE.getEditor(&#039;goods_desc&#039;) &lt;\/script&gt; \u767b\u5f55\u540e\u590d\u5236 \u4e24\u4e2a\u6587\u4ef6\u90fd\u8fd9\u6837\u4fee\u6539\u3002 \u6ce8\u610f\u8fd9\u884c\u4ee3\u7801\uff1a &lt;textarea&gt;&nbsp;{$goods.goods_desc}&lt;\/textarea&gt; \u767b\u5f55\u540e\u590d\u5236 width\u548cheight\u5206\u522b\u662f\u6307\u7f16\u8f91\u5668\u7684\u5927\u5c0f\uff0c\u4f46\u662fIE\u5185\u6838\u7684\u6d4f\u89c8\u5668\uff0c\u6709\u53ef\u80fd\u4e0d\u652f\u6301\u5199\u6210px\uff0c\u6240\u4ee5\u7f16\u8f91\u5668\u7684\u5927\u5c0f\u53ef\u80fd\u6709\u4e9b\u4e0d\u5b8c\u7f8e\uff0c\u8fd9\u662f\u8ddfCSS\u6709\u5173\uff0c\u8fd9\u4e2a\u53ef\u4ee5\u81ea\u884c\u89e3\u51b3\u3002 \u8fd9\u4e2a\u65f6\u5019\uff0c\u5176\u5b9eECSHOP\u540e\u53f0\u7f16\u8f91\u5668\u5176\u5b9e\u5df2\u7ecf\u53ef\u4ee5\u6b63\u5e38\u4f7f\u7528\u4e86\uff0c\u53ea\u662f\u8fdb\u5165\u5546\u54c1\u5217\u8868\u3001\u5206\u7c7b\u7b49\u7b49\uff0c\u4f1a\u62a5\u9519\u7684\uff0c\u63d0\u793a\u7f3a\u5c11Ajax\uff1a \u4e0b\u9762\u63a5\u7740\u63d0\u4f9b\u89e3\u51b3\u65b9\u6cd5 \u7b2c\u4e09\u6b65\uff1a\u89e3\u51b3\u540e\u53f0js\u51b2\u7a81 \u6253\u5f00 \/admin\/templates\/pageheader.htm \u5728\u5934\u90e8\u627e\u5230\uff1a {insert_scripts&nbsp;files=&#8221;..\/js\/transport.js,common.js,..\/js\/utils.js&#8221;} \u767b\u5f55\u540e\u590d\u5236 \u4fee\u6539\u4e3a\uff1a &lt;script&gt;&lt;\/script&gt;&lt;script&gt;&lt;\/script&gt;&lt;script&gt;&lt;\/script&gt;&lt;script&gt;&lt;\/script&gt; {insert_scripts&nbsp;files=&#8221;..\/js\/utils.js&#8221;} \u767b\u5f55\u540e\u590d\u5236 \u8fd9\u6837\u5c31\u53ef\u4ee5\u4e86\u3002 \u6ce8\u610f\uff0c\u4e0d\u8981\u5fd8\u8bb0\u4e86\u5f15\u7528\u7684JQ\u6587\u4ef6\u3002\u3002 \u4ee5\u4e0a\u5c31\u662fECSHOP\u5982\u4f55\u5b89\u88c5\u767e\u5ea6\u7f16\u8f91UEditor\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[],"class_list":["post-29290","post","type-post","status-publish","format-standard","hentry","category-cms"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/29290","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=29290"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/29290\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=29290"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=29290"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=29290"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}