Added API method to get current annotation editing state
This commit is contained in:
parent
198a66f6ed
commit
6f68fc63fd
|
@ -106,6 +106,9 @@ export default class Editor extends Component {
|
||||||
return meta;
|
return meta;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getCurrentAnnotation = () =>
|
||||||
|
this.state.currentAnnotation.clone();
|
||||||
|
|
||||||
/** Shorthand **/
|
/** Shorthand **/
|
||||||
updateCurrentAnnotation = (diff, saveImmediately) => this.setState({
|
updateCurrentAnnotation = (diff, saveImmediately) => this.setState({
|
||||||
currentAnnotation: this.state.currentAnnotation.clone(diff)
|
currentAnnotation: this.state.currentAnnotation.clone(diff)
|
||||||
|
|
Loading…
Reference in New Issue