When I try to create a Range object in ace.js, an “Illegal Constructor” error is thrown

前端 未结 4 2151
心在旅途
心在旅途 2020-12-30 10:32

I am trying to create a Range object for the ace.js editor in my code, but it\'s not working. It is failing in a way I can\'t figure out. In the Ace documentati

4条回答
  •  既然无缘
    2020-12-30 10:51

    This solution var Range = ace.acequire('ace/range').Range; works for me!!!

    Full code: https://stackoverflow.com/a/53387989/630169

提交回复
热议问题