mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-31 10:51:44 +02:00
Simplify implementation of custom editor styling (#5278)
* Switch back to using inline styles for default editor styles * Add example page and test for editor styling * Add section in docs for editor styling * Add test for editor height being set to placeholder height * Add changeset
This commit is contained in:
@@ -78,3 +78,14 @@ iframe {
|
||||
[data-slate-editor] > * + * {
|
||||
margin-top: 1em;
|
||||
}
|
||||
|
||||
.fancy {
|
||||
background-color: rgb(218, 225, 255);
|
||||
padding: 40px;
|
||||
font-size: 20px;
|
||||
min-height: 150px;
|
||||
outline: 3px dashed rgb(0, 94, 128);
|
||||
border-radius: 20px;
|
||||
outline-offset: -20px;
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
|
Reference in New Issue
Block a user