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

  • Dokkio Sidebar applies AI to make browsing the web faster and more productive. Whenever you open Sidebar, you'll get an AI summary of the web page and can ask any question you like about the content of the page! Try Dokkio Sidebar for free.


Configuration Options

This version was saved 14 years, 6 months ago View current version     Page history
Saved by Brian Kirchoff
on December 8, 2008 at 1:07:17 am

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.

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


Available Configuration Options:


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


An array of buttons in the editors for example



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

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'
  • 'removeformat'
  • 'indent'
  • 'outdent'
  • 'hr'
  • 'image'
  • 'upload' * requires nicUpload
  • '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.