mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-12 10:14:02 +02:00
add default example css
This commit is contained in:
10
examples/basic/index.css
Normal file
10
examples/basic/index.css
Normal file
@@ -0,0 +1,10 @@
|
||||
|
||||
html {
|
||||
background: #eee;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
main {
|
||||
background: #fff;
|
||||
padding: 10px;
|
||||
}
|
@@ -2,6 +2,7 @@
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>Editor | Basic Example</title>
|
||||
<link rel="stylesheet" href="index.css">
|
||||
</head>
|
||||
<body>
|
||||
<main></main>
|
||||
|
10
examples/plaintext/index.css
Normal file
10
examples/plaintext/index.css
Normal file
@@ -0,0 +1,10 @@
|
||||
|
||||
html {
|
||||
background: #eee;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
main {
|
||||
background: #fff;
|
||||
padding: 10px;
|
||||
}
|
@@ -1,7 +1,8 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>Editor | Basic Example</title>
|
||||
<title>Editor | Plaintext Example</title>
|
||||
<link rel="stylesheet" href="index.css">
|
||||
</head>
|
||||
<body>
|
||||
<main></main>
|
||||
|
@@ -121,7 +121,9 @@ class Content extends React.Component {
|
||||
.map(node => this.renderNode(node))
|
||||
|
||||
const style = {
|
||||
whiteSpace: 'pre-wrap' // preserve adjacent whitespace and new lines
|
||||
outline: 'none', // prevent the default outline styles
|
||||
whiteSpace: 'pre-wrap', // preserve adjacent whitespace and new lines
|
||||
wordWrap: 'break-word' // allow words to break if they are too long
|
||||
}
|
||||
|
||||
return (
|
||||
|
Reference in New Issue
Block a user