TinyMCE Image Upload API not showing image picker icon

↘锁芯ラ 提交于 2019-12-08 01:57:38

问题


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:

http://www.tinymce.com/wiki.php/Handling_Asynchronous_Image_Uploads

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
});

The articles suggest that all you really need is specify the images_upload_url and TinyMCE will allow image uploads.

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?


回答1:


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.

If you want a file picker icon you need to insert image into your toolbar.



来源:https://stackoverflow.com/questions/32870817/tinymce-image-upload-api-not-showing-image-picker-icon

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