From 65a232e511259305ced30c73f7a4b7dfc4d4fb5d Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 26 Feb 2014 22:25:10 +0100 Subject: [PATCH] added menu item on document open feature --- converttomarkdown.gapps | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/converttomarkdown.gapps b/converttomarkdown.gapps index b6344de..95bba3b 100644 --- a/converttomarkdown.gapps +++ b/converttomarkdown.gapps @@ -10,6 +10,12 @@ Usage: - Converted doc will be mailed to you. Subject will be "[MARKDOWN_MAKER]...". */ +function onOpen() { + DocumentApp.getUi().createMenu('Markdown') + .addItem('Email export', 'ConvertToMarkdown') + .addToUi(); +}; + function ConvertToMarkdown() { var numChildren = DocumentApp.getActiveDocument().getActiveSection().getNumChildren(); var text = "";