English 中文(简体)
Setting up a WYSIWYG editor for Drupal site users [closed]
原标题:
  • 时间:2009-11-16 21:27:42
  •  标签:
  • drupal

Looking through the Drupal contrib modules, and after a few Google searches, it becomes evident that there are any number of choices and combos available to set up a WYSIWYG editor in Drupal. I m hoping that I can do this as simply and quickly and painlessly as possible, and not have to keep trying out different combos till one actually works right.

Here s what I need:

  1. A basic WYSIWYG editor for the "filtered" input type only.
  2. It doesn t need to have image-insert necessarily, though that might be nice later on...
  3. Simple to set up and maintain.
  4. Needs to work for Content-Profiles, Blog, Forum-post, and a few custom content types.
最佳回答

Check out the wysiwyg (http://drupal.org/project/wysiwyg) module.. it lets you install and try out a range of different editors, and you can associate different editors to different input types.

Personally, I ve found fckeditor a good choice for allowing editors to author content - but I think the final choice is down to personal preference. By using the wysiwyg module you can demo a range.

问题回答

Try the WYSIWYG module. Here is an excerpt from its project page:

Allows the use of client-side editors to edit content. It simplifies the installation and integration of the editor of your choice. This module replaces all other editor integration modules. No other Drupal module is required.

The Wysiwyg module supports any kind of client-side editor including HTML editors (a.k.a. WYSIWYG), "pseudo-editors" (buttons to insert markup into a textarea), or even Flash-based applications. The editor library must be downloaded separately. Various editors are supported.

Thanks for the http://drupal.org/project/wysiwyg recommendation. But this thing is just about what I expected. A million configuration choices, and not one of them working right yet. I ve already spent 2 hours on it, and have tried: FCKeditor YUI markItUp NicEdit

Setting up YUI from the wysiwyg config page didn t work. When I downloaded the 2 YUI modules and installed, they work, but not with wysiwyg module, and they broke my content profiles when I uninstalled them. So far the only one that actually seems to work is the ugly FCKeditor.

So yes, it s just the time-eater I was expecting and hoping against.

EDIT: Looks like wysiwyg/tinyMCE combo is the ticket. Works and looks okay. Thanks for all the info!

To sit along side the wysiwyg module, I also make use of a module called better formats

This modules allows you to further refine which input filter to use by default for each node type. I thought that alone was spot on but, you can also set up per node, which users roles get allocated which filter type.

This means on your blog pages, trusted users can have full html access (which will bring up the wysisywg - on my config) whilst other users just get a bog standard text box.

Once installed, all the options for it can be found in each node type s edit screen.

I make great use of it on my mini community portal for a little town in the UK, Tunstall

I had tested several Editors WYSIWIG before and now I can recommend you the FCKeditor with no problem.

Here a how to install video

Here a good user guide

I use the Wysiwyg module - be sure to follow the directions closely. FCKEditor and TinyMCE work with it nicely, some of the others one are not working well.

UPDATE - April, 2010 -

Use the CKEditor module, very easy - still alot of choices though. Here is an excerpt from its project page:

... will allow Drupal to replace textarea fields with the CKEditor - a visual HTML editor, usually called a WYSIWYG editor. This HTML text editor brings many of the powerful WYSIWYG editing functions of known desktop editors like Word to the web. It s very fast and doesn t require any kind of installation on the client computer.





相关问题
Drupal Multi-language: Simple strings not translated

I m adding additional languages to a Drupal site that I m building. Getting the translation of content working is fairly easy using the Internationalisation module. Yet, simple things such as date ...

Setting up a WYSIWYG editor for Drupal site users [closed]

Looking through the Drupal contrib modules, and after a few Google searches, it becomes evident that there are any number of choices and combos available to set up a WYSIWYG editor in Drupal. I m ...

Change size of user/password login box

I don t know how to change the size of the login username/password boxes on the drupal site that I m trying to build. I m stumbling through the theming, and don t know where to find the file that ...

How does Drupal provide an edit/review/publish model?

How does Drupal support a means to update and review a website before it is published? Does it only allow you to preview a page at a time before you publish it or is there a way to create a site ...

Term for rotating header

I m looking for terminology that describes this behavior: The header of a web-page contains a different image every time you visit it. Update: It is not an advertisement, but images related to the ...

Has anyone checked out Drupal 7? [closed]

Has anyone checked out a copy of Drupal 7 yet? What do people think? I m pretty excited about the PDO and all of the designers I work with a very excited about the new admin interface/structure. Do ...

热门标签