O'Reilly logo

MODx Web Development by Antano Solar John

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Rich text editor for the blog content

To provide a rich text editor for the blog content area, all that has to be done is to replace the content area with a template variable that is of the rich text type and uses the rich text widget. This way, MODx provides a rich-text editor automatically when the form is being filled in or edited. This is a three-step process:

  • Creation of the template variable
  • Making the form template chunk use the template variable
  • Letting NewsEditor be aware that the content field has changed to the new template variable

Creating the template variable

  1. Click on the Manage Elements menu item in the Elements menu.
  2. Click on the Template Variables tab, and then click on New Template Variable.
  3. Fill in the fields with the following values: ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required