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