Take the 2-minute tour ×

my code is

Html code:

<div id="sample">

<script type="text/javascript">
bkLib.onDomLoaded(function() { nicEditors.allTextAreas() });
<h4>First Textarea</h4>
<textarea name="area1" cols="35"></textarea>

The above code convert the text area into editor. I need a one more option for that editor that should be able to upload images

share|improve this question
add comment

2 Answers

up vote 1 down vote accepted

According to the Documentation you will need to specify a uploadURI for that und upload their nicUpload.php script to that location.

Inside the nicUpload.php you will need to configure some parameters. NICUPLOAD_PATHas a filesystem path on the server where the images should be stored and NICUPLOAD_URI to the URI to access said location through the webserver.

Don't forget to chmod write permissions onto the directory so the webserver can write there.

share|improve this answer
add comment

NicEditor uses imgur as the default image upload service. The source code follows the API format described here: http://api.imgur.com/resources_anon#upload

My suggestion would be to implement the API request and response defined there.

share|improve this answer
add comment

Your Answer


