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}
Note that some configuration options, such as buttonlist, will not work unless you download a version of NicEdit and use it from your own webserver..
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 uses this mode of operation). Example:
{externalCSS : 'mysite.css'}
|
uploadURI |
Absolute or relative URL to the nicUpload reciever script. Allows you to upload images from nicedit to your own server. *requires nicUpload
Example:
{uploadURI : 'http://yourdomain.com/nicUpload.php'}
Default (http://files.nicedit.com/) uses nicedit server and uploads to imageshack
You can find a PHP version of an upload script at:
http://nicedit.com/svn/nicedit/trunk/nicUpload/php/nicUpload.php
|
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 (3)
felixvera said
at 9:49 pm on Jan 4, 2009
Excelent solution!!!
Gagugo said
at 5:40 am on Feb 25, 2009
Can you add table button??
Adrian said
at 6:29 pm on Feb 22, 2010
Thanks so much for the referenced PHP upload script. Just saved me quite a few hours of work and works marvelously.
You don't have permission to comment on this page.