diff --git a/web/plugins/com.msgbyte.webview/src/index.tsx b/web/plugins/com.msgbyte.webview/src/index.tsx index 7fbef36e..6ee645d8 100644 --- a/web/plugins/com.msgbyte.webview/src/index.tsx +++ b/web/plugins/com.msgbyte.webview/src/index.tsx @@ -16,7 +16,12 @@ regGroupPanel({ label: Translate.customwebpanel, provider: PLUGIN_NAME, extraFormMeta: [ - { type: 'textarea', name: 'html', label: Translate.htmlcode }, + { + type: 'textarea', + name: 'html', + label: Translate.htmlcode, + placeholder: Translate.customwebpanelPlaceholder, + }, ], render: Loadable(() => import('./group/GroupCustomWebPanelRender'), { componentName: 'com.msgbyte.webview:GroupCustomWebPanelRender', diff --git a/web/plugins/com.msgbyte.webview/src/translate.ts b/web/plugins/com.msgbyte.webview/src/translate.ts index 582eae17..57c9fc81 100644 --- a/web/plugins/com.msgbyte.webview/src/translate.ts +++ b/web/plugins/com.msgbyte.webview/src/translate.ts @@ -6,6 +6,10 @@ export const Translate = { 'zh-CN': '自定义网页面板', 'en-US': 'Custom Webview Panel', }), + customwebpanelPlaceholder: localTrans({ + 'zh-CN': '建议在第三方页面编辑完毕后粘贴到此处', + 'en-US': 'Recommended to paste it here after editing the third-party page', + }), notfound: localTrans({ 'zh-CN': '加载失败, 面板信息不存在', 'en-US': 'Loading failed, panel info does not exist',