当前位置: 首页 > 文档资料 > At.js 开发文档 >

usage with Redactor.js editor

优质
小牛编辑
136浏览
2023-12-01

When using At.js with Redactor, Redactors initCallback is what you need:

$('#redactor-item').redactor({
  initCallback: function(){
    $(this.$editor).atwho({
      at: "@",
      data: names
    });
  }
});