问题描述
我的代码是
Html代码:
< div id =sample>
< script type =text / javascriptsrc =../ nicEdit.js>< / script>
< script type =text / javascript>
bkLib.onDomLoaded(function(){nicEditors.allTextAreas()});
< / script>
< h4> First Textarea< / h4>
< / div>
上面的代码将文本区域转换为编辑器。
我需要一个更多的选项,该编辑器应该能够上传图像
根据 uploadURI $ href =http://wiki.nicedit.com/w/page/515/Configuration%20Options =nofollow>文档 c $ c>,然后将他们的脚本上传到
在你需要配置一些参数。 NICUPLOAD_PATH
作为存储图像的服务器上的文件系统路径,并通过 NICUPLOAD_URI
访问上述位置Web服务器。
不要忘记将写入权限写入目录,以便Web服务器可以在那里写入。
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
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_PATH
as 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.
这篇关于如何获取“上传图片”字段使用Nicedit编辑器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!