[SOLVED] Uncaught TypeError: Cannot read property 'allimageindexdata' of undefined

Last post 01-15-2014, 8:52 AM by Kenneth. 1 replies.
Sort Posts: Previous Next
  •  01-14-2014, 8:33 AM 78761

    [SOLVED] Uncaught TypeError: Cannot read property 'allimageindexdata' of undefined

    I get the following error whenever I click of splitclick a splitbutton:

    Uncaught TypeError: Cannot read property 'allimageindexdata' of undefined .

    It didn't say this before and I didn't change anything I can figure out that corresponds to this error.
    Does anyone knows where this comes from?

    Apparently self._config is "undefined", but I realy didn't change any functionality there. 

     

    With kind regards,

    Marvin Brouwer. 

     

    -- EDIT --

     

    I found out a javascript error occured in a function wich was located inside of the "_toolbartemplate.xml" inside of an "update_statusui" definition.
    For who's interested the faulty code was:

    1.    
    2. if (nodes[0].GetName().toString().toLowerCase() == "smallcaps" || root.GetName().toString().toLowerCase() == "smallcaps") {  
    3.     self.set_checked(true);  
    4. }  
    5. else {  
    6.     self.set_checked(false);  
    7. }  

    I changed it into:

    1. if (!! root && root.GetName().toString().toLowerCase() == "smallcaps") {  
    2.      self.set_checked(true);  
    3. }  
    4. else if (!! nodes[0] && nodes[0].GetName().toString().toLowerCase() == "smallcaps") {  
    5.      self.set_checked(true);  
    6. }  
    7. else {  
    8.      self.set_checked(false);  
    9. }  

  •  01-15-2014, 8:52 AM 78769 in reply to 78761

    Re: [SOLVED] Uncaught TypeError: Cannot read property 'allimageindexdata' of undefined

    Hi marvin,

     

    Which  splitclick and splitbutton you are testing? It is a part of the Rich TextEditor? Or is your custom function?

     

    Do you get the same problem on http://richtexteditor.com/demo/? If yes, please show me the full steps to reproduce this issue, so we can check it. 

     

    By the way, if the online demo works for you, I suggest you download the latest build and try agian.

     

    latest build download url: http://richtexteditor.com/download/richtexteditor.rar 

     

    Regards,

     

    Ken 

View as RSS news feed in XML