如何为 Elgg 编写 WMD 插件?

发布于 2024-10-02 09:08:06 字数 106 浏览 0 评论 0原文

如何为 Elgg 框架编写 WMD 插件?

How do I code a WMD plug-in for the Elgg framework?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

骄兵必败 2024-10-09 09:08:06

你应该首先学习并理解Elgg中的观点。它们就像 Drupal 中的块,但具有更广泛的上下文,例如包含文件。 Elgg 插件现在有更好的结构,所以你最好继续使用最新版本。

对于客户端 JavaScript 部分,请检查 TinyMCE 相关视图,您可以在其中看到一个示例如何替换文本编辑器窗口。然后将您的 PHP 函数包含在插件的主文件中。所有初始化函数都应该在插件的 init() 函数中调用。

You should first study and understand views in Elgg. They are like blocks in Drupal, but have a wider context, like an include file. Elgg plug-ins now have a better structure, so you better go on with the newest version.

For the client-side JavaScript part, examine the TinyMCE related views, there you can see an example showing how to replace the text editor window. Then include your PHP functions in the plug-in's main file. Any initialization functions should be called in the init() function of your plug-in.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文