[ 5 posts ]

Arvind Singh Pal

  • Username: arvindpal05
  • Joined: Thu Jan 19, 2012 1:04 am
  • Posts: 20
  • IRC: Arvind
  • Offline
  • Profile
Tags:

YUI RTE fontsize

Post Posted: Mon Feb 13, 2012 5:07 am
+0-
Hi,

I just customized font size from spinner to selection and i want a way to make this list in this fornmat

8 px
12 px
24 px

....

Can any one please help me do achieve this

Thanks

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
Tags:

Re: YUI RTE fontsize

Post Posted: Mon Feb 13, 2012 8:10 am
+0-
This example shows how you could do it:

http://new.davglass.com/files/yui/editor40/

Arvind Singh Pal

  • Username: arvindpal05
  • Joined: Thu Jan 19, 2012 1:04 am
  • Posts: 20
  • IRC: Arvind
  • Offline
  • Profile

Re: YUI RTE fontsize

Post Posted: Mon Feb 13, 2012 7:14 pm
+0-
my requirement is ,i want to change font style in drop down list itself in above manner.

i hope i am clear now

Thanks

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
Tags:

Re: YUI RTE fontsize

Post Posted: Tue Feb 14, 2012 5:34 am
+0-
Yes, very clear. Did you even look at the example? It shows how to create a font size drop down. It may show text sizes, but it's the same principle.

Arvind Singh Pal

  • Username: arvindpal05
  • Joined: Thu Jan 19, 2012 1:04 am
  • Posts: 20
  • IRC: Arvind
  • Offline
  • Profile
Tags:

Re: YUI RTE fontsize

Post Posted: Thu Feb 16, 2012 8:49 pm
+0-
Hi Dav,

I checked this example even i am using same example to create font selection drop-down.

now i am giving font-size property and size but not working as -

Code:
    myEditor._defaultToolbar.buttons[0].buttons[1] = {
        type: 'select', label: 'Normal', value: 'fontsize2', disabled: false,
            menu: [
                { text: '8 px' ,size: '24px' },
      { text: '9 px' },
      { text: '10 px' },
                { text: '11 px' },
      { text: '12 px' },
      { text: '14 px' },
                { text: '16 px' },
                { text: '20 px' },
                { text: '24 px' }
            ]
    };


Dav may be i am doing something wrong please guide me :(

Thanks
  [ 5 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