Discourse工具提示

:discourse2: Summary Discourse Tooltips allows for the previewing of the contents of topics on hover.
:hammer_and_wrench: Repository Link https://github.com/discourse/discourse-tooltips
:open_book: Install Guide How to install plugins in Discourse

Features

In the future the plugin will show more tooltips but this seemed like a good start :slight_smile:

Last edited by @JammyDodger 2024-06-03T22:01:04Z

Check documentPerform check on document:
61 个赞

错误是正确的。这不是 Discourse 主题。 :slight_smile:

您需要在 app.yml 中安装插件。 :+1: OP 中有一个说明链接。

4 个赞

谢谢,我没注意到。这功能更像是一个主题组件,而不是一个插件 :roll_eyes:

1 个赞

老实说,这是一个相当老的插件,现在有可能可以将其转换为主题组件。我知道有些其他的插件已经这样做了。恐怕我不知道这个插件是否也可能做到。:person_shrugging:

2 个赞

它确实会增加主题内容到加载中,因此无法在主题组件中完成。没有该插件就无法显示它显示的数据。

5 个赞

这是否也会为帖子文本中引用的主题创建工具提示?另外,使用 Discourse 的 API 并按需加载主题内容(从而无需将其作为插件,而只是基于 JavaScript 的增强功能)是否可以解决此问题?

1 个赞

我不这么认为。

如果你不介意从浏览器进行额外的 API 调用(如果你在单个页面上执行多次,这会是个问题),那应该可行。

1 个赞

Seems not work well with latest discourse.