Steven
Novembre 29, 2018, 12: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 « J'aime »
AndreaG
(Andrea Genini)
Janvier 3, 2019, 8: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 « J'aime »
AndreaG
(Andrea Genini)
Janvier 3, 2019, 8:13
110
After Reply, the text appear correctly first, but after 1-2 seconds the line spacing between the two paragraphs collapses.
1 « J'aime »
Steven
Janvier 3, 2019, 9: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 « J'aime »
AndreaG
(Andrea Genini)
Janvier 3, 2019, 9:40
112
Hi Steven.
No, it doesn’t work. After rebuilding HTML line spacing disappears after a fraction of a second.
AndreaG
(Andrea Genini)
Janvier 3, 2019, 10:13
113
My fault! After rebuilding app it works. Thank you Steven.
I love this plugin.
1 « J'aime »
AndreaG
(Andrea Genini)
Janvier 20, 2019, 2: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
Janvier 20, 2019, 3: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)
Janvier 20, 2019, 4: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 « J'aime »
Steven
Janvier 20, 2019, 5: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 « J'aime »
Quelle est la méthode recommandée pour annuler un float à gauche ou à droite ?
L’application de “clear:both;” dans une balise div ne semble pas fonctionner.
Avez-vous également des conseils pour flotter ou centrer une intégration YouTube ?
Steven
Septembre 3, 2019, 7:50
119
Je peux créer un bbcode clair, je l’ai fait sur une version personnalisée de ce plugin, je l’ajouterai à la version officielle.
Ce sera [floatc][/floatc], avec un code CSS clear: both associé.
edit :
committed 08:03PM - 03 Sep 19 UTC
It will add a clear:both code to make clean floating elements
Concernant l’intégration YouTube, vous pouvez essayer d’ajouter une ligne entre les bbcodes et le lien.
Cela devrait fonctionner dans l’aperçu et dans le message rendu.
1 « J'aime »
Bank_Live
(Bank Live)
Septembre 11, 2019, 1:22
120
Erreur de mise en page mobile
Steven
Septembre 11, 2019, 9:00
121
Je ne vois pas exactement le problème, pouvez-vous préciser un peu, s’il vous plaît ?
Bank_Live
(Bank Live)
Septembre 13, 2019, 4:47
122
Je veux dire des outils publiés en dehors.
1 « J'aime »
Steven
Septembre 13, 2019, 8:05
123
Édit : Ah, je vois ce qui ne va pas, je vais le corriger immédiatement, vérifiez les mises à jour @Bank_Live
Je dois modifier le CSS qui cause ce problème.
Édit : C’est corrigé maintenant, merci pour le signalement !
1 « J'aime »
xiasummer
(xiasummer)
Septembre 27, 2019, 10:45
124
Il semble que
discourse-formatting-toolbar
ne fonctionne plus.
Je l’ai installé et lancé, mais rien ne s’est produit. J’ai actualisé la page web, toujours rien. J’ai activé le bouton de couleur, mais rien ne s’est produit.
1 « J'aime »
Steven
Septembre 27, 2019, 12:40
125
Quelle version de Discourse utilisez-vous ?
Je vérifierai dès que possible, mais il ne semble pas y avoir de commit sur Discourse susceptible de casser le plugin.
1 « J'aime »
Steven
Septembre 27, 2019, 7:17
126
Je viens de vérifier, aucun problème ici.
Quel plugin avez-vous ?
Ajoutez-vous un code couleur hexadécimal dans le bbcode ? Par exemple : [color=#ff3300]Texte[/color]
1 « J'aime »
xiasummer
(xiasummer)
Septembre 29, 2019, 2:43
127
installé
2.4.0.beta4
(8adec48b33 )
Étrange, la barre d’outils de mise en forme semble ne pas être activée,
Pourtant, j’aurais dû l’activer