Results 1 to 2 of 2

Thread: when use buttonTips it gives an error

  1. #1

    Default Answered: when use buttonTips it gives an error

    Hi, I'm using htmleditor in my app, and in that, I want to change the tooltips for editor buttons,
    but when i use buttonTips conig, it throws an error
    Error :Uncaught TypeError: Cannot read property 'title' of undefined

    here's my code
    Code:
                        {
                            xtype:'htmleditor',
                            value:record.data.examples,
                            height: 400,
                            width: 550,
                            name: 'instructionExample',
                            colspan: 1,
                            enableColors: false,
                            enableFontSize: false,
                            enableFont: false,
                            enableAlignments: false,
                            hasToolbar:false,
                            style:{
                                'margin-left':'10px'
                            },
                            buttonTips: {
                                bold: {
                                    title:'myTitel',
                                    text: 'my text',
                                    cls: 'myclass',
                                },
                                italic: {
                                    
                                    title:'myTitel',
                                    text: 'my text',
                                    cls: 'myclass',
                                },
                                underline: {
                                 
                                    title:'myTitel',
                                    text: 'my text',
                                    cls: 'myclass',
                                }
                                
                            }
                        },
    i'm using this editor in a window

    Will you please advice me what i'm missing.
    Thanks in advance

  2. That is happening because the default buttonTips has more button tips configurations than bold, italic, and underline. You have overridden the default values and they are needed somewhere. Now you can either copy all buttonTips and translate them all, or if you need only bold, italic, and underline for you editor, you should also disable the following editor capaiblities:
    Code:
    enableLinks: false,
    enableLists: false,
    enableSourceEdit: false,

  3. #2
    chramer's Avatar
    Join Date
    Feb 2011
    Location
    Chisinau, Moldova
    Posts
    316
    Answers
    64

    Default

    That is happening because the default buttonTips has more button tips configurations than bold, italic, and underline. You have overridden the default values and they are needed somewhere. Now you can either copy all buttonTips and translate them all, or if you need only bold, italic, and underline for you editor, you should also disable the following editor capaiblities:
    Code:
    enableLinks: false,
    enableLists: false,
    enableSourceEdit: false,

Similar Threads

  1. Replies: 1
    Last Post: 16 Sep 2014, 11:05 AM
  2. htmleditor buttonTips
    By ci11111 in forum Ext: Q&A
    Replies: 1
    Last Post: 31 Mar 2012, 8:55 AM
  3. Replies: 2
    Last Post: 2 Jan 2012, 7:39 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •