Skip to content

Display multiple file formats as embedded media (ePub, ODF, PDF) #6536

@designgurudotorg

Description

@designgurudotorg

It seems to me that there's massive interest in this functionality and implementation shouldn't be too difficult - basically, it would be great if any ODF, PDF or ePUB document is uploaded it automatically becomes viewable within the chat area using one of the following Open Source scripts:

https://github.com/futurepress/epub.js/
http://viewerjs.org/

I don't have great JS chops so I can't unfortunately whip up a pull request but perhaps someone reading this could? Or alternatively maybe there's a quick way to automatically rewrite the URLs to document uploads and render them with these scripts just in Administration > Layout > Custom Scripts?

q./

ref: #2741 & #255

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions