Skip to content

Commit

Permalink
Clarifying data-fred-attrs
Browse files Browse the repository at this point in the history
  • Loading branch information
matdave committed Dec 13, 2018
1 parent cf047a3 commit 329ddb8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ _packages/*.*
# IDE files #
#############
.idea
.vscode
.settings
nbproject
.project
Expand All @@ -31,4 +32,4 @@ npm-debug.log
.sass-cache

core/components/fred/model/vendor
site
site
4 changes: 2 additions & 2 deletions docs/themer/elements/attributes.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ The value of this attribute has to be unique across in a single Element, but you
```

## data-fred-attrs
Defines other HTML attributes (comma separated) to save with the content of the HTML Element.
Defines other HTML attributes (comma separated) to save with the content of the HTML element where supported by the editor. E.g. Add alt and title attributes to the ImageEditor.

### Example
```html
<img src="http://via.placeholder.com/450x150" alt="Default Alt" data-fred-name="header-image" data-fred-attrs="alt">
<img src="http://via.placeholder.com/450x150" alt="Default Alt" data-fred-name="header-image" data-fred-attrs="alt,title">
```

## data-fred-render
Expand Down

0 comments on commit 329ddb8

Please sign in to comment.