Thêm WYSIWYG Editor trong Drupal Site của bạn

Thêm WYSIWYG Editor trong Drupal Site của bạn

What is a WYSIWYG Editor and Why Do You Need It?

So your site users don't have to use code. Its as simple as that.

WYSIWYG stands for "What You See Is What You Get" ... if you select some text and click the "bold" button, that text will be bold. If you select some text and click the "italic" button, that text will be in italics. There's no messing around with HTML. That will be a relief to some of you and more particularly ... your clients and site visitors.

Installing the WYSIWYG Module

First of all, we're going to install a WYSIWYG module that will allow Drupal to install a range of different editors.

  • Step 1: Click here to download the latest version of "WYSIWYG". Choose the top link under "Recommended releases".
  • Step 2: Extract the files into a folder on your desktop. The folder will be called "wysiwyg"
  • Step 3: Login to your site's files via FTP and navigate to /sites/all/. If there isn't a folder called /modules/ here, create one.
  • Step 4: Upload the "wysiwyg" folder to /sites/all/modules/
  • Step 5: Go to Administer >> Site building >> Modules. Check the box next to "Wysiwyg" and click Save Configuration.
  • Step 6: Go to Administer >> Site configuration >> Wysiwyg and you should see a screen with several suggested editors. One option is TinyMCE and that is the example we will use:

Adding a WYSIWYG Editor to Your Drupal Site

Installing TinyMCE

Now we're going to install the TinyMCE editor itself:

  • Step 7: Click on the "Download" link or go directly to http://tinymce.moxiecode.com/download.php
  • Step 8: Download the latest TinyMCE to your desktop and extract the files. The folder will be called "tinymce 2". Rename this to simply "tinymce"
  • Step 9: Login to your site's files via FTP and navigate to /sites/all/. If there isn't a folder called /libraries/ here, create one.
  • Step 10: Upload the "wysiwyg" folder to /sites/all/libraries/
  • Step 11: Go back to Go to Administer >> Site configuration >> Wysiwyg and screen we saw before should now look like this:

Adding a WYSIWYG Editor to Your Drupal Site

  • Step 12: Save these settings and now when you go to edit an article, you should see a fully-fledged editor:

Adding a WYSIWYG Editor to Your Drupal Site

Bạn thấy bài viết này như thế nào?: 
Average: 5 (1 vote)
Ảnh của Tommy Tran

Tommy owner Express Magazine

Drupal Developer having 9+ year experience, implementation and having strong knowledge of technical specifications, workflow development. Ability to perform effectively and efficiently in team and individually. Always enthusiastic and interseted to study new technologies

  • Skype ID: tthanhthuy

Tìm kiếm bất động sản

 

Advertisement

 

jobsora

Dich vu khu trung tphcm

Dich vu diet chuot tphcm

Dich vu diet con trung

Quảng Cáo Bài Viết

 
Xây dựng chiến lược phễu khách hàng từ sự hỗ trợ đa kênh

Xây dựng chiến lược phễu khách hàng từ sự hỗ trợ đa kênh

Viết blog là một trong những điều quan trọng nhất của tiếp thị nội dung. Đây là một chiến lược tập trung vào việc tạo ra nội dung thú vị hoặc có giá trị cho đối tượng được xác định của bạn với mục tiêu thu hút

Trường ra thông báo lưu ý học sinh không chửi bậy trên Facebook

Mục "Những điều cần lưu ý khi lên Facebook" ghi trong Sổ tay sinh hoạt năm học 2015-2016

Hướng dẫn custom CKEditor để thêm tag mới Drupal WYSIWYG Module

Hướng dẫn custom CKEditor để thêm tag mới Drupal WYSIWYG Module

The WYSIWYG module in Drupal is a great way of integrating a client side HTML editor (better known as a WYSIWYG editor) into a Drupal site.

Công ty diệt chuột T&C

 

Diet con trung