From 881c237c8eb372e24e871275c9e4c9db19d20d06 Mon Sep 17 00:00:00 2001 From: Rodolfo Berrios <20590102+rodber@users.noreply.github.com> Date: Wed, 13 Nov 2024 20:13:54 -0300 Subject: [PATCH] add auto-close --- integrations/pup.md | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/integrations/pup.md b/integrations/pup.md index 5f5fd34..33206c7 100644 --- a/integrations/pup.md +++ b/integrations/pup.md @@ -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.