Written by Pete Koutoulas   
umbraco 3.0

Quick Tip
You can quickly and easily implement multiple versions of the TinyMCE rich text editor to suit different purposes, simply by creating new data types in umbraco.

Chapters

  • Chapter 1:
 

I stumbled upon something today that should be obvious to a seasoned umbraco user but might not be so obvious to newer users. It is such a powerful concept that I thought I'd take the time to share it with everyone, just in case there are others out there like me who didn't figure it out right away.

The gist of the idea is the fact that you can quickly and easily implement multiple versions of the TinyMCE rich text editor to suit different purposes, simply by creating new data types in umbraco.

There is much utility in doing this. For example, in one of my page templates, I have a block of text for which I want to severely limit the styling choices. Basically, I only want to allow Bold, Italic, and ordered and unordered lists. Nothing else -- no links, no paragraph styles, nothing. So, in designing the document type for this page template, I didn't use the standard rich text field. Instead, I took the following steps:

  1. Create a new data type. Call it something like Rich Text Editor Simplified.
  2. For the Render control, select TinyMCE.
  3. Customize the rich text controls by selecting the buttons you want to appear, selecting the style sheets, and so on.
  4. Save the new data type.
  5. Now all you have to do is go to your document type and create a new property (or modify an existing one) and for Type, choose your new customized rich text data type.

You can have as many different rich text data types as you need. So you can create a different one for any situation.

 

RSS Feed for Documentation RSS Feed for docs (syndicate)

  • Latest forum posts

Brilliant umbraco hosting provided by FAB-IT