您位於此處:
手動編輯內容的 HTML 需求
代理內容程式碼編輯器支援標準和工作區特定 HTML 標記。檢閱必要的資料屬性,以便在視覺編輯器中保持手動新增或編輯的 HTML 元素可供選取和編輯。
代理內容程式碼編輯器支援標準和工作區特定 HTML 標記。檢閱必要的資料屬性,以便在視覺編輯器中保持手動新增或編輯的 HTML 元素可供選取和編輯。
| 提供版本:具備 Marketing Cloud Next Growth 或 Advanced Edition 的 Salesforce Enterprise 和 Unlimited Edition |
若要讓手動新增或編輯的 HTML 元素保持可在視覺編輯器中選取和編輯,請在元素上包含這些自訂資料屬性。
| 屬性 | 描述 |
|---|---|
data-contentblock-id="<unique-id>" |
內容區塊的唯一識別碼。針對您新增的每個元素使用不同的值,且不要重複使用內容中其他位置已使用的識別碼。 |
data-contentblock-name="<block-type>" |
內容區塊的類型,例如 paragraph。 |
data-contentblock-editable="true" |
在視覺編輯器中將元素標記為可編輯。 |
<p> 標記),則無法在視覺編輯器中選取或編輯內容。此範例顯示具有必要資料屬性的手動新增段落。
<p data-contentblock-id="paragraph_kgvwowpgm" data-contentblock-name="paragraph"
data-contentblock-editable="true">Your text here</p>如需手動編輯內容的一般步驟,請參閱 手動編輯內容。

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.