- android - RelativeLayout 背景可绘制重叠内容
- android - 如何链接 cpufeatures lib 以获取 native android 库?
- java - OnItemClickListener 不起作用,但 OnLongItemClickListener 在自定义 ListView 中起作用
- java - Android 文件转字符串
我是这样称呼编辑器的:
new nicEditor({
buttonList : ['bold','italic','underline','upload'],
iconsPath:'img/nicedit.png',
uploadURI : 'http://server.com/integracion/files/nicUpload.php'
}).panelInstance(textareaId);
并且 .php 文件存在(我是 Docs 中的那个,我更新了目标路径)
/* I want them here http://server.com/integracion/files/uploads/ so... */
define('NICUPLOAD_PATH', './uploads'); // Set the path (relative or absolute) to
// the directory to save image files
define('NICUPLOAD_URI', '/uploads'); // Set the URL (relative or absolute) to
// the directory defined above
但我在上传完成时做出回应(当然还有来自 nicedit 的警告......)
<script>
try {
top.nicUploadButton.statusCb({"error":"Invalid Upload ID"});
} catch(e) { alert(e.message); }
</script>
我错过了什么?
-编辑
我认为问题可能出在 php 文件中:
$id = $_POST['APC_UPLOAD_PROGRESS']; /* APC is installed and enabled */
if(empty($id)) {
$id = $_GET['id'];
}
最佳答案
最终编辑:
我已经成功完成了这项工作!
这是一个工作示例:
http://simplestudio.rs/yard/nicedit/
上传的图片将存储在这里:
http://simplestudio.rs/yard/nicedit/images/
这是完整的代码,只需解压并放在您的服务器上,主要是我需要调整 nicEdit.js,因为它有一些问题。
http://simplestudio.rs/yard/nicedit/nicedit.rar
只需使用该 js 文件编写您的代码,并通过查看我的示例,它就可以工作:)
如果您有任何问题,我会在这里解决。
关于php - Nicedit 本地上传图片失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12662062/
我想检查我的文本区域,如果用户没有填写消息,它会提示一条警报消息。然而我的文本区域似乎被 nicEdit 文本区域取代。 HTML 部分 bkLib.onDomLoaded(function()
我正在使用 nicEdit 作为本地站点的记事本编辑器。我使用复选框来调用 nicEdit 函数(注释),但面板根本不显示。甚至警报也没有出现。 还有其他三个函数可以使用 cookie 保存笔记: /
我在我的应用程序中使用 NicEdit 编辑器,但是当我在文本区域中写入文本时,它会增加大小而不是向 textarea 添加滚动条。请帮助解决如何将滚动条添加到 nicEdit 编辑器文本区域滚动条。
我正在为我的一个项目使用 NicEdit WYSIWYG 编辑器。 http://nicedit.com 我遇到的问题是 NicEdit 想要让我将任何代码(HTML、CSS、PHP 等)发布到 my
$('#update').val(); 不工作怎么办?thk 我想在提交时删除文本区域中的数据 bkLib.onDomLoaded(function() { nicEditors.allT
你好,我的 nicedit 编辑器有一个小问题 问题是 第一行不受影响! 示例: 我在文本区域框的第一行写了(asdad) 我标记了它并单击(居中对齐) 它应该位于盒子的中心 看这张图 这个问题只出现
在这里几个人的大力帮助下,我成功创建了一个页面,可以动态创建动态可调整大小/可拖动的文本区域。我现在正在尝试将 nicedit 集成到这些文本区域中。它的工作到了一定程度。双击后,文本区域将成为 ni
我在我的网站上使用 nicEdit 作为文本编辑器。我包括这个: 除字体大小和字体系列外,所有按钮均有效,所选文本不会更改为我选择的字体大小和字体系列。怎么了? 最佳答案 我可以看看你的代码(css
我是这样称呼编辑器的: new nicEditor({ buttonList : ['bold','italic','underline','upload'],
代码如下 //
我已将 nicEdit 添加到我的代码中,但不知何故,当我选择字体大小和系列时,nicEdit 不显示所做的选择。有什么出路和可能的解决方案吗? 最佳答案 好吧,我稍微调整了 js 文件以获得 ans
我有这个 jQuery 代码: var char = 60; $("#counter").append("You have " + char + " char."); $("#Stat
我一直在尝试在我的网站表单上使用 nicedit (http://nicedit.com/)(我用它来提交短篇小说)。该表单包括几个文本区域()。其中之一是关于短篇小说的内容,我想在其中使用 nice
使用 NicEdit 时,可以使用编辑器中的“添加链接”按钮突出显示文本,以便可以对其进行超链接。 单击“添加链接”按钮时,会出现一个弹出窗口,您可以在其中指定链接是应在新窗口中打开还是在当前窗口中打
我正在使用 NicEdit Inline WYSIWYG 并尝试了解如何使用占位符。 我创建了一个带有属性占位符的 div,但是当 NicEdit 激活它时,显示没有占位符的空白文本区域。 也许有一些
我在我的一个项目中使用 nicEditor,我想使用插件中的 jQuery 提交内容。这是我的代码 bkLib.onDomLoaded(function() { new nicEditor().pa
我的网站 nicedit 的所有按钮都很好。但我想在我的网站之一中删除编辑器的上传按钮。我有一个按钮列表选项,但我正在搜索如下设置: fullPanel: true, hideButton: '上传'
我的网站允许用户写短篇小说。我希望他们可以自由设置文本的格式和样式,所以我安装了 NicEdit要做到这一点。但是 NicEdit 只有 9 个默认字体;如何添加更多? 这是我的编辑器。它使用具有完整
我正在使用 nicEdit 将内容发布到我的数据库中。但我发现,当我发布内容时,它会为每个创建的段落创建一堆标签,例如 div、p、标签。当我将内容加载到网站上时,这会导致我的网站扭曲。 为什么 ni
有人试过吗? 我从 nicEditor 开始,但正在考虑切换到 TinyMCE,因为: nicEditor 不再处于开发阶段,因此可能与 future 的 CSS/HTML/jQuery 版本存在不兼
我是一名优秀的程序员,十分优秀!