TinyMCE 4.2 - Get the new (core) Image Tools to save (API) edited images as files?

后端 未结 2 742
情话喂你
情话喂你 2021-01-06 18:54

I am sorry if this is a duplicate. I haven\'t found any question related to this yet:

The new TinyMCE 4.2 Image Tools saves images as base64 data in stead o

2条回答
  •  青春惊慌失措
    2021-01-06 19:31

    My code, it's works! If you modify the image and click confirm button then Image Tools will upload the new image to server automatic.

    images_upload_handler: function(blobInfo, success, failure) {
                var xhr, formData;
    
                xhr = new XMLHttpRequest();
                xhr.withCredentials = false;
                xhr.open('POST', 
    '<%=request.getContextPath()%>/fylerMedia?flyerID=<%=flyerID %>'); <<<

    Hope it helps you!

提交回复
热议问题