5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-07-04 00:05:45 +00:00

ver lo mismo en la vista previa

This commit is contained in:
f 2020-11-17 19:18:53 -03:00
parent bdaf3f1604
commit c01284bb5e
3 changed files with 8 additions and 8 deletions

View file

@ -479,6 +479,8 @@ function stringifyAllowedStyle (element) {
document.addEventListener("turbolinks:load", () => {
for (const editorEl of document.querySelectorAll(".editor")) {
if (!editorEl.querySelector('.editor-toolbar')) continue
setupEditor(editorEl)
}
})

View file

@ -50,14 +50,12 @@
}
}
.editor-content {
word-wrap: break-word;
div[data-align="left"] { text-align: left; }
div[data-align="center"] { text-align: center; }
div[data-align="right"] { text-align: right; }
word-wrap: break-word;
div[data-align="left"] { text-align: left; }
div[data-align="center"] { text-align: center; }
div[data-align="right"] { text-align: right; }
min-height: 480px;
}
min-height: 480px;
*[data-editor-loading] {
opacity: 0.5;

View file

@ -33,5 +33,5 @@
- @post.attributes.each do |attr|
- next if @post.send(attr).front_matter?
%section{ id: attr, dir: dir }
%section.editor{ id: attr, dir: dir }
= @post.send(attr).to_s.html_safe