gricceri
30 Jul 2007, 5:02 PM
Hi all,
i create a form with 3 HtmlEditor and inspecting the code with firbug I noticed the the toolbar buttons underlying element has the same id.
This could cause problems like the following:
//Inside the createToolbar
var customBtn = btn('myCustomId', false, myCustomHandler );
//imagine an internal cusotm dialog that popup when i press on
//my customBtn
customDialog.show(customBtn.getEL());
from wich button the dialog appears if we have 3 elements with the same id ??
I solved thi issue appending to the toolbar button id the editor.id as prefix, but this needed to override some private function to make editor works right.
i create a form with 3 HtmlEditor and inspecting the code with firbug I noticed the the toolbar buttons underlying element has the same id.
This could cause problems like the following:
//Inside the createToolbar
var customBtn = btn('myCustomId', false, myCustomHandler );
//imagine an internal cusotm dialog that popup when i press on
//my customBtn
customDialog.show(customBtn.getEL());
from wich button the dialog appears if we have 3 elements with the same id ??
I solved thi issue appending to the toolbar button id the editor.id as prefix, but this needed to override some private function to make editor works right.