Resize uploaded image for linecontrol editor

Hello,

I’m using the http://suyati.github.io/line-control editor
This editor does not upload images to the folder, inserts them into text as base64
I want to resize image upload to this editor
I have a resizing code imageresize.php

This image insert code:

					   'insert_img'	: { "modal": true,
					   					"modalId": "InsertImage_" + $(this).attr("id"), 
										"icon":"fa fa-picture-o", 
										"tooltip": "Insert Image", 
										"modalHeader": "Insert Image",
										"modalBody": methods.imageWidget.apply(this),
										"beforeLoad":function(){
											editorObj = this;
											var _idSuffix = editorObj.attr("id");
											$('#imageURL_' + _idSuffix).val("");
											$("#uploadImageBar_" + _idSuffix + " :input").val("");
											$('#imageList_' + _idSuffix).data('current',"");																																				
										},
										"onSave": function(){
											var _idSuffix = "_" + editorObj.attr("id");
											methods.restoreSelection.apply(this);												
											if($('#imageList' + _idSuffix).data('current')){
												if(navigator.userAgent.match(/MSIE/i) || navigator.userAgent.match(/Windows NT.*Trident\//)){
													var imageStr = '<img src="'+$('#imageList' + _idSuffix).data('current')+'"/>'
													methods.restoreSelection.apply(this,[imageStr,'html'])
												}
												else{
													document.execCommand('insertimage', false, $('#imageList' + _idSuffix).data('current'));
												}
											}
											else{
												methods.showMessage.apply(this,["imgErrMsg" + _idSuffix,"Please select an image"]);
												return false;
											}
											$("#InsertImage" + _idSuffix).modal("hide");
											$(this).data("editor").focus();
										}},

How can I redirect to resize here?

$.ajax({
   type: "POST",
   url: "imageresize.php",
   success: function(msg){
   }
 });
Sponsor our Newsletter | Privacy Policy | Terms of Service