[ 3 posts ]

Justin Cady

  • Username: mousdrvr
  • Joined: Wed Oct 14, 2009 7:24 pm
  • Posts: 28
  • Offline
  • Profile
Tags:

RTE config

Post Posted: Wed Mar 21, 2012 10:05 pm
+0-
Hi Guys,

Ok I am clearly not with the program. I'm trying to alter some stuff in the RTE toolbar. I've read elsewhere that Dave recommends setting display none on elements in there rather than excluding them form the config No problem!! The thing is in a few instances I'm simply trying to alter the label of a button group. These alterations are being ignored. Things like height and width aren't. But if I say, change the 'titlebar' value in my conifg block this has no effect and I get the default string.

I'm going to guess the trick is to actually manipulate these elements after render and before display.
which is no big hassle I've been doing it all over other parts of the RTE for a while now but I'm concerned that I don't know what's happening and might be missing a more elegant and legible ( i.e do it in the config block for all to see ) solution.

Any advice my fine peoples?


As always, thank you for your fine Library!


regards,


Justin

Dav Glass

  • Username: davglass
  • Joined: Thu Aug 28, 2008 9:28 am
  • Posts: 2088
  • Location: Marion, IL, US
  • Twitter: davglass
  • GitHub: davglass
  • Gists: davglass
  • IRC: davglass
  • Offline
  • Profile

Re: RTE config

Post Posted: Thu Mar 22, 2012 5:39 am
+0-
When you instantiate the Editor (just before render) you have access to the `_defaultToolbar` property which contains the config for the Toolbar that will be created. You can modify that as a shortcut:

http://jsfiddle.net/davglass/zqEXv/

Justin Cady

  • Username: mousdrvr
  • Joined: Wed Oct 14, 2009 7:24 pm
  • Posts: 28
  • Offline
  • Profile
Tags:

Re: RTE config

Post Posted: Thu Mar 22, 2012 9:01 am
+0-
Brilliant! Thanks Dave!
  [ 3 posts ]
Display posts from previous:  Sort by  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum