feat(plugins/community/screenshot): add plugin_screenshot_mode (#1324)

This commit is contained in:
Simon Lecoq
2022-12-19 12:48:19 -05:00
committed by GitHub
parent 3b30d7826f
commit 490a9691dc
4 changed files with 48 additions and 12 deletions

View File

@@ -42,6 +42,19 @@ inputs:
type: string
default: body
plugin_screenshot_mode:
description: |
Output mode
- `image`: screenshot of selected element
- `text`: keep [`innerText`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/innerText) of selected element
- *⚠️ Any CSS style applied to text such as font size, weight or color will be removed*
type: string
default: image
values:
- image
- text
plugin_screenshot_viewport:
description: |
Viewport options
@@ -63,4 +76,4 @@ inputs:
description: |
Background
type: boolean
default: yes
default: yes