Add a simple editor based on contenteditable

This commit is contained in:
Kijin Sung 2020-07-08 15:34:04 +09:00
parent ece4ce90c2
commit a2c763661c
5 changed files with 221 additions and 0 deletions

View file

@ -0,0 +1,28 @@
.rx_simpleeditor {
width: 100%;
min-height: 60px;
box-sizing: border-box;
resize: vertical;
overflow-y: auto;
&.light {
border: 1px solid #c4c4c4;
background: #fff;
padding: 10px;
}
&.dark {
border-color: #111;
background: #333;
color: #fff;
}
iframe {
max-width: 100%;
padding: 5px 0;
}
img {
max-width: 50%;
padding: 5px 0;
}
img.thumbnail {
max-width: 160px;
}
}