mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-26 19:56:49 +00:00
Merge "Don't strip HTML attributes from inspected links"
This commit is contained in:
commit
11cd6fab6b
|
@ -150,7 +150,7 @@ ve.ui.AnnotationInspector.prototype.setup = function ( data ) {
|
|||
// Note we don't set the 'all' flag here - any non-annotated content will be annotated on close
|
||||
this.initialAnnotation = this.getMatchingAnnotations( fragment ).get( 0 );
|
||||
this.initialAnnotationHash = this.initialAnnotation ?
|
||||
OO.getHash( this.initialAnnotation ) : null;
|
||||
OO.getHash( this.initialAnnotation.getComparableObject() ) : null;
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -178,7 +178,7 @@ ve.ui.AnnotationInspector.prototype.teardown = function ( data ) {
|
|||
if ( this.initialSelection.isCollapsed() ) {
|
||||
insert = true;
|
||||
}
|
||||
if ( OO.getHash( annotation ) !== this.initialAnnotationHash ) {
|
||||
if ( OO.getHash( annotation.getComparableObject() ) !== this.initialAnnotationHash ) {
|
||||
if ( this.isNewAnnotation ) {
|
||||
undo = true;
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue