• If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • You already know Dokkio is an AI-powered assistant to organize & manage your digital files & messages. Very soon, Dokkio will support Outlook as well as One Drive. Check it out today!

View
 

Configuration Options

This version was saved 15 years, 6 months ago View current version     Page history
Saved by Brian Kirchoff
on December 6, 2008 at 2:52:52 pm
 

NicEdit is highly configurable by passing the configuration when you create the NicEditor. Pass your configuration when you call:

new NicEditor({CONFIG HERE})

Add .panelInstance('ID TO TEXTAREA HERE') to add the editor to the textarea.

The specify multi config options they are JSON syntax: {fullPanel : true, iconsPath : 'nicEditorIcons.gif', maxHeight : 200}

 

Available Configuration Options:

fullPanel

If set to true, the editor instance will be created with all available buttons.  If false (the default), buttonList will be used to control which buttons are displayed

buttonList

An array of buttons in the editors for example

['bold','italic','underline','left','center']

iconsPath

String path to the icons file for example 'images/nicEditorIcons.gif'

maxHeight Height value in pixels that the editor should not expand automatically past.  The editing area can still be larger then the specified value it will simply use scrollbars.  For a fixed height (not dynamically growing) editor set both the maxHeight value and the style="height: X" value to the same pixel value
externalCSS

Relative path to an external style sheet to apply to iframe nicEditor instances (only FF2/3 use this mode of operation). Example:

{externalCSS : 'mysite.css'}

 

List of Buttons for buttonList option

  • 'bold'
  • 'italic'
  • 'underline'
  • 'left'
  • 'center'
  • 'right'
  • 'justify'
  • 'ol'
  • 'ul'
  • 'subscript'
  • 'superscript'
  • 'strikethrough'
  • 'indent'
  • 'outdent'
  • 'hr'
  • 'image'
  • 'forecolor'
  • 'bgcolor'
  • 'link' * requires nicLink
  • 'unlink' * requires nicLink
  • 'fontSize' * requires nicSelect
  • 'fontFamily' * requires nicSelect
  • 'fontFormat' * requires nicSelect
  • 'xhtml' * required nicCode

 

 

Comments (0)

You don't have permission to comment on this page.