Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Using CSS classes in the editor

Our old forums are still available as a read-only archive.

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

Page: 1
Go to End
Author Topic: 1284 Views
  • mattisimo
    Avatar
    Community Member
    9 Posts

    Using CSS classes in the editor Link to this post

    Hi,

    I've been looking at the site editing demo video and SilverStripe looks really good although I haven't noticed the ability to apply CSS classes to the content without the need to go into HTML mode and manually add the class.

    Is there a way to hook up a stylesheet to the editor so that an end user could say highlight some text and assign a class important and it surrounds it with a div or span with that class or adds the class to the container if it is a paragraph for example?

    If not, do you think that this is a useful bit of functionality or was it intentionally left out? How would you go about allowing users a bit more formatting freedom that just using heading tags etc?

    Thanks,

    Matt

  • Liam
    Avatar
    Community Member
    470 Posts

    Re: Using CSS classes in the editor Link to this post

    Download the latest SVN copy and play around with that. The next release 2.3 has upgraded tiny_mce to the latest version and makes doing this type of thing easier. I know what you're asking is a very brought up question, and is suppose to be made easier with the next release of SS.

    2.3 should be out by the end of Nov. the last I read.

  • Willr
    Avatar
    Forum Moderator
    5490 Posts

    Re: Using CSS classes in the editor Link to this post

    Yea if you download the latest daily build or trunk via subversion it has a cool feature were it parses your typography.css file for class's and builds a dropdown list of available class's for use.

  • jam13
    Avatar
    121 Posts

    Re: Using CSS classes in the editor Link to this post

    Now that _is_ a cool feature.

  • Liam
    Avatar
    Community Member
    470 Posts

    Re: Using CSS classes in the editor Link to this post

    Nice. Glad this is finally in. I know it was possible with the older version of tinymce, as a different CMS I use has it as a feature.

    But hey, I'm just stoked it's in now

    1284 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.