Skip to content

Commit

Permalink
saving progress
Browse files Browse the repository at this point in the history
  • Loading branch information
Pietro Passarelli committed Mar 12, 2020
1 parent d974cfe commit e9f62fc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/components/timed-text-editor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,9 @@ class TimedTextEditor extends React.Component {
this.props.transcriptData,
this.props.sttJsonType
);
this.setState({ originalState: convertToRaw(convertFromRaw(blocks)) });
// TODO: did we need to convertToRaw(convertFromRaw()) ? commenting out for now
// this.setState({ originalState: convertToRaw(convertFromRaw(blocks)) });
this.setState({ originalState: blocks });
this.setEditorContentState(blocks);
}
}
Expand All @@ -187,6 +189,7 @@ class TimedTextEditor extends React.Component {
// click on words - for navigation
// eslint-disable-next-line class-methods-use-this
handleDoubleClick = event => {
console.log(event)
// nativeEvent --> React giving you the DOM event
let element = event.nativeEvent.target;
// find the parent in Word that contains span with time-code start attribute
Expand Down

0 comments on commit e9f62fc

Please sign in to comment.