Open Rygat opened 2 years ago
Can you give me an example?
I want to work with the link when adding an image. For example:
suneditor.onImageUploadBefore = function (files, info, core, uploadHandler) {
if(files[0].link == null)
{
files[0].link.url = "http://bigimage"
}
...
};
suneditor.onImageUploadBefore = function (files, info, core, uploadHandler) {
if(!info.anchor)
info.anchor = core.util.createElement("A");
info.anchor.src = "...";
};
return true;
}
How can I programmatically work with an image link (add, edit, check etc.)?