Skip to content

Commit

Permalink
add auto-close
Browse files Browse the repository at this point in the history
  • Loading branch information
rodber committed Nov 13, 2024
1 parent 09865a5 commit 881c237
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions integrations/pup.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,24 @@ Named color palette of the button or a comma-separated list of colors (HEX, RGB,

### `auto-insert`

Embed codes to auto insert in the target editable content. Codes using `full`, `medium` or `thumbnail` will link to the image viewer page.
Embed codes to auto insert in the target editable content. Codes using `full`, `medium` or `thumbnail` will link to the image viewer page.

Use `0` to disable auto insert.
Use `0` to disable auto insert.

| Type | Values | Default |
| ------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------- |
| String | `0` `viewer-links` `direct-links` `html-embed` `html-embed-full` `html-embed-medium` `html-embed-thumbnail` `bbcode-embed` `bbcode-embed-full` `bbcode-embed-medium` `bbcode-embed-thumbnail` `markdown-embed` `markdown-embed-full` `markdown-embed-medium` `markdown-embed-thumbnail` | `bbcode-embed-medium` |

### `auto-close`

A boolean indicating if the popup should auto close after the image is inserted.

Use `0` to disable auto-close.

| Type | Values | Default |
| ------- | ------- | ------- |
| Integer | `0` `1` | `1` |

### `sibling`

Sibling CSS selector to use it as a reference to the DOM node where the button should be inserted. By default, the button will be placed relative to the editable content. When the sibling is defined, the plugin will search for that element and it will use it as the reference for button insertion.
Expand Down

0 comments on commit 881c237

Please sign in to comment.