Steven
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 إعجابات
AndreaG
(Andrea Genini)
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)
AndreaG
(Andrea Genini)
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)
Steven
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)
AndreaG
(Andrea Genini)
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)
3 يناير 2019، 10:13م
113
My fault! After rebuilding app it works. Thank you Steven.
I love this plugin.
إعجاب واحد (1)
AndreaG
(Andrea Genini)
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
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)
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)
Steven
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)
ما هي الطريقة الموصى بها لإلغاء تعويم العنصر من اليمين أو اليسار؟
يبدو أن استخدام “clear:both;” داخل وسم div لا يعمل
أيضًا، أي نصائح حول تعويم أو توسيط تضمين يوتيوب؟
Steven
3 سبتمبر 2019، 7:50م
119
يمكنني إنشاء bbcode واضح، لقد قمت بذلك في نسخة مخصصة من هذا الإضافة، وسأضيفه إلى النسخة الرسمية.
سيكون على الشكل [floatc][/floatc]، مع كود CSS clear: both مرفق به.
تعديل:
committed 08:03PM - 03 Sep 19 UTC
It will add a clear:both code to make clean floating elements
بخصوص تضمين يوتيوب، يمكنك تجربة إضافة سطر فارغ بين أكواد bbcode والرابط.
يجب أن يعمل ذلك في المعاينة وفي المنشور النهائي.
إعجاب واحد (1)
Bank_Live
(Bank Live)
11 سبتمبر 2019، 1:22ص
120
خطأ في تخطيط الهاتف المحمول
Steven
11 سبتمبر 2019، 9:00م
121
لا أرى المشكلة بوضوح، هل يمكنك التوضيح قليلاً من فضلك؟
Bank_Live
(Bank Live)
13 سبتمبر 2019، 4:47ص
122
أقصد أدوات تُنشر خارج الموقع.
إعجاب واحد (1)
Steven
13 سبتمبر 2019، 8:05م
123
تعديل: آه، فهمت ما الخطأ، سأصلحه فورًا، راجع التحديثات @Bank_Live
أحتاج إلى تعديل CSS الذي تسبب في هذه المشكلة.
تعديل: تم الإصلاح الآن، شكرًا لتقريرك!
إعجاب واحد (1)
xiasummer
(xiasummer)
27 سبتمبر 2019، 10:45ص
124
يبدو أن
discourse-formatting-toolbar
لا يعمل الآن.
لقد قمت بتثبيته وتشغيله، لكن لم يحدث شيء. حتى بعد تحديث صفحة الويب، لا يزال لا يحدث شيء. لقد قمت بتفعيل زر الألوان، لكن لم يحدث شيء.
إعجاب واحد (1)
Steven
27 سبتمبر 2019، 12:40م
125
ما إصدار Discourse الذي تستخدمه؟
سأتحقق في أقرب وقت ممكن، لكن لا يبدو أن هناك أي التزام في Discourse قد يكسر الإضافة.
إعجاب واحد (1)
Steven
27 سبتمبر 2019، 7:17م
126
لقد تحققت للتو، لا توجد مشكلة هنا
ما هي الإضافة التي تستخدمها؟
هل تضيف كود لون سداسي العشري في الـ bbcode؟ مثال: [color=#ff3300]نص[/color]
إعجاب واحد (1)
xiasummer
(xiasummer)
29 سبتمبر 2019، 2:43ص
127
تم التثبيت
2.4.0.beta4
(8adec48b33 )
غريب، يبدو أن شريط أدوات التنسيق غير مفعل،
ولكن، كان يجب أن يكون مفعلًا