Skip to content

Commit

Permalink
Updated doc [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshyPHP committed Sep 12, 2019
1 parent 3e0df20 commit ab86c9c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/JavaScript/Live_preview_attributes.md
Expand Up @@ -8,8 +8,10 @@ The content of a `data-s9e-livepreview-onrender` attribute is executed after the

### data-s9e-livepreview-ignore-attrs

Contains a space-separated list of attributes whose content should not be replaced or removed in the live preview. Used in some MediaEmbed sites whose height is set dynamically.
Contains a space-separated list of attributes whose content should not be replaced or removed in the live preview. Can be used to preserve the state of an interactive element such as `detail` during preview.

```html
<span style="color:{@color}" data-s9e-livepreview-ignore-attrs="style">This color will not change.</span>
<details open="" data-s9e-livepreview-ignore-attrs="open">
This will not automatically reopen if closed during preview.
</details>
```

0 comments on commit ab86c9c

Please sign in to comment.