Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gnestor/google-doc
A web component to import Google Doc content into a webpage
https://github.com/gnestor/google-doc
google-docs polymer web-components
Last synced: 4 months ago
JSON representation
A web component to import Google Doc content into a webpage
- Host: GitHub
- URL: https://github.com/gnestor/google-doc
- Owner: gnestor
- License: mit
- Created: 2014-11-03T19:41:38.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-10-09T20:17:04.000Z (over 9 years ago)
- Last Synced: 2024-09-11T11:49:41.917Z (5 months ago)
- Topics: google-docs, polymer, web-components
- Language: HTML
- Homepage:
- Size: 1.29 MB
- Stars: 10
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# <google-doc>
A web component to import Google Doc content into a webpage.
See the [component page](http://gnestor.github.io/google-doc) for more information.
## Usage
``## Properties
``
#### key
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.*
#### selector
A [selector or selectors](https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Getting_Started/Selectors) (uses [querySelectorAll](https://developer.mozilla.org/en-US/docs/Web/API/Element/querySelectorAll)) to select only specific elements from your document (e.g. images).#### styles
Include to preserve styles from document (defaults to false).## Demo
[http://gnestor.github.io/google-doc/components/google-doc/demo.html](http://gnestor.github.io/google-doc/components/google-doc/demo.html)## Install
This web component requires [Polymer](http://www.polymer-project.org).
1. Install google-doc component `bower install google-doc`
2. Import Polymer script `` then google-doc component ``
3. Use `` element