1
0
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:
Ian Storm Taylor
2016-06-17 20:02:51 -07:00
parent 1413d57a04
commit 9727a8deb5
5 changed files with 26 additions and 2 deletions

10
examples/basic/index.css Normal file
View File

@@ -0,0 +1,10 @@
html {
background: #eee;
padding: 20px;
}
main {
background: #fff;
padding: 10px;
}

View File

@@ -2,6 +2,7 @@
<head>
<meta charset="utf-8" />
<title>Editor | Basic Example</title>
<link rel="stylesheet" href="index.css">
</head>
<body>
<main></main>

View File

@@ -0,0 +1,10 @@
html {
background: #eee;
padding: 20px;
}
main {
background: #fff;
padding: 10px;
}

View File

@@ -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>

View File

@@ -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 (