{"id":16681,"date":"2024-12-30T14:27:25","date_gmt":"2024-12-30T06:27:25","guid":{"rendered":"https:\/\/www.aisharenet.com\/?p=16681"},"modified":"2024-12-30T14:27:25","modified_gmt":"2024-12-30T06:27:25","slug":"aieditor","status":"publish","type":"post","link":"https:\/\/www.kdjingpai.com\/pt\/aieditor\/","title":{"rendered":"AIEditor\uff1a\u521b\u5efaAI\u9a71\u52a8\u7684\u5bcc\u6587\u672c\u7f16\u8f91\u5668\uff0c\u652f\u6301\u591a\u79cd\u524d\u7aef\u6846\u67b6"},"content":{"rendered":"<p>AIEditor \u662f\u4e00\u4e2a\u7531 AI \u9a71\u52a8\u7684\u4e0b\u4e00\u4ee3\u5bcc\u6587\u672c\u7f16\u8f91\u5668\uff0c\u57fa\u4e8e Web Component \u5f00\u53d1\uff0c\u652f\u6301 Vue\u3001React\u3001Angular \u7b49\u51e0\u4e4e\u6240\u6709\u4e3b\u6d41\u524d\u7aef\u6846\u67b6\u3002\u5b83\u517c\u5bb9 PC Web \u548c\u79fb\u52a8\u7aef\uff0c\u5e76\u63d0\u4f9b\u4e86\u6d45\u8272\u548c\u6df1\u8272\u4e24\u79cd\u4e3b\u9898\u3002AIEditor \u63d0\u4f9b\u7075\u6d3b\u7684\u914d\u7f6e\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u8f7b\u677e\u4f7f\u7528\u5b83\u6765\u5f00\u53d1\u4efb\u4f55\u6587\u672c\u7f16\u8f91\u5e94\u7528\u3002\u9664\u4e86\u5f00\u6e90\u7248\u672c\uff0cAIEditor \u8fd8\u63d0\u4f9b\u529f\u80fd\u66f4\u5f3a\u5927\u7684\u5546\u4e1a\u7248\u672c\uff0c\u4e0d\u9650\u5236\u7528\u6237\u6570\u91cf\u548c\u5e94\u7528\u6570\u91cf\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter  wp-image-16682\" title=\"AIEditor\uff1a\u521b\u5efaAI\u9a71\u52a8\u7684\u5bcc\u6587\u672c\u7f16\u8f91\u5668\uff0c\u652f\u6301\u591a\u79cd\u524d\u7aef\u6846\u67b6-1\" src=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2024\/12\/337b8f404d63e58.jpg\" alt=\"AIEditor\uff1a\u521b\u5efaAI\u9a71\u52a8\u7684\u5bcc\u6587\u672c\u7f16\u8f91\u5668\uff0c\u652f\u6301\u591a\u79cd\u524d\u7aef\u6846\u67b6-1\" width=\"842\" height=\"689\" srcset=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2024\/12\/337b8f404d63e58.jpg 996w, https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2024\/12\/337b8f404d63e58-300x245.jpg 300w, https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2024\/12\/337b8f404d63e58-768x628.jpg 768w, https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2024\/12\/337b8f404d63e58-15x12.jpg 15w\" sizes=\"auto, (max-width: 842px) 100vw, 842px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter  wp-image-16683\" title=\"AIEditor\uff1a\u521b\u5efaAI\u9a71\u52a8\u7684\u5bcc\u6587\u672c\u7f16\u8f91\u5668\uff0c\u652f\u6301\u591a\u79cd\u524d\u7aef\u6846\u67b6-1\" src=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2024\/12\/9b17c183eb7ae82.png\" alt=\"AIEditor\uff1a\u521b\u5efaAI\u9a71\u52a8\u7684\u5bcc\u6587\u672c\u7f16\u8f91\u5668\uff0c\u652f\u6301\u591a\u79cd\u524d\u7aef\u6846\u67b6-1\" width=\"759\" height=\"417\" srcset=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2024\/12\/9b17c183eb7ae82.png 1019w, https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2024\/12\/9b17c183eb7ae82-300x165.png 300w, https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2024\/12\/9b17c183eb7ae82-768x422.png 768w, https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2024\/12\/9b17c183eb7ae82-18x10.png 18w\" sizes=\"auto, (max-width: 759px) 100vw, 759px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-16684\" title=\"AIEditor\uff1a\u521b\u5efaAI\u9a71\u52a8\u7684\u5bcc\u6587\u672c\u7f16\u8f91\u5668\uff0c\u652f\u6301\u591a\u79cd\u524d\u7aef\u6846\u67b6-1\" src=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2024\/12\/4b3a71bf1f6bfa8.png\" alt=\"AIEditor\uff1a\u521b\u5efaAI\u9a71\u52a8\u7684\u5bcc\u6587\u672c\u7f16\u8f91\u5668\uff0c\u652f\u6301\u591a\u79cd\u524d\u7aef\u6846\u67b6-1\" width=\"913\" height=\"476\" srcset=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2024\/12\/4b3a71bf1f6bfa8.png 913w, https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2024\/12\/4b3a71bf1f6bfa8-300x156.png 300w, https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2024\/12\/4b3a71bf1f6bfa8-768x400.png 768w, https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2024\/12\/4b3a71bf1f6bfa8-18x9.png 18w\" sizes=\"auto, (max-width: 913px) 100vw, 913px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h2>\u529f\u80fd\u5217\u8868<\/h2>\n<ul>\n<li><strong>AI \u7ffb\u8bd1<\/strong>\uff1a\u652f\u6301\u591a\u8bed\u8a00\u7ffb\u8bd1\uff0c\u81ea\u5b9a\u4e49\u7ffb\u8bd1\u8bed\u79cd\u548c\u63d0\u793a\u8bcd\u3002<\/li>\n<li><strong>AI \u7eed\u5199<\/strong>\uff1a\u6839\u636e\u4e0a\u4e0b\u6587\u81ea\u52a8\u7eed\u5199\u6587\u672c\uff0c\u63d0\u9ad8\u5199\u4f5c\u6548\u7387\u3002<\/li>\n<li><strong>AI \u4f18\u5316<\/strong>\uff1a\u4f18\u5316\u6587\u672c\u5185\u5bb9\uff0c\u63d0\u5347\u8bed\u8a00\u8d28\u91cf\u3002<\/li>\n<li><strong>AI \u4ee3\u7801\u5757<\/strong>\uff1a\u81ea\u52a8\u6dfb\u52a0\u4ee3\u7801\u6ce8\u91ca\u548c\u89e3\u91ca\u4ee3\u7801\u542b\u4e49\u3002<\/li>\n<li><strong>\u591a\u4eba\u534f\u4f5c<\/strong>\uff1a\u652f\u6301\u591a\u4e2a\u7528\u6237\u540c\u65f6\u7f16\u8f91\u540c\u4e00\u6587\u6863\uff0c\u5b9e\u65f6\u67e5\u770b\u5f7c\u6b64\u7684\u8f93\u5165\u548c\u66f4\u6539\u3002<\/li>\n<li><strong>\u6279\u6ce8\u529f\u80fd<\/strong>\uff1a\u5141\u8bb8\u5728\u6587\u6863\u7279\u5b9a\u90e8\u5206\u6dfb\u52a0\u8bc4\u8bba\u6216\u5efa\u8bae\uff0c\u65b9\u4fbf\u540e\u7eed\u4fee\u8ba2\u3002<\/li>\n<li><strong>Markdown \u652f\u6301<\/strong>\uff1a\u8bc6\u522b\u5e76\u6b63\u786e\u6e32\u67d3 Markdown \u8bed\u6cd5\uff0c\u5b9e\u65f6\u9884\u89c8\u7f16\u8f91\u6548\u679c\u3002<\/li>\n<li><strong>\u5bfc\u5165\u5bfc\u51fa<\/strong>\uff1a\u652f\u6301 Word\u3001Markdown\u3001HTML\u3001PDF \u683c\u5f0f\u7684\u5bfc\u5165\u548c\u5bfc\u51fa\u3002<\/li>\n<li><strong>\u81ea\u5b9a\u4e49 AI \u83dc\u5355<\/strong>\uff1a\u6839\u636e\u5b9e\u9645\u573a\u666f\u81ea\u5b9a\u4e49 AI \u529f\u80fd\u548c\u63d0\u793a\u8bcd\u3002<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h2>\u4f7f\u7528\u5e2e\u52a9<\/h2>\n<h3>\u5b89\u88c5\u6d41\u7a0b<\/h3>\n<ol>\n<li><strong>\u5b89\u88c5 npm \u5305<\/strong>\uff1a\u5728\u9879\u76ee\u76ee\u5f55\u4e0b\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5 AIEditor\uff1a<\/li>\n<\/ol>\n<pre><code>   npm install aieditor\r\n<\/code><\/pre>\n<ol start=\"2\">\n<li><strong>\u5f15\u5165 AIEditor<\/strong>\uff1a\u5728\u9879\u76ee\u4e2d\u5f15\u5165 AIEditor \u7ec4\u4ef6\uff0c\u4f8b\u5982\u5728 Vue \u9879\u76ee\u4e2d\uff1a<\/li>\n<\/ol>\n<pre><code>   import { createApp } from 'vue';\r\nimport App from '.\/App.vue';\r\nimport AIEditor from 'aieditor';\r\nconst app = createApp(App);\r\napp.use(AIEditor);\r\napp.mount('#app');\r\n<\/code><\/pre>\n<h3>\u4f7f\u7528\u6307\u5357<\/h3>\n<ol>\n<li><strong>\u57fa\u672c\u4f7f\u7528<\/strong>\uff1a\u5728\u9879\u76ee\u4e2d\u6dfb\u52a0 AIEditor \u7ec4\u4ef6\uff0c\u4f8b\u5982\u5728 Vue \u9879\u76ee\u4e2d\uff1a<\/li>\n<\/ol>\n<pre><code>   &lt;template&gt;\r\n&lt;AIEditor \/&gt;\r\n&lt;\/template&gt;\r\n<\/code><\/pre>\n<ol start=\"2\">\n<li><strong>\u914d\u7f6e\u9009\u9879<\/strong>\uff1aAIEditor \u63d0\u4f9b\u591a\u79cd\u914d\u7f6e\u9009\u9879\uff0c\u53ef\u4ee5\u6839\u636e\u9700\u8981\u8fdb\u884c\u81ea\u5b9a\u4e49\u3002\u4f8b\u5982\uff0c\u8bbe\u7f6e\u4e3b\u9898\u548c\u8bed\u8a00\uff1a<\/li>\n<\/ol>\n<pre><code>   &lt;AIEditor theme=\"dark\" language=\"zh\" \/&gt;\r\n<\/code><\/pre>\n<ol start=\"3\">\n<li><strong>AI\u529f\u80fd<\/strong>\uff1aAIEditor \u652f\u6301\u5bf9\u63a5\u4efb\u4f55\u5927\u6a21\u578b\uff0c\u7528\u6237\u53ef\u4ee5\u4f7f\u7528\u81ea\u5df1\u7684\u79c1\u6709\u5927\u6a21\u578b ApiKey\uff0c\u5e76\u81ea\u5b9a\u4e49 AI \u63d0\u793a\u548c\u6269\u5c55 AI \u83dc\u5355\u3002\u4f8b\u5982\uff0c\u8bbe\u7f6e ApiKey\uff1a<\/li>\n<\/ol>\n<pre><code>   &lt;AIEditor apiKey=\"your-private-api-key\" \/&gt;\r\n<\/code><\/pre>\n<ol start=\"4\">\n<li><strong>\u9644\u4ef6\u4e0a\u4f20<\/strong>\uff1aAIEditor \u652f\u6301\u591a\u79cd\u9644\u4ef6\u4e0a\u4f20\u65b9\u5f0f\uff0c\u5305\u62ec\u9009\u62e9\u4e0a\u4f20\u3001\u7c98\u8d34\u4e0a\u4f20\u548c\u62d6\u62fd\u4e0a\u4f20\u3002\u4f8b\u5982\uff0c\u6dfb\u52a0\u56fe\u7247\u4e0a\u4f20\u529f\u80fd\uff1a<\/li>\n<\/ol>\n<pre><code>   &lt;AIEditor :uploadOptions=\"{ image: true }\" \/&gt;\r\n<\/code><\/pre>\n<h3>\u8be6\u7ec6\u529f\u80fd\u64cd\u4f5c\u6d41\u7a0b<\/h3>\n<ol>\n<li><strong>\u6587\u672c\u7f16\u8f91<\/strong>\uff1a\u4f7f\u7528 AIEditor \u7684\u57fa\u672c\u529f\u80fd\u8fdb\u884c\u6587\u672c\u7f16\u8f91\uff0c\u4f8b\u5982\u52a0\u7c97\u3001\u659c\u4f53\u3001\u4e0b\u5212\u7ebf\u7b49\u3002<\/li>\n<li><strong>\u683c\u5f0f\u5237\u548c\u6a61\u76ae\u64e6<\/strong>\uff1a\u4f7f\u7528\u683c\u5f0f\u5237\u590d\u5236\u6587\u672c\u683c\u5f0f\uff0c\u4f7f\u7528\u6a61\u76ae\u64e6\u6e05\u9664\u6587\u672c\u683c\u5f0f\u3002<\/li>\n<li><strong>\u5f85\u529e\u4e8b\u9879\u5217\u8868<\/strong>\uff1a\u521b\u5efa\u548c\u7ba1\u7406\u5f85\u529e\u4e8b\u9879\u5217\u8868\uff0c\u65b9\u4fbf\u4efb\u52a1\u8ddf\u8e2a\u3002<\/li>\n<li><strong>\u8868\u60c5\u7b26\u53f7<\/strong>\uff1a\u63d2\u5165\u8868\u60c5\u7b26\u53f7\uff0c\u4e30\u5bcc\u6587\u672c\u5185\u5bb9\u3002<\/li>\n<li><strong>\u9644\u4ef6\u7ba1\u7406<\/strong>\uff1a\u4e0a\u4f20\u548c\u7ba1\u7406\u56fe\u7247\u3001\u89c6\u9891\u3001\u6587\u4ef6\u7b49\u9644\u4ef6\uff0c\u652f\u6301\u62d6\u62fd\u8c03\u6574\u5927\u5c0f\u3002<\/li>\n<\/ol>\n<p>\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4\uff0c\u7528\u6237\u53ef\u4ee5\u8f7b\u677e\u5b89\u88c5\u548c\u4f7f\u7528 AIEditor\uff0c\u5145\u5206\u5229\u7528\u5176\u5f3a\u5927\u7684 AI \u9a71\u52a8\u529f\u80fd\u548c\u4e30\u5bcc\u7684\u6587\u672c\u7f16\u8f91\u529f\u80fd\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>AIEditor \u662f\u4e00\u4e2a\u7531 AI \u9a71\u52a8\u7684\u4e0b\u4e00\u4ee3\u5bcc\u6587\u672c\u7f16\u8f91\u5668\uff0c\u57fa\u4e8e Web Component \u5f00\u53d1\uff0c\u652f\u6301 Vue\u3001React\u3001Angular \u7b49\u51e0\u4e4e\u6240\u6709\u4e3b\u6d41\u524d\u7aef\u6846\u67b6\u3002\u5b83\u517c\u5bb9 PC Web \u548c\u79fb\u52a8\u7aef\uff0c\u5e76\u63d0\u4f9b\u4e86\u6d45\u8272\u548c\u6df1\u8272\u4e24\u79cd\u4e3b\u9898\u3002AIEdito&#8230;<\/p>\n","protected":false},"author":1,"featured_media":61527,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[214,230],"class_list":["post-16681","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tool","tag-aixiezuo","tag-aikaiyuanxiangmu"],"_links":{"self":[{"href":"https:\/\/www.kdjingpai.com\/pt\/wp-json\/wp\/v2\/posts\/16681","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kdjingpai.com\/pt\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kdjingpai.com\/pt\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kdjingpai.com\/pt\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kdjingpai.com\/pt\/wp-json\/wp\/v2\/comments?post=16681"}],"version-history":[{"count":0,"href":"https:\/\/www.kdjingpai.com\/pt\/wp-json\/wp\/v2\/posts\/16681\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.kdjingpai.com\/pt\/wp-json\/wp\/v2\/media\/61527"}],"wp:attachment":[{"href":"https:\/\/www.kdjingpai.com\/pt\/wp-json\/wp\/v2\/media?parent=16681"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kdjingpai.com\/pt\/wp-json\/wp\/v2\/categories?post=16681"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kdjingpai.com\/pt\/wp-json\/wp\/v2\/tags?post=16681"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}