This commit is contained in:
Rainer Simon 2020-09-12 10:36:17 +02:00
parent 061a37e706
commit d448189c0e
2 changed files with 1 additions and 9 deletions

View File

@ -4,9 +4,6 @@ import Highlighter from './highlighter/Highlighter';
import SelectionHandler from './selection/SelectionHandler'; import SelectionHandler from './selection/SelectionHandler';
import RelationsLayer from './relations/RelationsLayer'; import RelationsLayer from './relations/RelationsLayer';
import RelationEditor from './relations/editor/RelationEditor'; import RelationEditor from './relations/editor/RelationEditor';
import { addPolyfills } from './utils';
addPolyfills(); // For Microsoft Edge
/** /**
* Pulls the strings between the annotation highlight layer * Pulls the strings between the annotation highlight layer
@ -275,11 +272,7 @@ export default class TextAnnotator extends Component {
onAnnotationCreated={this.onCreateOrUpdateAnnotation('onAnnotationCreated')} onAnnotationCreated={this.onCreateOrUpdateAnnotation('onAnnotationCreated')}
onAnnotationUpdated={this.onCreateOrUpdateAnnotation('onAnnotationUpdated')} onAnnotationUpdated={this.onCreateOrUpdateAnnotation('onAnnotationUpdated')}
onAnnotationDeleted={this.onDeleteAnnotation} onAnnotationDeleted={this.onDeleteAnnotation}
onCancel={this.onCancelAnnotation}> onCancel={this.onCancelAnnotation} />
{this.props.children}
</Editor>
} }
{ this.state.selectedRelation && { this.state.selectedRelation &&

View File

@ -1,5 +1,4 @@
import { trimRange, rangeToSelection, enableTouch, getExactOverlaps } from './SelectionUtils'; import { trimRange, rangeToSelection, enableTouch, getExactOverlaps } from './SelectionUtils';
import { isInternetExplorer } from '../utils';
import EventEmitter from 'tiny-emitter'; import EventEmitter from 'tiny-emitter';
const IS_TOUCH = 'ontouchstart' in window || navigator.maxTouchPoints > 0; const IS_TOUCH = 'ontouchstart' in window || navigator.maxTouchPoints > 0;