* Try to figure out if this component is visible to avoid rendering the code if not necessary.
*/
private boolean isVisible(InputHtml editor){
for(UIComponent parent = editor.getParent(); parent != null ; parent = parent.getParent()){
if( parent instanceof HtmlPanelTab ){
HtmlPanelTab panelTab = (HtmlPanelTab) parent;
HtmlPanelTabbedPane panelTabbedPane = null;
for(UIComponent panelAncestor=panelTab.getParent(); panelAncestor!=null ; panelAncestor=panelAncestor.getParent()){
if( panelAncestor instanceof HtmlPanelTabbedPane ){
panelTabbedPane = (HtmlPanelTabbedPane)panelAncestor;
break;
}
}