mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-23 15:32:59 +02:00
fix to hide the formatting menu in ios
This commit is contained in:
@@ -401,9 +401,15 @@ class Content extends React.Component {
|
|||||||
|
|
||||||
const style = {
|
const style = {
|
||||||
...this.props.style,
|
...this.props.style,
|
||||||
outline: 'none', // prevent the default outline styles
|
// COMPAT: Prevent iOS from showing the BIU formatting menu, which causes
|
||||||
whiteSpace: 'pre-wrap', // preserve adjacent whitespace and new lines
|
// the internal state to get out of sync in weird ways.
|
||||||
wordWrap: 'break-word' // allow words to break if they are too long
|
WebkitUserModify: 'read-write-plaintext-only',
|
||||||
|
// Prevent the default outline styles.
|
||||||
|
outline: 'none',
|
||||||
|
// Preserve adjacent whitespace and new lines.
|
||||||
|
whiteSpace: 'pre-wrap',
|
||||||
|
// Allow words to break if they are too long.
|
||||||
|
wordWrap: 'break-word'
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
Reference in New Issue
Block a user