Fixed editor_by_id() function to work correctly when a revision is given and a static div editor is returned.
This commit is contained in:
parent
53bff5980d
commit
ab3e04538c
|
@ -1131,8 +1131,12 @@ function editor_by_id( note_id, revision ) {
|
|||
|
||||
var div = getElement( "static_note_" + note_id );
|
||||
|
||||
if ( div )
|
||||
if ( div ) {
|
||||
if ( revision && div.editor && div.editor.revision != revision )
|
||||
return null;
|
||||
|
||||
return div.editor;
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
|
Reference in New Issue