Merge pull request #2926 from storytouch/addAuthorOnRemoveAttributeOnLine
Update author when removing line attribute from line
This commit is contained in:
commit
8df8228a36
|
@ -278,6 +278,9 @@ AttributeManager.prototype = _(AttributeManager.prototype).extend({
|
||||||
if (attrib[0] === attributeName && (!attributeValue || attrib[0] === attributeValue)){
|
if (attrib[0] === attributeName && (!attributeValue || attrib[0] === attributeValue)){
|
||||||
found = true;
|
found = true;
|
||||||
return [attributeName, ''];
|
return [attributeName, ''];
|
||||||
|
}else if (attrib[0] === 'author'){
|
||||||
|
// update last author to make changes to line attributes on this line
|
||||||
|
return [attributeName, this.author];
|
||||||
}
|
}
|
||||||
return attrib;
|
return attrib;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue