Angularjs 如何使textAngular在默认情况下处于活动状态?

Angularjs 如何使textAngular在默认情况下处于活动状态?,angularjs,textangular,Angularjs,Textangular,我使用textAngular,它在页面加载时处于非活动状态,只有在用户单击输入时才变为活动状态。这意味着它的所有按钮,例如“插入视频”将被禁用,直到所有文本输入都不会被聚焦 有没有办法使文本在默认情况下处于启用状态或始终处于启用状态?document.getElementById(“”.focus(); document.getElementById("<id of the element you want to focus on>").focus(); 如果不起作用,请尝试应用

我使用textAngular,它在页面加载时处于非活动状态,只有在用户单击输入时才变为活动状态。这意味着它的所有按钮,例如“插入视频”将被禁用,直到所有文本输入都不会被聚焦

有没有办法使文本在默认情况下处于启用状态或始终处于启用状态?

document.getElementById(“”.focus();
document.getElementById("<id of the element you want to focus on>").focus();
如果不起作用,请尝试应用超时:

setTimeout(function() { document.getElementById("<id of the element you want to focus on>").focus(); }, 2000);
setTimeout(function(){document.getElementById(“”.focus();},2000);
此外,如果您和我们大多数人一样使用jQuery,请尝试将.focus()与我们的经典行结合使用:

$(document).ready(function(){
document.getElementById("<id of the element you want to focus on>").focus();
})
$(文档).ready(函数(){
document.getElementById(“”.focus();
})

我已经试过了,不起作用。textAngular在鼠标向下时启用并检查event.isTrusted。编辑插件代码不是一个选项,project会自动部署并从github下载代码。