From c04d4f1f7b4c3295f1abd3b1e9b1cd1466e89b9a Mon Sep 17 00:00:00 2001 From: f Date: Thu, 19 Nov 2020 18:54:26 -0300 Subject: [PATCH] pegar desde word --- app/assets/stylesheets/editor.scss | 5 +---- app/views/posts/attributes/_content.haml | 4 ++-- config/locales/en.yml | 3 +++ config/locales/es.yml | 3 +++ 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/app/assets/stylesheets/editor.scss b/app/assets/stylesheets/editor.scss index cbf96ae..a4fc7dc 100644 --- a/app/assets/stylesheets/editor.scss +++ b/app/assets/stylesheets/editor.scss @@ -35,10 +35,7 @@ background: white; } - .editor-aviso-word { - color: red; - display: none; - } + .editor-aviso-word { display: none; } .editor-primary-toolbar, .editor-auxiliary-toolbar { display: block; diff --git a/app/views/posts/attributes/_content.haml b/app/views/posts/attributes/_content.haml index 01ae422..d9395de 100644 --- a/app/views/posts/attributes/_content.haml +++ b/app/views/posts/attributes/_content.haml @@ -75,8 +75,8 @@ %label{ for: 'a-href' }= t('editor.url') %input.form-control{ type: 'url', data: { prop: 'a-href' } }/ - .editor-aviso-word - %p ¡Alto ahí! ¿Estás pegando de word? ... + .editor-aviso-word.alert.alert-info + %p= t('editor.word') .editor-content.form-control.h-auto.mt-1{ contenteditable: 'true' } = metadata.value.html_safe diff --git a/config/locales/en.yml b/config/locales/en.yml index 3d0c9fa..683e044 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -565,6 +565,8 @@ en: underline: Underline mark: Mark a: Link + sup: Superscript + sub: Subscript h1: Heading 1 h2: Heading 2 h3: Heading 3 @@ -589,3 +591,4 @@ en: pdf: Select and upload PDF description: Description for blind people and search engines url: Address + word: "If you're pasting from an hegemonic word processor, please be patient with us, it's not always simple to recover the whole format :)" diff --git a/config/locales/es.yml b/config/locales/es.yml index f3a6dfb..7fae0f5 100644 --- a/config/locales/es.yml +++ b/config/locales/es.yml @@ -581,6 +581,8 @@ es: deleted: Tachado underline: Subrayado mark: Resaltado + sup: Índice + sub: Subíndice a: Vínculo h1: Título 1 h2: Título 2 @@ -606,3 +608,4 @@ es: pdf: Seleccionar y subir archivo PDF description: Descripción para personas no videntes y buscadores url: Dirección + word: "Si estás pegando texto desde un hegemónico editor de texto que empieza con W, por favor tenenos paciencia, no siempre es simple recuperar y respetar todo el formato :)"