Jump to:

5450 Posts in 1672 Topics by 1197 members

Customising the CMS

SilverStripe Forums » Customising the CMS » How to get rid of font-size when adding bullets in CMS?

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 1129 Views
  • rceee
    Avatar
    Community Member
    18 Posts

    How to get rid of font-size when adding bullets in CMS? Link to this post

    When editing content, if I make an unordered list, I get this code in html:

    <li><span style="font-size: 11px;">text here

    How can I get rid of this span? Better yet, how can I specify that lists created in the CMS have a custom class assigned, like <li class="myclass">?

  • JMagnusson
    Avatar
    Community Member
    29 Posts

    Re: How to get rid of font-size when adding bullets in CMS? Link to this post

    I have the same problem, and I can't find out what's wrong...
    Seems to be no answer here or on the tinymce forum
    /Johan

    EDIT: I have the problem in Chrome (10), byt not in IE (8). The text "<li><span style="font-size: 11px;">...<span></li> is just added in Chrome and not in IE!

    SOLVED: I don't know what was wrong, but when I installed SS again and copied mysite and themes everything worked.

  • Aram
    Avatar
    Community Member
    598 Posts

    Re: How to get rid of font-size when adding bullets in CMS? Link to this post

    Try adding this to your mysite/_config.php

       HtmlEditorConfig::get('cms')->setOption('convert_fonts_to_spans', false);

    Aram

  • JMagnusson
    Avatar
    Community Member
    29 Posts

    Re: How to get rid of font-size when adding bullets in CMS? Link to this post

    Aram: I tried that one too, because I found an old post about that, but nothing happened.
    And I tried to copy the folders cms and sapphire manually from another installation, and that didnĀ“t worked either. I had short of time, so when the new installation worked I left the problem.

    Maybe Chrome just had some cache left, because I had no problem in IE.

    Thanks /Johan

    1129 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.