> For the complete documentation index, see [llms.txt](https://help.impact.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.impact.com/brand/zh/what-would-you-like-to-learn-about/advocate-program/manage-advocate-participant-experiences/widget-experiences/widget-editor-overview.md).

# 组件编辑器概览

您的 Advocate 计划提供了一个拖放式编辑器，可让您自定义展示给客户倡导者的小组件外观和内容。

## 小组件编辑器界面

自助式小组件编辑器包含四个主要区域：

<div data-with-frame="true"><figure><img src="https://4048883401-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2F5lBstm39QZFddtyAHWzK%2FCanvas%20(2).png?alt=media&#x26;token=b8ae9b78-8cea-425e-8cd8-e35a0b97535a" alt="" width="563"><figcaption></figcaption></figure></div>

{% tabs %}
{% tab title="顶部菜单栏" %}
页面顶部的菜单栏可用于撤销操作、查看 HTML 代码，以及预览完成后的小组件。使用桌面、平板电脑或移动设备图标，查看小组件在不同屏幕尺寸设备上的显示效果。
{% endtab %}

{% tab title="画布" %}
画布显示组成小组件的所有组件。您可以选择单个组件进行编辑，也可以添加新组件，并快速查看它们向参与者呈现的效果。将组件拖到画布上的新位置即可调整顺序。
{% endtab %}

{% tab title="左侧滑出面板" %}
左侧滑出设置菜单是画布左侧的可折叠面板。在这里，您可以选择 **图层** 以查看小组件中所有组件的详细视图，或选择 **模板** 以使用我们预先制作的小组件。点击 **设置** 按钮可进入软件包安装子菜单。

如需进一步调整品牌样式，请选择“小组件样式”选项。有关可用样式选项的更多信息，请参阅《使用内容编辑器自定义小组件和微型网站》。
{% endtab %}

{% tab title="组件" %}
组件菜单是画布右侧的面板。使用 **添加** 选项卡将新组件插入画布，并使用 **编辑** 选项卡调整现有组件。
{% endtab %}
{% endtabs %}

## 故障排除

小组件有两层验证机制，用于检查组件放置和组件属性中的错误。常见错误原因包括：

* 缺少必填字段
* 选择了无效颜色
* 输入了无效 URL

如果存在尚未解决的错误，画布右上方会显示警告消息，告知发现的错误数量。

<div data-with-frame="true"><figure><img src="https://4048883401-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2Fgit-blob-511216419b1ffaa7cf19cda9c94f06eedbbdaabc%2Fb0790ca38faffb4d36e8ed5d551995d0231df77a9958ffb98e857740cd207626.jpg?alt=media" alt="" width="333"><figcaption></figcaption></figure></div>

进一步了解如何自定义计划小组件。

## **查看未解决错误的详细信息**

1. 选择 **详细信息** 可查看简要说明，了解警告消息所指出的问题。
2. 通过以下任一方式前往出错的组件：
   * 选择 **打开图层**
   * 选择错误说明消息
3. 找到出错的组件。该组件会标有红色感叹号图标。
4. 选择该组件，在 **编辑** 栏中打开其属性。
5. 进行必要的更改。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.impact.com/brand/zh/what-would-you-like-to-learn-about/advocate-program/manage-advocate-participant-experiences/widget-experiences/widget-editor-overview.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
