Draggable / formeo

Drag & Drop Form Builder
http://draggable.github.io/formeo/
MIT License
533 stars 197 forks source link

How to add file search to an embed type element #272

Open Gfellha opened 4 years ago

Gfellha commented 4 years ago

This isn't so much of an issue, but more so how to do something. I'm currently creating an embed type element, and what I want is to add an option to search, and grab the file, using that file path for the src attribute to display a PDF on the page. I was wondering how I would go about doing this. My Embed code is this(or atleast the portion outside of elements section): `tag: 'embed', config: { label: 'Embed', disabledAttrs: ['type'] }, meta: { group: 'common', id: 'embed', icon: 'PDF', }, attrs: { type: 'application/pdf', src: '' //this is where I want to put the filepath via using a filebrowser to search for it.

        },`