| Project: | Wysiwyg |
| Version: | 6.x-2.4 |
| Component: | Editor - CKEditor |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
I'm not really sure where to start, so here we go:
We use Open Atrium for our client communication and project management. Using the Google Docs Viewer, we integrate a bunch of Google Docs for showing proofs to clients, collaborating on drafts, etc. This is done through an Iframe. Because i'm a geek, i don't mind going into the source and authoring the proper, somewhat complex code. But this won't work for ANYONE else. So, something needs to be done...
My idea is this:
I'd like to duplicate much of the functionality of CKEditor's Iframe button to create a Google Doc Viewer Iframe button. So essentially how i envision this is that users paste in the raw URL of the Google doc, like this one:
https://docs.google.com/open?id=0BzrBIRTmlqOwNTFlYjI3MWItMTcwZi00MjlmLWI4MDYtMTliZTAzMTBjY2Mw
and then the editor would spit out this code:
<iframe src="https://docs.google.com/viewer?a=v&pid=explorer&chrome=false&embedded=true&srcid=0BzrBIRTmlqOwNTFlYjI3MWItMTcwZi00MjlmLWI4MDYtMTliZTAzMTBjY2Mw&hl=en_US"></iframe>
So the most important variable in this equation is the document ID which, in the above example, is this:
0BzrBIRTmlqOwNTFlYjI3MWItMTcwZi00MjlmLWI4MDYtMTliZTAzMTBjY2Mw&hl
This sort of functionality would prevent me from having to say something to this effect: "No, no guys, it's cool, all you have to do is go into the source, paste in the proper Google Docs Viewer Iframe URL prefix, then add the respective SRCID, then just be sure to add an ampersand and specify a language in the URL suffix. It's really not that hard! ... What do you mean you don't even know what an Iframe is?!"
So this is a feature request in truest sense. Maybe this is not as complex as i imagine. Maybe it's near impossible. Any thoughts would be much appreciated!