Baidu Ueditor component, use upload picture, automatically upload picture to display in editor, that is to insert a tag. and set an Alt property whose value is the local path when uploading the picture. For the time being, I don't see where I can configure this value. When viewing the contents of a publication, it is a bit awkward to see the ALT value as a disk path.
You can edit the content, save to the database filter, modify ALT content, can also directly modify the source code
function callback () {
try{
var link, json, loader, body
= (Iframe.contentdocument | iframe.contentWindow.document). Body, result
= Body.innertext | | body.textcontent | | '';
JSON = (new Function ("return" + Result)) ();
link = me.options.imageUrlPrefix + json.url;
if (json.state = = ' SUCCESS ' && json.url) {
loader = me.document.getElementById (loadingid);
Loader.setattribute (' src ', link);
Loader.setattribute (' _src ', link);
Loader.setattribute (' title ', Json.title | | '');
Loader.setattribute (' Alt ', json.original | | '');
Loader.removeattribute (' id ');
Domutils.removeclasses (loader, ' loadingclass ');
} else {
Showerrorloader && showerrorloader (json.state);
}
} catch (er) {
showerrorloader && showerrorloader (Me.getlang (' simpleupload.loaderror '));
Form.reset ();
domutils.un (IFRAME, ' Load ', callback);
}