Skip to content Skip to navigation

WYSIWYG Filter Configuration

Author: 
Topics: 

Per Andrew Mallis:

"I thought I should share the current WYSYWYG filter configurations I've been using (work in progress)":

BASIC
-----
@[id|class|style|title],
a[href|target<_blank|name|rel], 
-div[align<center?justify?left?right],
#p[align<center?justify?left?right],
strong/b,em/i,u,
-ol[type|compact],-ul[type|compact],-li,-dl,-dt,-dd,
caption,-h2,-h3,-h4,-h5,-h6,hr[size|noshade],
br,cite,code,-blockquote,
img[src|id|width|height|align|hspace|vspace], 
-span[align<center?justify?left?right]
 
 
 
ADVANCED
---------
@[id|class|style|title],
a[!href|target<_blank|name|rel], 
-div[align<center?justify?left?right], 
#p[align<center?justify?left?right],
strong/b,em/i,u,-sup,-sub,
-ol[type|compact],-ul[type|compact],-li,-dl,-dt,-dd,
caption,-code,-pre,address,-h1,-h2,-h3,-h4,-h5,-h6,hr[size|noshade],
br,cite,code,-blockquote,cite,abbr,acronym,legend,
img[src|id|width|height|align|hspace|vspace], 
-table[border=0|cellspacing|cellpadding|width|frame|rules|height|align|summary|bgcolor|background|bordercolor],
-tr[rowspan|width|height|align|valign|bgcolor|background|bordercolor],
tbody,thead,tfoot,#td[colspan|rowspan|width|height|align|valign|bgcolor|background|bordercolor|scope],
#th[colspan|rowspan|width|height|align|valign|scope],
-span[align<center?justify?left?right]
 
(optional)
-font[face|size|color]

Required and optional Modules

Here is the full list of modules we are using to make wysiwyg work. Some are optional, depending on your workflows and conifigurations.

text related modules:

  • wysiwyg 
  • wysiwyg_filter
  • vertical_tabs 
  • better_formats

File/image related modules:

  • filefield_paths
  • filefield_sources
  • pathauto
  • transliteration
  • itweak_upload (optional)
  • insert
  • image_resize_filter
  • imagecache
  • imce
  • imce_wysiwyg

Features related modules

  • features
  • ctools
  • strongarm
  • exportables [ 6.x-2.0-beta1 or later ]
  • input_formats
  • diff (optional, allows to see how a feature is overridden)

If you want to just go for it, here is the drush command you can run to download everything:

$ drush dl wysiwyg wysiwyg_filter vertical_tabs better_formats filefield_paths filefield_sources pathauto transliteration itweak_upload insert image_resize_filter imagecache imce imce_wysiwyg features ctools strongarm exportables-6.x-2.0-beta1 input_formats diff