Umbraco Tip: How-To Create a Simple, Big XHTML Editor

This is a tip that is so simple I'm a little embarrassed to post about it.  But, some of the front-end developers were thrilled by this, so what the heck.

I am lucky to work with a group of very talented external front-end developers that have access to some of our Umbraco installations.  To date, I've given them access to the Content, Media, and Settings areas in the UI.  Of these, the Settings area is the most 'sensitive' as it allows them to view all templates and document types in the installation and has the risk of inadvertent changes to underling templates.  The goal was to allow them to input their beautifully crafted XHTML without worrying about what Tidy or TinyMCE might do to it.  Of course, using a SimpleEditor or Textbox Multiple data type is an option, but this allowed them to view only a small portion of the code at a time.

As a solution, I've used the Textbox Multiple data type and edited the related CSS and created a nearly full-screen view for these developers to work with (see below).  Now, if I can create something similar for CSS and JS files they'll be eternally grateful!

How To:

  1. Create a New Data Type in the Umbraco Developer section
    1. dt
  2. Edit the related style, umbEditorTextFieldMultiple, found in:
    1. …\umbraco_client\ui\default.css
    2. 
      .umbEditorTextFieldMultiple {
          width: 700px;
          height: 700px;
          font-family: Trebuchet MS, Lucida Grande, verdana, arial;
          font-size: 12px;
      }
      
  3. Add the Data Type as a property to the appropriate Document Type
    1. gp 

Another example of the incredible flexibility of Umbraco.

-Paul

5 comment(s) for “Umbraco Tip: How-To Create a Simple, Big XHTML Editor”

  1. Gravatar of Petr
    Petr Says:
    Editing css breaks Textbox Multiple, isn't it?
  2. Gravatar of Ativan
    Ativan Says:
    Save up up to 50, and more. Generic best price Ativan
    And at the end don't forget to say thanks amigo
  3. Gravatar of Very nice site!  [url=http://apeyixo.com/ysyrrys/2.html]cheap cialis[/url]
    Very nice site! [url=http://apeyixo.com/ysyrrys/2.html]cheap cialis[/url] Says:
    Very nice site! [url=http://apeyixo.com/ysyrrys/2.html]cheap cialis[/url]
  4. Gravatar of Very nice site! cheap cialis http://apeyixo.com/ysyrrys/4.html
    Very nice site! cheap cialis http://apeyixo.com/ysyrrys/4.html Says:
    Very nice site! cheap cialis http://apeyixo.com/ysyrrys/4.html
  5. Gravatar of Very nice site!
    Very nice site! Says:
    Very nice site!