Amazon products on Content Management Systems and PHP-MySQL

Tuesday, January 22, 2008

Installing tinymce WYSIWYG editor in drupal

Originally posted in: Installing tinymce WYSIWYG editor in drupal Jan 22 '08 12:37 AM

Drupal TinyMCE vers. tinymce-4.7.x-1.x-dev.tar.gz

The following are taken from the default drupal tinymce module INSTALL.txt that *I think* needs detailing for newbies and first-timers (I have omitted instructions on the optional javascript tinymce compressor and AJAX spellchecker):
---------------------------------------------------------------
NOTE: During this installation process you'll be asked to also
install the official TinyMCE package from
tinymce.moxiecode.com.

1. Place the entire tinymce directory into your Drupal modules/
directory.

2. Download TinyMCE 2.0 from
http://tinymce.moxiecode.com/
Remember to uncompress the file and make sure the folder is named
'tinymce'.

3. Place the entire 'tinymce' engine folder inside your modules/tinymce
directory. So the TinyMCE engine will live in modules/tinymce/tinymce

4. Enable this module by navigating to:
administer > modules
*note - all database tables will be automatically created during this step

5. Setup role based tinymce profiles via
administer > settings > tinymce

Personal notes:

I think it is necessary to clear a few things here in the instructions particularly for those who are freshly starting with drupal and drupal modules... I have encountered problems in installation and reinstallation of the tinymce module, not because of the engine itself, but because of the instructions found therein. Of course, don't blame the install.txt if newbies and dummies (such as I) fail to read a few more notes and resources, or fail to experiment with a few things and tricks...

Here's a few things to those having a hard time installing the tinymce module. This is not a troubleshooting issue, since there is nothing wrong with this important and essential drupal module:

1. First things off, you need to know there are two tinymce's you have to download:

- tinymce module from the engine developer http://tinymce.moxiecode.com/... links below may have updated versions as of this writing:

Tar GZip compressed file: tinymce_2_1_3.tgz
Zip compressed file: tinymce_2_1_3.zip

- tinymce (development) module from drupal itself, http://drupal.org/project/tinymce:

5.x-1.x-dev2007-Dec-1736.08 KB
4.7.x-1.x-dev2007-Mar-3134.9 KB

Note it is critical to use the corresponding modules with each version of drupal!

There! It's clear now you need the two downloads of tinymce, from drupal and moxicode...

2. Install the tinymce (drupal module)...
The files contained in the module should be extracted into site/modules/tinymce/tinymce... yes there should be two (folders of tinymce at this point, one a subfolder of the other)

3. Install the tinymce (moxicode engine)...
Extract the files of this module inside site/modules/tinymce/tinymce/tinymce...
and yes! there should be three folders of tinymce at this point... 2 tinymce sublfoders of 1 tinymce folder... if this is confusing let me try to clear it in heirarchially:

site/
site/modules/
site/modules/tinymce/ (drupal's)
site/modules/tinymce/tinymce/ (drupal's) (contains drupal tinymce files)
site/modules/tinymce/tinymce/tinymce/ (moxicode's) (with moxicode tinymce files)

4. Follow the rest of the instructions found in INSTALL.txt found therein...

Hope this article helps!

No comments:

Drupal Products