A web component to import Google Doc content into a webpage.
See the component page for more information.
<google-doc key="1dOEs7hBddMhZsuOGJ7J8ku5FhYdD2Ox_iZo-v23j_Ho"></google-doc>
<google-doc key="1dOEs7hBddMhZsuOGJ7J8ku5FhYdD2Ox_iZo-v23j_Ho" selector="img" styles></google-doc>
The key of the Google Doc that can be found in the URL after "https://docs.google.com/document/d/" and before "/edit."
Note that the Google Doc must be published. To publish a document, go to File > Publish to the web... > Publish.
A selector or selectors (uses querySelectorAll) to select only specific elements from your document (e.g. images).
Include to preserve styles from document (defaults to false).
http://gnestor.github.io/google-doc/components/google-doc/demo.html
This web component requires Polymer.
- Install google-doc component
bower install google-doc
- Import Polymer script
<script src="/bower_components/webcomponentsjs/webcomponents-lite.min.js"></script>
then google-doc component<link rel="import" href="bower_components/google-doc/google-doc.html" />
- Use
<google-doc key="<GOOGLE_DOC_KEY>"></google-doc>
element