问题描述
我们按照本教程中的说明操作但由于某种原因,图片对话框上的上传按钮(图片网址旁边的搜索文件夹图标)未显示:
We followed the instructions on this tutorial but for some reason, the upload button (the search folder icon next to the image URL) on the image dialog does not show:
我们只尝试了 images_upload_url
选项以及所有选项,但上传图标从未显示:
We've tried with just the images_upload_url
option as well as all the options, but the upload icon never shows:
tinymce.init({
...
images_upload_url: "postAcceptor.php",
images_upload_base_path: "/some/basepath", //optional
images_upload_credentials: true //optional
});
文章建议您真正需要的是指定 images_upload_url
和TinyMCE将允许图片上传。
The articles suggest that all you really need is specify the images_upload_url
and TinyMCE will allow image uploads.
我们正在运行4.2.5。此功能自4.2.0起可用。我已与TinyMCE母公司(Ephox)确认图像上传功能是社区版功能。那么有没有人让这个工作?
We are running 4.2.5. This feature is available since 4.2.0. I've confirmed with TinyMCE parent company (Ephox) that the image upload feature is a community version feature. So has anyone gotten this to work?
推荐答案
它不应该向您显示图像选择器图标。
它会将你粘贴的文件中的图像上传到编辑器中。
It is not supposed to show you an image picker icon.It uploads images from files you paste into the editor.
如果你想要文件选择器,你应该使用。
If you want file picker you should use the file_picker_callback.
如果你想要一个文件选择器图标,你需要插入 image
进入您的 。
If you want a file picker icon you need to insert image
into your toolbar.
这篇关于TinyMCE图像上传API未显示图像选择器图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!