1
0
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:
Kyle McLean
2023-01-31 19:17:27 -07:00
committed by GitHub
parent 0f83810704
commit 9c4097a26f
13 changed files with 257 additions and 94 deletions

View File

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