Steven
29 Noviembre, 2018 00:07
108
New version available, I fixed the incompatibility of some icons with the latest version of Discourse (that includes FontAwesome 5).
It was easier that I thought, but if you have any issue, let me know
I also changed the icon of the color’s button : instead of the paint brush, we will use the palette. Here are all the icons available:
I think it suits the button better.
If you have a fork on this plugin with custom buttons, the update is pretty easy, you just have to edit your plugin.rb file (example : line 20 to 27 : discourse-formatting-toolbar/plugin.rb at master · MonDiscourse/discourse-formatting-toolbar · GitHub )
You have to register any icon you use. Search for your icon here : Find Icons with the Perfect Look & Feel | Font Awesome
If the icon is in ‘solid’ category, add :
register_svg_icon "fa-icon_name" if respond_to?(:register_svg_icon)
ex : register_svg_icon "fa-underline" if respond_to?(:register_svg_icon)
If the icon is in ‘regular’ category, add
register_svg_icon "far-icon_name" if respond_to?(:register_svg_icon)
ex : register_svg_icon "far-address-book" if respond_to?(:register_svg_icon)
If the icon is in ‘brand’ category, add
register_svg_icon "fab-icon_name" if respond_to?(:register_svg_icon)
ex : register_svg_icon "fab-apple" if respond_to?(:register_svg_icon)
8 Me gusta
AndreaG
(Andrea Genini)
3 Enero, 2019 20:12
109
I just installed the plugin on the v2.2.0.beta7 and i have a problem: line spacing between paragraphs collapse when using text formatting: [right], [left], [center], [justify]
See the following example:
The preview on the right window is correct. But then… see next post
1 me gusta
AndreaG
(Andrea Genini)
3 Enero, 2019 20:13
110
After Reply, the text appear correctly first, but after 1-2 seconds the line spacing between the two paragraphs collapses.
1 me gusta
Steven
3 Enero, 2019 21:30
111
Thanks for the feedback, I pushed a fix. Let me know if it works well
For the previous posts, you might need to do a Rebuild HTML to update the code.
1 me gusta
AndreaG
(Andrea Genini)
3 Enero, 2019 21:40
112
Hi Steven.
No, it doesn’t work. After rebuilding HTML line spacing disappears after a fraction of a second.
AndreaG
(Andrea Genini)
3 Enero, 2019 22:13
113
My fault! After rebuilding app it works. Thank you Steven.
I love this plugin.
1 me gusta
AndreaG
(Andrea Genini)
20 Enero, 2019 14:54
114
I found another bug. After justifying the text there is an additional line spacing. I’m working with V2.2.0.beta8.
Steven
20 Enero, 2019 15:57
115
The behaviour is different from the preview and the cooked post (on preview, it adds the <p> tags for each bbcodes, not on cooked), I don’t really know where it comes from, I don’t know if it’s something I can fix on my part
edit : wait I have an idea, I can fix it in a few hours
AndreaG
(Andrea Genini)
20 Enero, 2019 16:40
116
Hi Steven, if I put only one [right] in the first line and a [/right] at the end of the last line, it works correctly.
1 me gusta
Steven
20 Enero, 2019 17:06
117
I did a little upgrade to prevent this different behaviour between preview and cooked post. I should have thought about that before
I’ll check the source of the bbcodes later, maybe I can do something better than a css fix, but it should be good for now
Thanks for your feedbacks
1 me gusta
¿Cuál es la forma recomendada de limpiar un float a la izquierda o a la derecha?
“clear:both;” en una etiqueta div no parece funcionar
También, ¿algún consejo sobre cómo flotar o centrar un inserto de YouTube?
Steven
3 Septiembre, 2019 19:50
119
Puedo crear un bbcode claro; lo hice en una versión personalizada de este plugin y lo agregaré a la versión oficial.
Será [floatc][/floatc], con un código CSS de clear: both adjunto.
edición:
committed 08:03PM - 03 Sep 19 UTC
It will add a clear:both code to make clean floating elements
En cuanto a la incrustación de YouTube, puedes probar agregando una línea entre los bbcodes y el enlace.
Debería funcionar tanto en la vista previa como en la publicación procesada.
1 me gusta
Bank_Live
(Bank Live)
11 Septiembre, 2019 01:22
120
Error en la disposición móvil
Steven
11 Septiembre, 2019 21:00
121
No termino de ver el problema, ¿podrías aclararlo un poco, por favor?
Bank_Live
(Bank Live)
13 Septiembre, 2019 04:47
122
Me refiero a que las publicaciones de herramientas están fuera.
1 me gusta
Steven
13 Septiembre, 2019 20:05
123
edición: Ah, ya veo qué está mal, lo arreglaré de inmediato, revisa las actualizaciones @Bank_Live
Necesito editar el CSS que está causando este problema.
edición: Ya está arreglado, ¡gracias por reportarlo!
1 me gusta
xiasummer
(xiasummer)
27 Septiembre, 2019 10:45
124
Parece que
discourse-formatting-toolbar
no está funcionando ahora.
Lo he instalado y lo he iniciado, pero no ha ocurrido nada. He recargado la página web y sigue sin pasar nada. He activado el botón de color, pero no ha ocurrido nada.
1 me gusta
Steven
27 Septiembre, 2019 12:40
125
¿En qué versión de Discourse estás?
Lo revisaré lo antes posible, pero no parece haber ningún commit en Discourse que pueda romper el plugin.
1 me gusta
Steven
27 Septiembre, 2019 19:17
126
Acabo de revisar, no hay ningún problema aquí.
¿Qué plugin tienes?
¿Estás agregando un código de color hexadecimal en el bbcode? Por ejemplo: [color=#ff3300]Texto[/color]
1 me gusta
xiasummer
(xiasummer)
29 Septiembre, 2019 02:43
127
instalado
2.4.0.beta4
(8adec48b33 )
Extraño, parece que la barra de herramientas de formato no está activada,
Pero debería haberla activado