我们可以实现一些在Google文档中选择内容时触发的代码吗? [英] Can we implement some code that fires upon selecting something in google document?

查看:34
本文介绍了我们可以实现一些在Google文档中选择内容时触发的代码吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

要能够扩展google docs,我们需要具有一些事件处理机制.我相信Google文档仅支持少数几个.有没有一种方法可以编写一个在选择文档内容时触发的函数?不是电子表格.

To be able to extend google docs, we need to have some event handling mechanism. I believe there are only a few supported in google docs. Is there a way We can write a function that triggers upon selecting content in a document ? not spreadsheet.

推荐答案

Google启动了将代码嵌入文本文档的功能时,已经发布了一个脚本.

A script has been published when Google launched the ability to embed code in text document.

您应该看一下它,因为它可能适合您的需求:

You should have a look at it as it might suit your needs : cursor inspector

这篇关于我们可以实现一些在Google文档中选择内容时触发的代码吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆