Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何为Elgg框架编写 WMD 插件?
你应该首先学习和理解 Elgg 中的视图。它们类似于Drupal中的块,但具有更广泛的上下文,例如包含文件。Elgg 插件现在具有更好的结构,因此您最好继续使用最新版本。
对于客户端 JavaScript 部分,检查TinyMCE相关视图,您可以在其中看到一个示例,显示如何替换文本编辑器窗口。然后在插件的主文件中包含您的 PHP 函数。任何初始化函数都应该在init()插件的函数中调用。
init()