Jump to:

513 Posts in 209 Topics by 259 members

Content Editor Discussions

SilverStripe Forums » Content Editor Discussions » No text aligning anymore?

Forum for content editors and CMS users.

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

Page: 1
Go to End
Author Topic: 1335 Views
  • Alex S
    Avatar
    Community Member
    30 Posts

    No text aligning anymore? Link to this post

    Hey,

    I've just installed version 2.3.2 stable and have started checking what's been improved etc. The last time I used Silver Stripe TinyMCE was aligning text using the 'align=' attribute, which isn't XHTML 1.1 valid, so, I tried aligning some text to see if this was still the case. It looks like it doesn't do anything anymore though? The code just has 'p' tags with no indication that the text was ever supposed to have been aligned.

    Is this something I have to add in now?

    Cheers,

    Alex

  • Alex S
    Avatar
    Community Member
    30 Posts

    Re: No text aligning anymore? Link to this post

    Wow, I must be tired, totally didn't see the 'Styles' drop-down. I think I'm going to remove the align buttons so my users don't get confused though.

    Alex

  • Platypus
    Avatar
    Community Member
    43 Posts

    Re: No text aligning anymore? Link to this post

    Hi Alex,
    the 'Styles' drop-down doesn't fix anything for my, I can't make any selection there. Do I need to have something special in my theme/css to use this 'Styles' drop-down menu? The not working text alignment drives me crazy... ;-) I'm thankful for every help or hint!

    Platypus

  • Alex S
    Avatar
    Community Member
    30 Posts

    Re: No text aligning anymore? Link to this post

    The left hand drop-down menu applies a class to the element you're working with (right hand drop-down). You'll have to play around and look at the source code produced to see all the classes but the alignment ones are really straightforward, "left", "right" and "center" so implementing these classes to the elements will make the alignment work.

    Alex

  • Alex S
    Avatar
    Community Member
    30 Posts

    Re: No text aligning anymore? Link to this post

    Turns out that removing the buttons can be done by editing "/jsparty/tiny_mce2/themes/advanced/editor_template_src.js" and commenting the controls out, e.g.

    ..strikethrough : ['striketrough_desc', 'Strikethrough'],
    /* Comment out buttons not required
    justifyleft : ['justifyleft_desc', 'JustifyLeft'],
    justifycenter : ['justifycenter_desc', 'JustifyCenter'],
    justifyright : ['justifyright_desc', 'JustifyRight'],
    justifyfull : ['justifyfull_desc', 'JustifyFull'],
    */
    bullist : ['bullist_desc', 'InsertUnorderedList'],..

    Not sure how correct this is though, seem to be going round in circles with the TinyMCE docs. Currently trying to get 'strikethrough' to work as a class, not getting anywhere fast...

  • alirobe
    Avatar
    Community Member
    35 Posts

    Re: No text aligning anymore? Link to this post

    This seems broken to me. There was a ticket on it for the 2.3.2 release, but as this has already been released, I've moved the ticket up to 2.4.0 alpha.

    I know that doesn't seem optimal - there should probably be a 2.3.3 release or something, but it's not on the roadmap at the moment.

    http://open.silverstripe.com/ticket/4251

    (I'm subscribed to this thread)

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