mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-01 07:01:12 +00:00
change selection (#2589)
This commit is contained in:
@@ -254,9 +254,7 @@ class DraftReview extends React.Component {
|
||||
}
|
||||
|
||||
getSelectedText = () => {
|
||||
const value = this.refs.diffViewer.value;
|
||||
const native = window.getSelection();
|
||||
const { fragment } = value;
|
||||
const nativeRange = native.getRangeAt(0);
|
||||
let contents = nativeRange.cloneContents();
|
||||
const div = window.document.createElement('div');
|
||||
|
Reference in New Issue
Block a user