Skip to content

Commit

Permalink
coverPrefs demo #223
Browse files Browse the repository at this point in the history
  • Loading branch information
forresto committed Jul 29, 2016
1 parent 2ff7357 commit 73de437
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
## dev

* NEW -- optional `props.coverPrefs: {filter, crop, overlay}` for site-wide cover preferences. Boolean, default true. (#223)

## 0.18.1 - 2016-07-15

* Perf boost for when setContent is hit with old news
Expand Down
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,13 @@ available to use like this:
secret: 'secret'
},
// OPTIONAL -- where iframe widgets live relative to app (or absolute)
widgetPath: './node_modules/'
widgetPath: './node_modules/',
// OPTIONAL -- site-wide settings to allow cover filter, crop, overlay; default true
coverPrefs: {
filter: false,
crop: true,
overlay: true
}
})

// Returns array of inserted placeholder ids
Expand Down
1 change: 1 addition & 0 deletions demo/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ function setup (options) {
, onDropFileOnBlock: onDropFileOnBlockDemo
, imgfloConfig: null
, widgetPath: './node_modules/'
, coverPrefs: { filter: false }
, ref:
function (mounted) {
ed = mounted
Expand Down

0 comments on commit 73de437

Please sign in to comment.