*/
protected TemplateEditor getTemplateEditor() {
TemplateEditor templateEditor = _templateEditor;
if (_templateEditor == null && _activeEditor != null) {
ComponentEditorPart cep = (ComponentEditorPart) _activeEditor;
HtmlWodTab hwt = cep.htmlWodTab();
if (hwt != null) {
templateEditor = hwt.templateEditor();
}
}
return templateEditor;