How to get the “upload image” field using Nicedit editor

空扰寡人 提交于 2019-12-08 10:42:11

问题


my code is

Html code:

<div id="sample">

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

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


回答1:


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.



来源:https://stackoverflow.com/questions/10241297/how-to-get-the-upload-image-field-using-nicedit-editor

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!