Drupal 6:在自定义模块表单上实现所见即所得 [英] Drupal 6: Implement Wysiwyg on Custom Module Form

查看:20
本文介绍了Drupal 6:在自定义模块表单上实现所见即所得的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用 Form API 编写的自定义表单.我们在将使用该模块的站点上实现了 WYSIWYG 模块和 TinyMCE.如何在我的自定义表单文本区域上实现 WYSIWYG api?

I have a custom form that I have written with the Form API. We have the WYSIWYG module and TinyMCE implemented on the site that this module will be used on. How do I implement the WYSIWYG api on my custom form text areas?

谢谢!

推荐答案

这应该有助于将 WYSIWYG 与您的自定义模块表单集成:http://drupal.org/node/358316

This should help integrate WYSIWYG with your custom module forms: http://drupal.org/node/358316

基本上,您需要将 format 键添加到每个表单字段并使用 filter_form()

Basically, you need to add the format key to each of your form fields and use filter_form()

这篇关于Drupal 6:在自定义模块表单上实现所见即所得的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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