{"id":186147,"date":"2023-07-26T00:48:51","date_gmt":"2023-07-25T16:48:51","guid":{"rendered":"http:\/\/www.idc.net\/help\/186147\/"},"modified":"2023-07-26T00:48:51","modified_gmt":"2023-07-25T16:48:51","slug":"%e5%90%8e%e6%b5%aa%e4%ba%91%e7%99%be%e5%ba%a6%e5%b0%8f%e7%a8%8b%e5%ba%8f%e6%95%99%e7%a8%8b%ef%bc%9arich-text-%e5%af%8c%e6%96%87%e6%9c%ac","status":"publish","type":"post","link":"https:\/\/idc.net\/help\/186147\/","title":{"rendered":"\u540e\u6d6a\u4e91\u767e\u5ea6\u5c0f\u7a0b\u5e8f\u6559\u7a0b\uff1arich-text \u5bcc\u6587\u672c"},"content":{"rendered":"<ul>\n<li>rich-text \u5bcc\u6587\u672c\n<ul>\n<li>\u5c5e\u6027\u8bf4\u660e\n<ul>\n<li>nodes<\/li>\n<li>\u53d7\u4fe1\u4efb\u7684 HTML \u8282\u70b9\u4ee5\u53ca\u5c5e\u6027\u8bf4\u660e<\/li>\n<\/ul>\n<\/li>\n<li>\u793a\u4f8b\n<ul>\n<li>\u4ee3\u7801\u793a\u4f8b 1\uff1a\u901a\u8fc7 HTML String \u6e32\u67d3<\/li>\n<li>\u4ee3\u7801\u793a\u4f8b 2\uff1a\u901a\u8fc7\u8282\u70b9\u6e32\u67d3<\/li>\n<\/ul>\n<\/li>\n<li>Bug &amp; Tip\n<ul><\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h1><span><\/span>rich-text \u5bcc\u6587\u672c<\/h1>\n<p><strong>\u89e3\u91ca<\/strong>\uff1a\u5bcc\u6587\u672c\u3002<\/p>\n<h2><span><\/span>\u5c5e\u6027\u8bf4\u660e<\/h2>\n<table>\n<thead>\n<tr>\n<th>\u5c5e\u6027\u540d<\/th>\n<th>\u7c7b\u578b<\/th>\n<th>\u9ed8\u8ba4\u503c<\/th>\n<th>\u5fc5\u586b<\/th>\n<th>\u8bf4\u660e<\/th>\n<th>\u6700\u4f4e\u7248\u672c<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\n<p>nodes<\/p>\n<\/td>\n<td>\n<p>Array\/String<\/p>\n<\/td>\n<td>\n<p>[]<\/p>\n<\/td>\n<td>\n<p>\u5426<\/p>\n<\/td>\n<td>\n<p>\u8282\u70b9\u5217\u8868\/HTML String \u3002\u63a8\u8350\u4f7f\u7528 Array \u7c7b\u578b\uff0c\u7531\u4e8e\u7ec4\u4ef6\u4f1a\u5c06 String \u7c7b\u578b\u8f6c\u6362\u4e3a Array \u7c7b\u578b\uff0c\u6027\u80fd\u6709\u6240\u4e0b\u964d<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>selectable<\/p>\n<\/td>\n<td>\n<p>Boolean<\/p>\n<\/td>\n<td> false\uff08\u57fa\u7840\u5e93 3.150.1 \u4ee5\u524d\u7248\u672c\uff09 true\uff08\u57fa\u7840\u5e93 3.150.1 \u53ca\u4ee5\u540e\u7248\u672c\uff09<\/td>\n<td>\n<p>\u5426<\/p>\n<\/td>\n<td>\n<p>\u5bcc\u6587\u672c\u662f\u5426\u53ef\u4ee5\u957f\u6309\u9009\u4e2d\uff0c\u53ef\u7528\u4e8e\u590d\u5236\uff0c\u7c98\u8d34\uff0c\u957f\u6309\u641c\u7d22\u7b49\u573a\u666f<\/p>\n<\/td>\n<td>\n<p>\u767e\u5ea6 App 11.10<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>image-menu-prevent<\/p>\n<\/td>\n<td>\n<p>Boolean<\/p>\n<\/td>\n<td>\n<p>false<\/p>\n<\/td>\n<td>\n<p>\u5426<\/p>\n<\/td>\n<td>\n<p>\u963b\u6b62\u957f\u6309\u56fe\u7247\u65f6\u5f39\u8d77\u9ed8\u8ba4\u83dc\u5355\uff08\u5c06\u8be5\u5c5e\u6027\u8bbe\u7f6e\u4e3a<code>image-menu-prevent<\/code>\u6216<code>image-menu-prevent=\u201dtrue\u201d<\/code>\uff09\uff0c\u53ea\u5728\u521d\u59cb\u5316\u65f6\u6709\u6548\uff0c\u4e0d\u80fd\u52a8\u6001\u53d8\u66f4\uff1b\u82e5\u4e0d\u60f3\u963b\u6b62\u5f39\u8d77\u9ed8\u8ba4\u83dc\u5355\uff0c\u5219\u4e0d\u9700\u8981\u8bbe\u7f6e\u6b64\u5c5e\u6027<\/p>\n<\/td>\n<td>\n<p>3.170.1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>preview<\/p>\n<\/td>\n<td>\n<p>Boolean<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>\u5426<\/p>\n<\/td>\n<td>\n<p>\u5bcc\u6587\u672c\u4e2d\u7684\u56fe\u7247\u662f\u5426\u53ef\u70b9\u51fb\u9884\u89c8\u3002\u5728\u4e0d\u8bbe\u7f6e\u7684\u60c5\u51b5\u4e0b\uff0c\u82e5 rich-text \u672a\u76d1\u542c\u70b9\u51fb\u4e8b\u4ef6\uff0c\u5219\u9ed8\u8ba4\u5f00\u542f\u3002\u672a\u663e\u793a\u8bbe\u7f6e preview \u65f6\u4f1a\u8fdb\u884c\u70b9\u51fb\u9ed8\u8ba4\u9884\u89c8\u5224\u65ad\uff0c\u5efa\u8bae\u663e\u793a\u8bbe\u7f6e preview<\/p>\n<\/td>\n<td>\n<p>3.170.9<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3><span><\/span>nodes<\/h3>\n<p>\u73b0\u652f\u6301\u4e24\u79cd\u8282\u70b9\uff0c\u901a\u8fc7 type \u6765\u533a\u5206\uff0c\u5206\u522b\u662f\u201c\u5143\u7d20\u8282\u70b9\u201d\u548c\u201c\u6587\u672c\u8282\u70b9\u201d\uff0c\u9ed8\u8ba4\u662f\u5143\u7d20\u8282\u70b9\uff0c\u5728\u5bcc\u6587\u672c\u533a\u57df\u91cc\u663e\u793a\u7684 HTML \u8282\u70b9\u3002<br \/><strong>\u5143\u7d20\u8282\u70b9 - type: \u2018node\u2019<\/strong><\/p>\n<table>\n<thead>\n<tr>\n<th>\u5c5e\u6027\u540d<\/th>\n<th>\u7c7b\u578b<\/th>\n<th>\u9ed8\u8ba4\u503c<\/th>\n<th>\u5fc5\u586b<\/th>\n<th>\u8bf4\u660e<\/th>\n<th>\u6700\u4f4e\u7248\u672c<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>name<\/td>\n<td>String<\/td>\n<td><\/td>\n<td>\u662f<\/td>\n<td>\u6807\u7b7e\u540d\u3002\u652f\u6301\u90e8\u5206\u53d7\u4fe1\u4efb\u7684 HTML \u8282\u70b9\uff0c\u5927\u5c0f\u5199\u4e0d\u654f\u611f<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>attrs<\/td>\n<td>Object<\/td>\n<td><\/td>\n<td>\u5426<\/td>\n<td>\u5c5e\u6027\u3002\u652f\u6301\u90e8\u5206\u53d7\u4fe1\u4efb\u7684\u5c5e\u6027\uff0c\u9075\u5faa Pascal \u547d\u540d\u6cd5\u3002\u4e0d\u652f\u6301 id \uff0c\u652f\u6301 class<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>children<\/td>\n<td>Array<\/td>\n<td><\/td>\n<td>\u5426<\/td>\n<td>\u5b50\u8282\u70b9\u5217\u8868\u3002\u7ed3\u6784\u548c nodes \u4e00\u81f4<\/td>\n<td><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>\u6587\u672c\u8282\u70b9 - type: \u2018text\u2019<\/strong><\/p>\n<table>\n<thead>\n<tr>\n<th>\u5c5e\u6027\u540d<\/th>\n<th>\u7c7b\u578b<\/th>\n<th>\u9ed8\u8ba4\u503c<\/th>\n<th>\u5fc5\u586b<\/th>\n<th>\u8bf4\u660e<\/th>\n<th>\u6700\u4f4e\u7248\u672c<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>text<\/td>\n<td>String<\/td>\n<td><\/td>\n<td>\u662f<\/td>\n<td>\u6587\u672c\u3002\u652f\u6301 entities \uff0c\u4f8b\u5982\uff1a<code>&lt;p&gt;&amp;lt;Life&amp;gt; is&amp;nbsp;&lt;i&gt;like&lt;\/i&gt;&amp;nbsp;a box of&lt;b&gt;&amp;nbsp;chocolates&lt;\/b&gt;&lt;\/p&gt;<\/code><\/td>\n<td><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3><span><\/span>\u53d7\u4fe1\u4efb\u7684 HTML \u8282\u70b9\u4ee5\u53ca\u5c5e\u6027\u8bf4\u660e<\/h3>\n<blockquote>\n<p>1.\u5168\u5c40\u652f\u6301 class \u548c style \u5c5e\u6027\uff0c\u4e0d\u652f\u6301 id \u5c5e\u6027\u3002<br \/>2.\u5982\u679c\u4f7f\u7528\u4e86\u4e0d\u53d7\u4fe1\u4efb\u7684 HTML \u8282\u70b9\uff0c\u8be5\u8282\u70b9\u53ca\u5176\u6240\u6709\u5b50\u8282\u70b9\u5c06\u4f1a\u88ab\u79fb\u9664\u3002<\/p>\n<\/blockquote>\n<table>\n<thead>\n<tr>\n<th>\u8282\u70b9<\/th>\n<th>\u5c5e\u6027<\/th>\n<th>\u8282\u70b9<\/th>\n<th>\u5c5e\u6027<\/th>\n<th>\u8282\u70b9<\/th>\n<th>\u5c5e\u6027<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\n<p>a<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>abbr<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>b<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>blockquote<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>br<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>code<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>col<\/p>\n<\/td>\n<td>\n<p>span\uff0cwidth<\/p>\n<\/td>\n<td>\n<p>colgroup<\/p>\n<\/td>\n<td>\n<p>span\uff0cwidth<\/p>\n<\/td>\n<td>\n<p>dd<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>del<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>div<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>dl<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>dt<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>em<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>fieldset<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>h1<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>h2<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>h3<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>h4<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>h5<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>h6<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>hr<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>i<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>img<\/p>\n<\/td>\n<td>\n<p>alt\uff0csrc\uff0cheight\uff0cwidth<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>ins<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>label<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>legend<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>li<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>ol<\/p>\n<\/td>\n<td>\n<p>start\uff0ctype<\/p>\n<\/td>\n<td>\n<p>p<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>q<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>span<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>strong<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>sub<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>sup<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>table<\/p>\n<\/td>\n<td>\n<p>width<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>tbody<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>td<\/p>\n<\/td>\n<td>\n<p>colspan\uff0cheight\uff0crowspan\uff0cwidth<\/p>\n<\/td>\n<td>\n<p>tfoot<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>th<\/p>\n<\/td>\n<td>\n<p>colspan\uff0cheight\uff0crowspan\uff0cwidth<\/p>\n<\/td>\n<td>\n<p>thead<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>tr<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>ul<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2><span><\/span>\u793a\u4f8b<\/h2>\n<p>\u8df3\u8f6c\u7f16\u8f91\u5de5\u5177<\/p>\n<p>\u5728\u5f00\u53d1\u8005\u5de5\u5177\u4e2d\u6253\u5f00<\/p>\n<p>\u5728 WEB IDE \u4e2d\u6253\u5f00<\/p>\n<p>\u626b\u7801\u4f53\u9a8c<\/p>\n<p>\u4ee3\u7801\u793a\u4f8b<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/static.sitestack.cn\/projects\/smartprogram-20210306\/97ebf63311ffac886baad1c970c1b97b.png\" class=\"aligncenter\"><\/p>\n<p>\u8bf7\u4f7f\u7528\u767e\u5ea6APP\u626b\u7801<\/p>\n<h3><span><\/span>\u4ee3\u7801\u793a\u4f8b 1\uff1a\u901a\u8fc7 HTML String \u6e32\u67d3<\/h3>\n<ul>\n<li>SWAN<\/li>\n<li>JS<\/li>\n<\/ul>\n<pre>\n \n \n <ol>\n  \n  \n  <li><code><span>&lt;view<\/span><span> <\/span><span>class<\/span><span>=<\/span><span>\"wrap\"<\/span><span>&gt;<\/span><\/code><\/li>\n  \n  \n  <li><code><span> <\/span><span>&lt;view<\/span><span> <\/span><span>class<\/span><span>=<\/span><span>\"card-area\"<\/span><span>&gt;<\/span><\/code><\/li>\n  \n  \n  <li><code><span> <\/span><span>&lt;view<\/span><span> <\/span><span>class<\/span><span>=<\/span><span>\"top-description border-bottom\"<\/span><span>&gt;<\/span><span>\u901a\u8fc7HTML String\u6e32\u67d3<\/span><span>&lt;\/view&gt;<\/span><\/code><\/li>\n  \n  \n  <li><code><span> <\/span><span>&lt;view<\/span><span> <\/span><span>class<\/span><span>=<\/span><span>\"description\"<\/span><span>&gt;<\/span><span>\u4ee3\u7801\u793a\u4f8b<\/span><span>&lt;\/view&gt;<\/span><\/code><\/li>\n  \n  \n  <li><code><span> <\/span><span>&lt;scroll-view<\/span><span> <\/span><span>scroll-y<\/span><span>&gt;<\/span><\/code><\/li>\n  \n  \n  <li><code><span> <\/span><span>&lt;view<\/span><span> <\/span><span>class<\/span><span>=<\/span><span>\"cont border-bottom\"<\/span><span>&gt;<\/span><span>{{htmlSnip}}<\/span><span>&lt;\/view&gt;<\/span><\/code><\/li>\n  \n  \n  <li><code><span> <\/span><span>&lt;\/scroll-view&gt;<\/span><\/code><\/li>\n  \n  \n  <li><code><span> <\/span><span>&lt;view<\/span><span> <\/span><span>class<\/span><span>=<\/span><span>\"description\"<\/span><span>&gt;<\/span><span>\u6e32\u67d3\u6548\u679c<\/span><span>&lt;\/view&gt;<\/span><\/code><\/li>\n  \n  \n  <li><code><span> <\/span><span>&lt;view<\/span><span> <\/span><span>class<\/span><span>=<\/span><span>\"rich-text\"<\/span><span>&gt;<\/span><\/code><\/li>\n  \n  \n  <li><code><span> <\/span><span>&lt;!-- \u57fa\u7840\u5e93 3.150.1 \u4ee5\u524d\u7684\u7248\u672c\uff0cselectable \u5c5e\u6027\u9ed8\u8ba4\u4e3a false\uff0c\u671f\u671b\u6587\u672c\u4e0d\u53ef\u88ab\u9009\u4e2d\u65f6\u4e0d\u7528\u8bbe\u7f6e\u6b64\u5c5e\u6027 --&gt;<\/span><\/code><\/li>\n  \n  \n  <li><code><span> <\/span><span>&lt;rich-text<\/span><span> <\/span><span>nodes<\/span><span>=<\/span><span>\"{{htmlSnip}}\"<\/span><span> <\/span><span>image-menu-prevent<\/span><span>=<\/span><span>\"true\"<\/span><span>&gt;&lt;\/rich-text&gt;<\/span><\/code><\/li>\n  \n  \n  <li><code><span> <\/span><span>&lt;!-- \u57fa\u7840\u5e93 3.150.1 \u53ca\u4ee5\u540e\u7248\u672c\uff0cselectable \u5c5e\u6027\u9ed8\u8ba4\u4e3a true\uff0c\u671f\u671b\u6587\u672c\u4e0d\u53ef\u88ab\u9009\u4e2d\u65f6\u9700\u8bbe\u7f6e\u6b64\u5c5e\u6027\u4e3a false --&gt;<\/span><\/code><\/li>\n  \n  \n  <li><code><span> <\/span><span>&lt;!-- &lt;rich-text selectable=\"false\" nodes=\"{{htmlSnip}}\"&gt;&lt;\/rich-text&gt; --&gt;<\/span><\/code><\/li>\n  \n  \n  <li><code><span> <\/span><span>&lt;\/view&gt;<\/span><\/code><\/li>\n  \n  \n  <li><code><span> <\/span><span>&lt;\/view&gt;<\/span><\/code><\/li>\n  \n  \n  <li><code><span>&lt;\/view&gt;<\/span><\/code><\/li>\n \n \n <\/ol><\/pre>\n<h3><span><\/span>\u4ee3\u7801\u793a\u4f8b 2\uff1a\u901a\u8fc7\u8282\u70b9\u6e32\u67d3<\/h3>\n<ul>\n<li>SWAN<\/li>\n<li>JS<\/li>\n<\/ul>\n<pre>\n \n \n <ol>\n  \n  \n  <li><code><span>&lt;view<\/span><span> <\/span><span>class<\/span><span>=<\/span><span>\"wrap\"<\/span><span>&gt;<\/span><\/code><\/li>\n  \n  \n  <li><code><span> <\/span><span>&lt;view<\/span><span> <\/span><span>class<\/span><span>=<\/span><span>\"card-area\"<\/span><span>&gt;<\/span><\/code><\/li>\n  \n  \n  <li><code><span> <\/span><span>&lt;view<\/span><span> <\/span><span>class<\/span><span>=<\/span><span>\"top-description border-bottom\"<\/span><span>&gt;<\/span><span>\u901a\u8fc7\u8282\u70b9\u6e32\u67d3<\/span><span>&lt;\/view&gt;<\/span><\/code><\/li>\n  \n  \n  <li><code><span> <\/span><span>&lt;view<\/span><span> <\/span><span>class<\/span><span>=<\/span><span>\"description\"<\/span><span>&gt;<\/span><span>\u4ee3\u7801\u793a\u4f8b<\/span><span>&lt;\/view&gt;<\/span><\/code><\/li>\n  \n  \n  <li><code><span> <\/span><span>&lt;scroll-view<\/span><span> <\/span><span>scroll-y<\/span><span>&gt;<\/span><\/code><\/li>\n  \n  \n  <li><code><span> <\/span><span>&lt;view<\/span><span> <\/span><span>class<\/span><span>=<\/span><span>\"cont border-bottom\"<\/span><span>&gt;<\/span><span>{{nodeSnip}}<\/span><span>&lt;\/view&gt;<\/span><\/code><\/li>\n  \n  \n  <li><code><span> <\/span><span>&lt;\/scroll-view&gt;<\/span><\/code><\/li>\n  \n  \n  <li><code><span> <\/span><span>&lt;view<\/span><span> <\/span><span>class<\/span><span>=<\/span><span>\"description\"<\/span><span>&gt;<\/span><span>\u6e32\u67d3\u6548\u679c<\/span><span>&lt;\/view&gt;<\/span><\/code><\/li>\n  \n  \n  <li><code><span> <\/span><span>&lt;view<\/span><span> <\/span><span>class<\/span><span>=<\/span><span>\"rich-text\"<\/span><span>&gt;<\/span><\/code><\/li>\n  \n  \n  <li><code><span> <\/span><span>&lt;!-- \u57fa\u7840\u5e93 3.150.1 \u4ee5\u524d\u7684\u7248\u672c\uff0cselectable \u5c5e\u6027\u9ed8\u8ba4\u4e3a false\uff0c\u671f\u671b\u6587\u672c\u4e0d\u53ef\u88ab\u9009\u4e2d\u65f6\u4e0d\u7528\u8bbe\u7f6e\u6b64\u5c5e\u6027 --&gt;<\/span><\/code><\/li>\n  \n  \n  <li><code><span> <\/span><span>&lt;rich-text<\/span><span> <\/span><span>nodes<\/span><span>=<\/span><span>\"{{nodes}}\"<\/span><span>&gt;&lt;\/rich-text&gt;<\/span><\/code><\/li>\n  \n  \n  <li><code><span> <\/span><span>&lt;!-- \u57fa\u7840\u5e93 3.150.1 \u53ca\u4ee5\u540e\u7248\u672c\uff0cselectable \u5c5e\u6027\u9ed8\u8ba4\u4e3a true\uff0c\u671f\u671b\u6587\u672c\u4e0d\u53ef\u88ab\u9009\u4e2d\u65f6\u9700\u8bbe\u7f6e\u6b64\u5c5e\u6027\u4e3a false --&gt;<\/span><\/code><\/li>\n  \n  \n  <li><code><span> <\/span><span>&lt;!-- &lt;rich-text selectable=\"false\" nodes=\"{{nodes}}\"&gt;&lt;\/rich-text&gt; --&gt;<\/span><\/code><\/li>\n  \n  \n  <li><code><span> <\/span><span>&lt;\/view&gt;<\/span><\/code><\/li>\n  \n  \n  <li><code><span> <\/span><span>&lt;\/view&gt;<\/span><\/code><\/li>\n  \n  \n  <li><code><span>&lt;\/view&gt;<\/span><\/code><\/li>\n \n \n <\/ol><\/pre>\n<h2><span><\/span>Bug &amp; Tip<\/h2>\n<ul>\n<li>Tip\uff1a\u67e5\u770b\u5c06\u5bcc\u6587\u672c\u5b57\u7b26\u4e32\u8f6c\u6210 JSON \u683c\u5f0f\u7684\u5177\u4f53\u65b9\u6cd5\u3002<\/li>\n<li>Tip\uff1a\u652f\u6301\u9ed8\u8ba4\u4e8b\u4ef6\uff0c\u5305\u62ec\uff1atap\u3001touchstart\u3001touchmove\u3001touchcancel\u3001touchend \u548c longtap \u3002<\/li>\n<li>Tip\uff1arich-text \u7ec4\u4ef6\u5185\u5c4f\u853d\u6240\u6709\u8282\u70b9\u7684\u4e8b\u4ef6\u3002<\/li>\n<li>Tip\uff1a\u5185\u90e8 img \u6807\u7b7e\u4ec5\u652f\u6301\u7f51\u7edc\u56fe\u7247\u3002<\/li>\n<li>Tip\uff1a\u5982\u679c\u5728\u81ea\u5b9a\u4e49\u7ec4\u4ef6\u4e2d\u4f7f\u7528 rich-text \u7ec4\u4ef6\uff0c\u90a3\u4e48\u4ec5\u81ea\u5b9a\u4e49\u7ec4\u4ef6\u7684 swan \u6837\u5f0f\u5bf9 rich-text \u4e2d\u7684 class \u751f\u6548\u3002<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>rich-text \u5bcc\u6587\u672c \u5c5e\u6027\u8bf4\u660e nodes \u53d7\u4fe1\u4efb\u7684 HTML \u8282\u70b9\u4ee5\u53ca\u5c5e\u6027\u8bf4\u660e \u793a\u4f8b \u4ee3\u7801\u793a\u4f8b 1\uff1a\u901a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":186148,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[182398],"tags":[],"class_list":["post-186147","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-mini-program"],"_links":{"self":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts\/186147","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/comments?post=186147"}],"version-history":[{"count":0,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts\/186147\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/media\/186148"}],"wp:attachment":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/media?parent=186147"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/categories?post=186147"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/tags?post=186147"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}