mirror of
https://github.com/typecho/typecho.git
synced 2025-03-23 19:40:22 +01:00
Merge branch 'master' of https://github.com/typecho/typecho-replica
This commit is contained in:
commit
b4ac909e1e
@ -4858,10 +4858,20 @@ else
|
||||
|
||||
if (!chunk.selection) {
|
||||
if (isImage) {
|
||||
chunk.selection = that.getString("imagename").replace('_', '\\_') || that.getString("imagedescription");
|
||||
var imagename = that.getString("imagename");
|
||||
if (!!imagename) {
|
||||
imagename = imagename.replace('_', '\\_');
|
||||
}
|
||||
|
||||
chunk.selection = imagename || that.getString("imagedescription");
|
||||
}
|
||||
else {
|
||||
chunk.selection = that.getString("linkname").replace('_', '\\_') || that.getString("linkdescription");
|
||||
var linkname = that.getString("linkname");
|
||||
if (!!linkname) {
|
||||
linkname = linkname.replace('_', '\\_');
|
||||
}
|
||||
|
||||
chunk.selection = linkname.replace('_', '\\_') || that.getString("linkdescription");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user