{"id":399,"date":"2018-04-08T10:42:50","date_gmt":"2018-04-08T02:42:50","guid":{"rendered":"https:\/\/cloudbool.com\/archive\/?p=399"},"modified":"2018-04-08T10:42:50","modified_gmt":"2018-04-08T02:42:50","slug":"wordpress-disable-markdown-editor-plugin-syntax-highlighting-and-copy-button","status":"publish","type":"post","link":"https:\/\/cloudbool.com\/archive\/wordpress-disable-markdown-editor-plugin-syntax-highlighting-and-copy-button.html","title":{"rendered":"WordPress\u5173\u95edMarkdown Editor\u63d2\u4ef6\u7684\u4ee3\u7801\u9ad8\u4eae\u53ca\u590d\u5236\u6309\u94ae"},"content":{"rendered":"<p>\u4e00\u76f4\u4ee5\u6765\u6211\u90fd\u662f\u7528Markdown\u5728WordPress\u540e\u53f0\u5199\u6587\u7ae0\uff0c\u6700\u540e\u9009\u62e9\u7684markdown\u63d2\u4ef6\u5c31\u662f<strong>Markdown Editor<\/strong>\uff0c\u8fd9\u63d2\u4ef6\u672c\u6765\u548c\u6211\u662f\u7528\u8fc7\u7684\u51e0\u4e2a\u4e3b\u9898\u548c\u5e73\u5171\u5904\uff0c\u4f46\u662f\u6700\u8fd1\u540e\u53f0\u66f4\u65b0\u4e4b\u540e\u53d1\u73b0\uff0c\u524d\u53f0\u6587\u7ae0\u9875\u9762\u9047\u5230\u4ee3\u7801\u7247\u6bb5\u4f1a\u6709\u9519\u4f4d\u73b0\u8c61\uff0c\u518d\u52a0\u4e0a\u6211\u4f7f\u7528\u7684\u4e3b\u9898\u6709\u70b9\u51fb\u5927\u56fe\u9884\u89c8\u529f\u80fd\uff0c\u5bfc\u81f4\u9f20\u6807\u4e00\u79fb\u52a8\u5230\u4ee3\u7801\u7247\u6bb5\u4e0a\u9762\u5c31\u51fa\u73b0\u4e00\u4e2a\u83ab\u540d\u5176\u5999\u7684\u5927\u56fe\u3002\u8fd9\u4e48\u4e45\u6211\u90fd\u5728\u5bb6\u653e\u5047\uff0c\u6ca1\u5bf9\u4ee3\u7801\u505a\u4ec0\u4e48\u6539\u52a8\uff0c\u600e\u4e48\u5c31\u51fa\u73b0\u8fd9\u4e2a\u9519\u8bef\uff0c\u7b80\u76f4\u4e86\u3002<br \/>\n<!--more--><br \/>\n\u67e5\u6765\u67e5\u53bb\uff0c\u6700\u540e\u901a\u8fc7\u67e5\u770b\u524d\u53f0\u6e90\u4ee3\u7801\u53d1\u73b0\uff0c\u662f\u7531\u4e8e<strong>Markdown Editor<\/strong>\u63d2\u4ef6\u5bfc\u81f4\u7684\uff0c\u6211\u7a81\u7136\u60f3\u8d77\uff0c\u67d0\u4e2a\u65f6\u523b\u6211\u5728\u540e\u53f0\u70b9\u4e86\u4e0b\u5347\u7ea7\uff0c\u4e8e\u662f<strong>Markdown Editor<\/strong>\u5c31\u8fd9\u4e48\u66f4\u65b0\u4e86\uff0c\u4e5f\u6ca1\u8ba4\u771f\u770b\u63d2\u4ef6\u7684\u5347\u7ea7\u63d0\u793a\uff0c\u4ee5\u4e3a\u53ea\u662f\u5e38\u89c4\u7684bug\u4fee\u590d\u66f4\u65b0\uff0c\u6ca1\u60f3\u5230\u4e00\u4e2amarkdown\u63d2\u4ef6\u8fd8\u52a0\u4e0a\u4e86\u524d\u53f0\u4ee3\u7801\u9ad8\u4eae\u529f\u80fd\uff0c\u8bdd\u8bf4\uff0c\u4ee3\u7801\u9ad8\u4eae\u53ca\u4ee3\u7801\u7247\u6bb5\u590d\u5236\u529f\u80fd\u4e0d\u662f\u5e94\u8be5\u4ea4\u7ed9\u524d\u7aef\u53bb\u5b8c\u6210\u4e48\uff1f\u4e00\u4e2a\u63d2\u4ef6\u8d1f\u8d23\u8fd9\u4e2a\u5e72\u561b\uff1f\u4e00\u4e0d\u5c0f\u5fc3\u5c31\u548c\u524d\u7aef\u8d77\u51b2\u7a81\u554a\u5927\u5144\u5f1f\u3002<br \/>\n\u672c\u6765\u6211\u90fd\u60f3\u56de\u9000\u5230\u65e7\u7248\u672c\u53bb\uff0c\u7b49\u4fee\u6539\u4e3b\u9898\u4e4b\u540e\u5728\u5347\u7ea7\uff0c\u4f46\u662f\uff0c\u67e5\u770b\u63d2\u4ef6\u7684release\u4fe1\u606f\u4e4b\u540e\uff0c\u53d1\u73b0\u63d2\u4ef6\u4f5c\u8005\u7ed9\u51fa\u4e86\u89e3\u51b3\u65b9\u6848\uff0c\u5176\u4e2d\u53ea\u9700\u8981\u5f80\u4e3b\u9898\u7684<strong>function.php<\/strong>\u589e\u52a0\u4e24\u884c\u4ee3\u7801\u5c31\u884c\uff1a<\/p>\n<pre><code>\/\/\u5173\u95edMarkdown Editor\u7684\u4ee3\u7801\u9ad8\u4eae\nadd_filter( 'markdown_editor_highlight', '__return_false' );\n\/\/\u5173\u95edMarkdown Editor\u7684\u590d\u5236\u6309\u94ae\nadd_filter( 'markdown_editor_clipboard', '__return_false' );\n<\/code><\/pre>\n<p>\u67e5\u770b\u63d2\u4ef6release\u4fe1\u606f\u7684\u540c\u65f6\uff0c\u4e5f\u53d1\u73b0\u4e86\u5176\u4f59\u4e24\u4e2a\u529f\u80fd\u3002\u7528\u4e86\u8fd9\u4e48\u4e45\uff0c\u6211\u53d1\u73b0\u8fd9\u4e2a\u63d2\u4ef6\u53ea\u80fd\u5728\u64b0\u5199\u6587\u7ae0\u9875\u4f7f\u7528markdown\u8bed\u6cd5\uff0c\u800c\u5728\u65b0\u5efa\u9875\u9762\u7f16\u8f91\u9875\u9762\uff0c\u5374\u6ca1\u6709markdown\u7684\u652f\u6301\uff0c\u4f5c\u8005\u4e5f\u7ed9\u51fa\u4e86\u89e3\u51b3\u529e\u6cd5\uff0c\u8981\u4f7f\u65b0\u5efa\u9875\u9762\u4e5f\u652f\u6301markdown\uff0c\u53ea\u9700\u8981\u5728<strong>function.php<\/strong>\u589e\u52a0\u4e00\u884c\u4ee3\u7801\uff1a<\/p>\n<pre><code>add_post_type_support( 'page', 'wpcom-markdown' );\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u76f4\u4ee5\u6765\u6211\u90fd\u662f\u7528Markdown\u5728WordPress\u540e\u53f0\u5199\u6587\u7ae0\uff0c\u6700\u540e\u9009\u62e9\u7684markdown\u63d2\u4ef6\u5c31\u662fMarkdo &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/cloudbool.com\/archive\/wordpress-disable-markdown-editor-plugin-syntax-highlighting-and-copy-button.html\"> <span class=\"screen-reader-text\">WordPress\u5173\u95edMarkdown Editor\u63d2\u4ef6\u7684\u4ee3\u7801\u9ad8\u4eae\u53ca\u590d\u5236\u6309\u94ae<\/span> \u67e5\u770b\u5168\u6587 &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"footnotes":""},"categories":[183],"tags":[205,113],"class_list":["post-399","post","type-post","status-publish","format-standard","hentry","category-more","tag-markdown","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/posts\/399","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/comments?post=399"}],"version-history":[{"count":0,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/posts\/399\/revisions"}],"wp:attachment":[{"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/media?parent=399"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/categories?post=399"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/tags?post=399"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}