How to inject text into Google Docs from a Chrome Extension?

312 views
Skip to first unread message

Timon Safaie

unread,
Oct 1, 2014, 5:12:30 PM10/1/14
to chromium-...@chromium.org
Hi there!

I'm building my first Chrome Extension for the web and it will be actively working on Google Docs.  I am having trouble figuring out the following:

1.  How can I inject text into a Google Document from my Chrome Ext.?
2.  Where in the DOM can I attach js functionality that binds to divs (particularly contenteditable divs) that feature the cursor and text?
3.  I want to ensure that the js functionality works for every new page that is added to a document.  How do I ensure that the js functionality is applied to each new dynamically created page?

Any and all help and advice would be appreciated.

Thanks,
Timon

iza

unread,
Oct 1, 2014, 5:25:41 PM10/1/14
to chromium-...@chromium.org
Depending on what you're trying to do, Apps Script Add-ons may be more appropriate.

Timon Safaie

unread,
Oct 1, 2014, 7:01:42 PM10/1/14
to iza, chromium-...@chromium.org
Thanks Iza!  I'm also looking into that as well.  I was wondering if it was indeed possible with a Chrome Extension as well.

On Wed, Oct 1, 2014 at 2:25 PM, iza <iza.bil...@gmail.com> wrote:
Depending on what you're trying to do, Apps Script Add-ons may be more appropriate.

--
You received this message because you are subscribed to a topic in the Google Groups "Chromium-extensions" group.
To unsubscribe from this topic, visit https://groups.google.com/a/chromium.org/d/topic/chromium-extensions/mzIIdMqwkwI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to chromium-extens...@chromium.org.
To post to this group, send email to chromium-...@chromium.org.
Visit this group at http://groups.google.com/a/chromium.org/group/chromium-extensions/.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/d8020b67-b82e-4ae4-b39f-246efab1a4e6%40chromium.org.



--
Timon Safaie                                                    
(714) 362-7626          
timon....@gmail.com                 
                                                                      
                                                      
                                                   
                                                              

Rahul Bansal

unread,
Sep 13, 2024, 2:01:51 PMSep 13
to Chromium Extensions, Timon Safaie, chromium-...@chromium.org, iza

did you find a solution for this? 
Reply all
Reply to author
Forward
0 new messages