Editor improvements (#486)

- Make it possible to insert new paragraphs in the article body
- Make it impossible to copy formatted HTML (to make media insertion from markdown code work correctly)

TODO:

- [x] make it possible to escape draft mode
- [x] display errors from the server
- [x] button to go back to the "normal" editor
- [x] Avoid publishing placeholders
This commit is contained in:
Baptiste Gelez
2019-04-06 14:20:12 +01:00
committed by GitHub
parent 38701c8a40
commit 1f7ff62c19
20 changed files with 208 additions and 34 deletions
+1
View File
@@ -273,6 +273,7 @@ main .article-meta {
flex-direction: row-reverse;
background: transparent;
align-items: center;
justify-content: space-between;
button {
flex: 0 0 10em;
font-size: 1.25em;
+13
View File
@@ -74,6 +74,19 @@ header {
}
}
.messages {
& > * {
padding: 1em 20%;
}
p.error {
color: $red;
background: lighten($red, 40%);
margin: 0;
max-width: initial;
}
}
// Only enable label animations on normal screens
@media screen and (min-width: 900px) {
header nav a {