usar tabs acá

This commit is contained in:
f 2021-03-23 11:37:14 -03:00
parent 85efaf988a
commit 3fdbd01b78

View file

@ -278,19 +278,19 @@ function setupEditor (editorEl: HTMLElement): void {
}
document.addEventListener("turbolinks:load", () => {
const flash = document.querySelector<HTMLElement>('.js-flash')
const flash = document.querySelector<HTMLElement>('.js-flash')
if (flash) {
const keys = JSON.parse(flash.dataset.keys || '[]')
if (flash) {
const keys = JSON.parse(flash.dataset.keys || '[]')
switch (flash.dataset.target) {
case 'editor':
switch (flash.dataset.action) {
case 'forget-content':
keys.forEach(forgetContent)
}
}
}
switch (flash.dataset.target) {
case 'editor':
switch (flash.dataset.action) {
case 'forget-content':
keys.forEach(forgetContent)
}
}
}
for (const editorEl of document.querySelectorAll<HTMLElement>('.editor[data-editor]')) {
try {