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

YUI Rich Text Editor, remove toolbar elements

Expand Messages
  • Alexandre Boudreault-Ferland
    Hello, using YUI Rich Text Editor, is there a way to remove some toolbar elements like the label Text Editing Tools , the collapsing control or the small
    Message 1 of 3 , Mar 30, 2009
    • 0 Attachment
      Hello,

      using YUI Rich Text Editor, is there a way to remove some toolbar elements like the label "Text Editing Tools", the collapsing control or the small labels on top of the controls like "Font Name and Size".

      Thanks,
      Alex
    • Dav Glass
      Alex -- You can set the titlebar, collapse and grouplabels attributes to false: http://developer.yahoo.com/yui/editor/#toolbar
      Message 2 of 3 , Mar 30, 2009
      • 0 Attachment
        Alex --

        You can set the titlebar, collapse and grouplabels attributes to false:
        http://developer.yahoo.com/yui/editor/#toolbar
        http://developer.yahoo.com/yui/docs/YAHOO.widget.Toolbar.html#config_titlebar
        http://developer.yahoo.com/yui/docs/YAHOO.widget.Toolbar.html#config_collapse
        http://developer.yahoo.com/yui/docs/YAHOO.widget.Toolbar.html#config_grouplabels

        Does that help?
        Dav

        --
        Dav Glass
        davglass@...
        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 +



        On Mon, Mar 30, 2009 at 1:47 PM, Alexandre Boudreault-Ferland
        <alexbf@...> wrote:
        > Hello,
        >
        > using YUI Rich Text Editor, is there a way to remove some toolbar elements
        > like the label "Text Editing Tools", the collapsing control or the small
        > labels on top of the controls like "Font Name and Size".
        >
        > Thanks,
        > Alex
        >
        >
      • Alexandre Boudreault-Ferland
        Nice, thanks Dav. It works! For the readers infos, I built the toolbar literal to have the exact toolbar of the SimpleEditor except the labels : toolbar: {
        Message 3 of 3 , Mar 31, 2009
        • 0 Attachment
          Nice, thanks Dav. It works!

          For the readers infos, I built the toolbar literal to have the exact toolbar of the SimpleEditor except the labels :

          toolbar: {
          titlebar: false,
          grouplabels: false,
          buttons: [
          { group: 'textstyle',
          buttons: [
          { type: 'select', label: 'Arial', value: 'fontname', disabled: true,
          menu: [
          { text: 'Arial', checked: true },
          { text: 'Arial Black' },
          { text: 'Comic Sans MS' },
          { text: 'Courier New' },
          { text: 'Lucida Console' },
          { text: 'Tahoma' },
          { text: 'Times New Roman' },
          { text: 'Trebuchet MS' },
          { text: 'Verdana' }
          ]
          },
          { type: 'spin', label: '13', value: 'fontsize', range: [ 9, 75 ], disabled: true },
          { type: 'separator' },
          { type: 'push', label: 'Bold', value: 'bold' },
          { type: 'push', label: 'Italic', value: 'italic' },
          { type: 'push', label: 'Underline', value: 'underline' },
          { type: 'push', label: 'Strikethrough', value: 'strikethrough' },
          { type: 'separator' },
          { type: 'color', label: 'Font Color', value: 'forecolor', disabled: true },
          { type: 'color', label: 'Background Color', value: 'backcolor', disabled: true },
          { type: 'separator' },
          { type: 'push', label: 'Unordered list', value: 'insertunorderedlist' },
          { type: 'push', label: 'Ordered list', value: 'insertorderedlist' },
          { type: 'separator' },
          { type: 'push', label: 'HTML Link', value: 'createlink' },
          { type: 'push', label: 'Insert image', value: 'insertimage' }
          ]
          }
          ]
          }



          --- In ydn-javascript@yahoogroups.com, Dav Glass <davglass@...> wrote:
          >
          > Alex --
          >
          > You can set the titlebar, collapse and grouplabels attributes to false:
          > http://developer.yahoo.com/yui/editor/#toolbar
          > http://developer.yahoo.com/yui/docs/YAHOO.widget.Toolbar.html#config_titlebar
          > http://developer.yahoo.com/yui/docs/YAHOO.widget.Toolbar.html#config_collapse
          > http://developer.yahoo.com/yui/docs/YAHOO.widget.Toolbar.html#config_grouplabels
          >
          > Does that help?
          > Dav
          >
          > --
          > Dav Glass
          > davglass@...
          > 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 +
          >
          >
          >
          > On Mon, Mar 30, 2009 at 1:47 PM, Alexandre Boudreault-Ferland
          > <alexbf@...> wrote:
          > > Hello,
          > >
          > > using YUI Rich Text Editor, is there a way to remove some toolbar elements
          > > like the label "Text Editing Tools", the collapsing control or the small
          > > labels on top of the controls like "Font Name and Size".
          > >
          > > Thanks,
          > > Alex
          > >
          > >
          >
        Your message has been successfully submitted and would be delivered to recipients shortly.