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.
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.