Firefox:是否需要拼写检查? [英] Firefox: If needs spellcheck?

查看:101
本文介绍了Firefox:是否需要拼写检查?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能重复:
JavaScript:我有一个自定义右键菜单,但仍然需要拼写检查!

Possible Duplicate:
Javascript: I have a custom right-click menu but still want the spellcheck!

在Firefox中是否有一个JS属性或命令来查看一个单词是否用红色下划线(即,需要进行拼写检查)?

Is there a JS property or command to see if a word is underlined in red (ie. needs to be spellchecked) in Firefox?

理想地,对于示例代码,这就像...如果我右键单击一个带红色下划线的单词,它将发出警报:

Ideally, for sample code it would be like... if I right click on a word the is underlined in red it will alert:

//watches for right click action
if(firefox.isUnderlinedForSpellcheck == true) {
  //display firefox spellcheck menu
} else {
  //perform my action
}

有人有什么想法吗?

推荐答案

我不认为可以,因为它特定于浏览器.您可以使用第二个拼写检查器,然后很可能它们都会发现相同的错误.

I don't think that you can since it's browser specific. You can use a second spellchecker and then it's most likely they will both find the same errors.

这篇关于Firefox:是否需要拼写检查?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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