Cài đặt TinyMCE trong Drupal 7

This tutorial will show you how to install the TinyMCE editor into Drupal 7.

TinyMCE By default, Drupal doesn't install with an editor in place so you'll need to install one to have any text formatting options. Here's how to install TinyMCE, perhaps the most popular editor for Drupal.

TinyMCE is not a Drupal not so we can install it directly. Instead we're going to install a module called Wysiwyg and we'll then upload the TinyMCE files seperately.

Install the Wysiwyg Module

tutuploadsmedia_1309108537169.png

Go to http://drupal.org/project/Wysiwyg and download the Drupal 7 version of the Wysiwyg module.

tutuploadsmedia_1309108583482.png

In the admin area of your Drupal site, click on "Modules" and then "Install new module".

tutuploadsmedia_1309108638722.png

Click "Browse" and select the Wysiwyg module file that you just downloaded. Click "Install".

tutuploadsmedia_1309108680782.png

Go back to the "Modules" page scroll to the bottom. Check the box next to "Wysiwyg" and click "Save configuration".

Setting up the Wysiwyg module and TinyMCE

tutuploadsmedia_1309108753390.png

Click "Configure" next to "Wysiwyg".

tutuploadsmedia_1309108945368.png

You'll see the configuration screen for the Wysiwyg module. The key thing to note is that we now to install TinyMCE itself. Scroll down until you find it listed amongst the other extensions.

tutuploadsmedia_1309109033506.png

Click "Download" next to TinyMCE.

tutuploadsmedia_1309109061322.png

You'll be taken to the main TinyMCE download page. Click "Download" next to the top entry in the "Main packages" area.

tutuploadsmedia_1309109245045.png

  • First, you will need to unzip or uncompress the TinyMCE files that you downloaded.
  • Once you've unzipped the files, you'll need to login to your Drupal site's files. You can access the files via FTP or, if you're using a web hosting company, via your site's hosting control panel.
  • Browse to the /sites/all/ folder.
  • Create a folder called /libraries/ if one doesn't exist.
  • Upload the /tinymce/ folder into the new /libraries/ folder.

That's it. You've now installed TinyMCE. We now need to configure it to meet our needs:

Configuring TinyMCE

tutuploadsmedia_1309109349528.png

Go back to the Wysiwyg module configuration screen. You can get here by going to "Configuration" then "Wysiwyg profiles".

Your screen will look like the one above.

tutuploadsmedia_1309109366693.png

Change the "Editor" settings to TinyMCE. and click "Save".

tutuploadsmedia_1309109692151.png

Click "Edit" next to one of the input formats.

tutuploadsmedia_1309109766508.png

Click the "Buttons and Plugins" tab and check the boxes next to the all options you'd like to use in the editor. Click "Save" to finish and repeat the process for the other input formats.

That's it - you're now done.

Go to "Add content" and you should now see the TinyMCE editor available whenever you write content:

tutuploadsmedia_1309109939354.png