Display a Google Drive image
Bug #1349091 reported by
Kristina Hoeppner
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Confirmed
|
Wishlist
|
Unassigned |
Bug Description
An image uploaded to Google Drive cannot be displayed directly on a page because the way Google's URLs are constructed. If you wanted to display an image in a text box or journal post or forum post etc., you'd need to change the Google URL.
See http://
This could probably be achieved by writing a filter in Mahara so that users could just take the Google image URL as it is and paste that and Mahara transforms it into the one required to actually display it.
The same should be checked if it could be made to work for videos.
To post a comment you must log in.
Hmm, the problem with this is there will need to be multiple filters in different places.
If using tinymce the add image form will need to change the url on the fly so that it displays correctly in tinymce.
If using the tinymce edit source function then it will need to change the file on fly when switching back.
If just adding the url to a non tinymce field then it needs to updated on submit to form submission (and possibly alert if problem).
So it is a good idea but will need some work to get it going.
Cheers
Robert