我想在我的应用程序中自动聚焦编辑器,但我似乎无法做到这一点.我已成功在文本框上使用自动对焦,但我想使用编辑器来保持应用程序的外观普遍.
任何解决方案都将非常感谢,谢谢.
我的尝试:
@Html.EditorFor(model => model.Description, new { htmlAttributes = new { @class = "form-control" }, autofocus = "" })
Run Code Online (Sandbox Code Playgroud)