Search the blog

ProcessWire uses CKEditor for its HTML editor. It has some decent conservative settings that keep your HTML clean. If you’re an advanced user you may at times need CSS classes — which are disbled by default. Change your field like this:

  1. Edit your field
  2. Go to the Input field
  3. Scroll down to CKEditor Toolbar
  4. Under Extra Allowed Content add each element for which you want to allow classes for followed by (*). E.g. to allow classes on paragraph tags add p(*)
  5. To allow for all add *(*)
  6. Save your field before use.
Tim Bennett is a freelance web designer from Leeds. He has a First Class Honours degree in Computing from Leeds Metropolitan University and currently runs his own one-man web design company, Texelate.