Open joshua-graham-adelphi opened 5 years ago
By display the PDF inline, do you mean the content of the pdf? Would that require an active PDF plugin on the browser? If a user had their browser configured to not display a pdf within the browser, would that break the functionality you are wanting to implement?
You may also want to consider a way of implementing Readspeakers Docreader into it for those agencies that use it.
Display inline with ckeditor.
yes they are aware, the functionality will not work if their web browser is not configured to say the pdf (they have download link too). In saying this, both firefox and chrome have built-in PDF readers OOTB :-) and they on;t be using IE if their organisation mandated it, which means they would likely mandate to have a pdf plug in for it.
They agency is retrospective fitting govcms 8 on to their existing druapl 8 site, so we know it works already as well.
cool. I tend to disable the viewing of PDFs in browser due to past bad experiences. There's also mobile browsers to consider, so as long as there's some way of getting to the pdf if the inline doesn't work it's good.
I'm not yes/no to this. Could be a great optional whitelisted module.
But in addition to your OP solution (which is impressive), it's possible to do iframes in ckeditor, it just requires adding the appropriate tags to the filter, and you have to edit the source.
Alternatively you could create a paragraph specifically for this, collect the inputs, and render the template output as an iframe.
Some agencies would like to show PDF in-line in the html.
https://www.drupal.org/project/ckeditor_iframe
For now I making testing a hack solution...