Part 1: Initial install/configuration
- Download WYSIWYG dev version https://www.drupal.org/project/wysiwyg
- If you're not using drush, extract WYSIWYG folder to
sites\all\modules\
- Enable the module
- Go to site configuration and click on WYSIWYG profiles
- Download CKeditor http://ckeditor.com/download
- Extract contents to sites
/all/libraries/ckeditor
- Refresh WYSIWYG profiles page
- Choose where u want editor to show up
- Click "edit" to choose buttons you want to show
- You can choose "Media Browser"*
*To enable Media Browser, you need to first enable the module "Media
WYSIWYG View Mode", then go to configuration>text
formats>configure and then enable "Convert Media tags to markup"
Part 2: Font configuration
- Go to
admin/config/content/wysiwyg
- Under CSS tab, choose Define CSS
- As CSS path, add "/sites/all/themes/name-of-theme/css/your-custom.css" (without parenthesis)
- Add custom css in your custom css file
Important: please use unique CSS classes for these fields (so it doesn't affect any other elements in the site)
Image captions (optional)
- _To add image captions, please install the following module: https://www.drupal.org/project/image_caption
- If not using drush, copy the image_caption folder to your Drupal modules folder
- Add the empty css definition .caption{} to the stylesheet used by the WYSIWYG editor and to the theme's stylesheet (front-end)
- Add it to the theme's style.css to get it to appear in the class dropdown box in your WYSIWYG editor.
- Enable the Image Caption module in Drupal module administration.
- After install, select the node types to include in image caption processing under Site Configuration > Image Caption*_
No comments:
Post a Comment