Skip to content

Commit

Permalink
fix(react-tinacms-inline): inline image field allows media to be dele…
Browse files Browse the repository at this point in the history
…ted from media manager
  • Loading branch information
ncphillips committed Oct 7, 2020
1 parent 7dfbb5e commit 352284f
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -73,6 +73,7 @@ export function EditableImage({
onClick={() => {
const directory = uploadDir ? uploadDir(form) : ''
cms.media.open({
allowDelete: true,
directory,
onSelect(media: any) {
if (media.filename == input.value) {
Expand Down

0 comments on commit 352284f

Please sign in to comment.