BX.focus(BX('bx-filesrc')); }); return BX.PreventDefault(e || window.event); } BX.ready(function() { BX.bind(document.forms.ffilemanedit.apply, 'click', AjaxApply); }); </script> <?php if (COption::GetOptionString('fileman', "use_code_editor", "Y") == "Y") { $forceSyntax = false; $ext = strtolower(CFileMan::GetFileExtension($path)); if ($ext == 'sql') { $forceSyntax = 'sql'; } elseif ($ext == 'js') { $forceSyntax = 'js'; } CCodeEditor::Show(array('textareaId' => 'bx-filesrc', 'height' => 500, 'forceSyntax' => $forceSyntax)); } // $hkInst = CHotKeys::getInstance(); // $arExecs = $hkInst->GetCodeByClassName("admin_file_edit_apply"); // echo $hkInst->PrintJSExecs($arExecs); ?> <?php } require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/epilog_admin.php";