Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Content Editor Discussions /

Forum for content editors and CMS users.

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

No text aligning anymore?


Reply


6 Posts   1427 Views

Avatar
Alex S

Community Member, 30 Posts

23 June 2009 at 6:36am

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

Avatar
Alex S

Community Member, 30 Posts

23 June 2009 at 6:38am

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

Avatar
Platypus

Community Member, 43 Posts

26 June 2009 at 3:50am

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

Avatar
Alex S

Community Member, 30 Posts

29 June 2009 at 12:25am

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

Avatar
Alex S

Community Member, 30 Posts

29 June 2009 at 2:17am

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

Avatar
alirobe

Community Member, 35 Posts

30 June 2009 at 1:14am

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)