Date: prev next · Thread: first prev next last
2016 Archives by date, by thread · List index


On Sat, Jan 30, 2016 at 5:09 PM, Jean-Baptiste Faure
<jbfaure@libreoffice.org> wrote:
Le 30/01/2016 12:40, Christian Lohmaier a écrit :
On Sat, Jan 30, 2016 at 8:39 AM, Jean-Baptiste Faure
<jbfaure@libreoffice.org> wrote:
Le 29/01/2016 18:58, Christian Lohmaier a écrit :
[...]
see the redmine ticker for a snippet you can use as basis for your own buttons.

I just did that for the French website, it works but the translated
buttons do not contain the icons as in the not translated case.

Because you didn't include the characters that make up the icon.. The
template in the redmine ticket includes <i class="fa fa-wrench
fa-2x"></i> for example, this is missing from the one you added to
french site.

I copy&pasted exactly the html block of the redmine ticket. I just tried
again and it appears that the html editor removes strings like "<i
class="fa fa-wrench> fa-2x"></i>"

Ah, I see the problem.

The editor's config for allowed tag has an entry "-em/i[class]" which means

allow em tags and i tags with class attribute, but treat them the the
same and prefer em tag (so <i>something</i> would be saved/passed to
silverstripe as <em>something</em>. The leading "-" means to ignore
empty elements. as so <i class="fa fa-wrench fa-2x"></i> will become
<em></em> and since it is empty removed completely.

so the solution is to use <span class="fa fa-wrench
fa-2x">&nbsp;</span> instead - the class specification tells use
font-awesome, and use fa-wrench icon, in double-size (that will result
in a css rule that prepends the character representing the symbol
(U+f0ad) in the font, the non-break spece on the one hand to add some
padding between symbol and label, and of course also to not result in
an empty element that would a also get removed..

I'll update the comment in the redmine ticket. accordingly.

ciao
Christian

-- 
To unsubscribe e-mail to: website+unsubscribe@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/website/
All messages sent to this list will be publicly archived and cannot be deleted

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.