如何将Tiny MICE Editor添加到drupal表单文本区域

发布于 2024-12-21 11:23:47 字数 116 浏览 5 评论 0原文

我已经在管理端创建了一种表单以及文本区域。我需要将 Tiny MICE 编辑器应用到我的表单文本区域。我的 drupal 应用程序中已经有 Tiny MICE。请任何人向我建议,如何将 TinyMICE 应用于文本区域

i have creadted in admin side one form along with text area.I need to apply Tiny MICE Editor to my form text area. I have alreday Tiny MICE in my drupal application.Please any body suggest to me,how to apply TinyMICE to text area

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

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

发布评论

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

评论(3

抚你发端 2024-12-28 11:23:47

转到 http://drupal.org/project/wysiwyg

安装它,还有有关 Tiny 的进一步说明MICE

http://drupal.org/node/371459

干杯,
维沙尔

go to http://drupal.org/project/wysiwyg

install it and there are further instructions for the Tiny MICE

at http://drupal.org/node/371459

Cheers,
Vishal

战皆罪 2024-12-28 11:23:47

首先,您需要下载并安装 WYSIWYG 模块

http://drupal.org/project/wysiwyg

然后下载 TinyMCE 并将其安装到sites/all/libraries/tinymce/

完成此操作后,进入您的配置页面并单击所见即所得配置文件。选择 TinyMCE 作为您想要使用的输入格式并保存。

然后,您可以单击“编辑”来配置 TinyMCE,使其按照您想要的方式和位置工作。

First off you need to download and install the WYSIWYG module

http://drupal.org/project/wysiwyg

Then download TinyMCE and install it to sites/all/libraries/tinymce/

Once you've done this go into your config page and click on WYSIWYG profiles. Select TinyMCE for the input format you want to use it with and save.

Then you can click edit to configure TinyMCE to work how and where you want.

无风消散 2024-12-28 11:23:47

如果您使用 Form API 在 Drupal 6 中构建模块,则应在 module_admin 函数中将文本区域格式设置为 Full HTML:

$form['group']['textarea_input']['textarea_input_content'] = array(
    '#type' => 'textarea',
    '#title' => t('Textarea Title'),
    '#default_value' => t('My default value'),
    '#description' => t('My description for the textarea'),
    '#required' => false,
);

$form['group']['textarea_input']['format'] = filter_form(2);

In case you're building a module in Drupal 6 using Form API, you should set the textarea format to Full HTML in yourmodule_admin function:

$form['group']['textarea_input']['textarea_input_content'] = array(
    '#type' => 'textarea',
    '#title' => t('Textarea Title'),
    '#default_value' => t('My default value'),
    '#description' => t('My description for the textarea'),
    '#required' => false,
);

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