This project has moved. For the latest updates, please go here.

HTML1114 error with custom buttons

Jun 29, 2012 at 10:35 AM

Hi, 

When i click on my custom buttons IE throws HTML1114 error. Button does the action correctly but After that mouse selector does not work properly on any other inputs. 

 $("#text_area").htmlarea({ toolbar: [
    		                                     ["bold", "italic", "underline" ],
    		                                     [{
    		                                         css:"custom_button_standard_bas",
    		                                         text: "ttexttt",
    		                                         action: function(btn) {
    		                                     
    		                                    	this.pasteHTML("ADD1");
    		                                             
    		                                         }
    		                                     },{
    		                                           css:"custom_button_standard_bit",
    		                                         text: "textttt",
    		                                         action: function(btn) {
    		                                        
    		                                    	this.pasteHTML($("ADD2");
    		                                             
    		                                         }
    		                                     }]
    		                          
    		                                 ]}); 

I use a hidden textarea for the editor. When user double clicks on the form textarea a modal popup opens than the editor loads. When modal closes I dispose the editor. I don't know what's with the custom buttons ?

I would appreciate any kind of help :)