Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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