Refactoring insert image from storage using fileChoiceUrl
This commit is contained in:
parent
40e68b5afb
commit
01a5626e17
|
@ -1611,6 +1611,8 @@ define([
|
||||||
fileChoiceUrl: this.toolbar.mode.fileChoiceUrl.replace("{fileExt}", "").replace("{documentType}", "ImagesOnly")
|
fileChoiceUrl: this.toolbar.mode.fileChoiceUrl.replace("{fileExt}", "").replace("{documentType}", "ImagesOnly")
|
||||||
})).on('selectfile', function(obj, file){
|
})).on('selectfile', function(obj, file){
|
||||||
file && (file.c = type);
|
file && (file.c = type);
|
||||||
|
!file.images && (file.images = [{fileType: file.fileType, url: file.url}]); // SelectFileDlg uses old format for inserting image
|
||||||
|
file.url = null;
|
||||||
me.insertImage(file);
|
me.insertImage(file);
|
||||||
}).show();
|
}).show();
|
||||||
}
|
}
|
||||||
|
|
|
@ -1612,6 +1612,8 @@ define([
|
||||||
fileChoiceUrl: this.toolbar.mode.fileChoiceUrl.replace("{fileExt}", "").replace("{documentType}", "ImagesOnly")
|
fileChoiceUrl: this.toolbar.mode.fileChoiceUrl.replace("{fileExt}", "").replace("{documentType}", "ImagesOnly")
|
||||||
})).on('selectfile', function(obj, file){
|
})).on('selectfile', function(obj, file){
|
||||||
file && (file.c = type);
|
file && (file.c = type);
|
||||||
|
!file.images && (file.images = [{fileType: file.fileType, url: file.url}]); // SelectFileDlg uses old format for inserting image
|
||||||
|
file.url = null;
|
||||||
me.insertImage(file);
|
me.insertImage(file);
|
||||||
}).show();
|
}).show();
|
||||||
}
|
}
|
||||||
|
|
|
@ -894,6 +894,8 @@ define([
|
||||||
fileChoiceUrl: this.toolbar.mode.fileChoiceUrl.replace("{fileExt}", "").replace("{documentType}", "ImagesOnly")
|
fileChoiceUrl: this.toolbar.mode.fileChoiceUrl.replace("{fileExt}", "").replace("{documentType}", "ImagesOnly")
|
||||||
})).on('selectfile', function(obj, file){
|
})).on('selectfile', function(obj, file){
|
||||||
file && (file.c = type);
|
file && (file.c = type);
|
||||||
|
!file.images && (file.images = [{fileType: file.fileType, url: file.url}]); // SelectFileDlg uses old format for inserting image
|
||||||
|
file.url = null;
|
||||||
me.insertImage(file);
|
me.insertImage(file);
|
||||||
}).show();
|
}).show();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue