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!
Comments
Comment #1
cubeinspire commentedI thnk this can be done with a ckeditor plugin !
Why don't you start a project ? I can help on that also.
Comment #2
cubeinspire commentedThis is an example of html code to create the embedded document.
So there is only the URL to paste on the html... looks quite straight forward.
<iframe src="http://docs.google.com/viewer?url=http://www.example.com/Unemployment.ppt&embedded=true" width="600" height="780" style="border: none;"></iframe>I'm starting a CKeditor plugin to add this button.
If this works I will merge this project with mine.
Comment #3
cubeinspire commentedSome of this could be interesting
http://drupal.org/project/ckeditor_swf
http://drupal.org/project/ckeditor_link
And a very simple one:
http://mito-team.com/article/2012/collapse-button-for-ckeditor-for-drupal
Comment #4
cubeinspire commentedWell this is done but for Drupal 7:
http://drupal.org/project/ckeditor-googledoc
On next release I would like to add the FCKeditor, so files can be directly clicked without having to type the URL.
Comment #5
cubeinspire commentedChanging status: http://drupal.org/project/ckeditor-googledoc
Comment #6
chipway commentedHi,
This is not a duplicate, as http://drupal.org/project/ckeditor-googledoc is not compatible with wysiwyg module as stated in https://drupal.org/node/1867702
Comment #7
rocketeerbkw commentedMaking ckeditor-googledoc compatible with wysiwyg would be up to them, and since there is already an issue in their queue (#1867702: Not compatible with Drupal Wysiwyg), this is actually a duplicate.