|
|
@ -78,14 +78,14 @@ class Editor extends React.Component {
|
|
|
|
|
|
|
|
|
|
|
|
this.setState(newState)
|
|
|
|
this.setState(newState)
|
|
|
|
|
|
|
|
|
|
|
|
this.isSafari =
|
|
|
|
if (window.navigator) {
|
|
|
|
window.navigator &&
|
|
|
|
this.isSafari =
|
|
|
|
window.navigator.userAgent.indexOf('Safari') !== -1 &&
|
|
|
|
window.navigator.userAgent.indexOf('Safari') !== -1 &&
|
|
|
|
window.navigator.userAgent.indexOf('Chrome') === -1
|
|
|
|
window.navigator.userAgent.indexOf('Chrome') === -1
|
|
|
|
this.isFirefox =
|
|
|
|
this.isFirefox =
|
|
|
|
window.navigator &&
|
|
|
|
window.navigator.userAgent.indexOf('Firefox') !== -1 &&
|
|
|
|
window.navigator.userAgent.indexOf('Firefox') !== -1 &&
|
|
|
|
window.navigator.userAgent.indexOf('Chrome') === -1
|
|
|
|
window.navigator.userAgent.indexOf('Chrome') === -1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
carbonNode = React.createRef()
|
|
|
|
carbonNode = React.createRef()
|
|
|
|