feat(plugins/community/screenshot): add plugin_screenshot_mode (#1324)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user