Loading ...
Sorry, an error occurred while loading the content.

Re: rte: change fontsize spin control to a select

Expand Messages
  • mettatest
    Thanks! The only change I made is that I set Normal to be the displayed default, like this: myEditor._defaultToolbar.buttons[0].buttons[1] = { type:
    Message 1 of 3 , Jul 30, 2008
    • 0 Attachment
      Thanks! The only change I made is that I set 'Normal' to be the
      displayed default, like this:

      myEditor._defaultToolbar.buttons[0].buttons[1] = {
      type: 'select', label: 'Normal', value: 'fontsize2',
      disabled: true,
      menu: [
      { text: 'X-Small' },
      { text: 'Small' },
      { text: 'Normal', checked: true },
      { text: 'Large' },
      { text: 'X-Large' }
      ]
      };


      --- In ydn-javascript@yahoogroups.com, Dav Glass <dav.glass@...> wrote:
      >
      > This example should help:
      > http://blog.davglass.com/files/yui/editor40/
      >
      > Dav
      >
      > Dav Glass
      > dav.glass@...
      > blog.davglass.com
      >
      >
      >
      >
      > + Windows: n. - The most successful computer virus, ever. +
      > + A computer without a Microsoft operating system is like a dog
      > without bricks tied to its head +
      > + A Microsoft Certified Systems Engineer is to computing what a
      > McDonalds Certified Food Specialist is to fine cuisine +
      >
      >
      >
      > ----- Original Message ----
      > From: mettatest <mettatest@...>
      > To: ydn-javascript@yahoogroups.com
      > Sent: Wednesday, July 30, 2008 1:36:45 PM
      > Subject: [ydn-javascript] rte: change fontsize spin control to a select
      >
      > My fontsize spin control looks ugly next to my fontname standard html
      > select. I would like to change the fontsize spin control to a
      > standard html select.
      >
      > In the custom toolbar, I tried changing
      >
      > { type: 'spin', label: '13', value: 'fontsize', range: [ 9, 35 ],
      > disabled: true }
      >
      > to
      >
      > { type: 'select', label: '13', value: 'fontsize', disabled: true,
      > menu: [
      > { text: 10 },
      > { text: 13, checked: true },
      > { text: 20 }
      > ]
      > }
      >
      > and also to
      >
      > { type: 'select', label: '13', value: 'fontsize', disabled: true,
      > menu: [
      > { text: '10' },
      > { text: '13', checked: true },
      > { text: '20' }
      > ]
      > }
      >
      >
      > but the control now does not work (it does not change the font size,
      > nor does it update when I change my selection).
      >
      > How can I accomplish this?
      >
      >
      >
      > ------------------------------------
      >
      > Yahoo! Groups Links
      >
      >
      >
      > http://docs.yahoo.com/info/terms/
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.