mindre end 1 minutters læsning

I needed to embed some Google Drive Presentations into some of my articles. However, I did not want to give the users full HTML access. Therefore, I created an input filter. I added the code to a sandbox on drupal.org.

This module provides an input filter to add a document from Gogle Drive anywhere input filters are accepted. You can choose to embed the document or link to the published document on Google Drive.

Read more about Google Drive on docs.google.com.

To add a document from Google Drive to a textarea, simply add the following code to your textarea

[gdoc id=xxxx type=yyyy mode=zzzz]

where id=xxxx is the document_id from Google Drive, type=yyyy is the type of document and mode=zzzz is the optional display mode.

Do you know of other possible solutions - or do you have any improvements to my implementation?

Kommentarer

You can be the first to add a comment below.

Leave a Comment

Din e-mail bliver ikke offentliggjort. Obligatoriske felter er markeret Required fields are marked *.

Indlæser...
Your email address will not be published.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.