How to load ace editor

后端 未结 4 1717
半阙折子戏
半阙折子戏 2021-02-12 22:17

I am trying to use the Ace code editor library (http://ace.ajax.org/), but im having trouble. According to the embedding guide, this should load the required js files from Amazo

4条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-12 22:21

    The right answer is in the first comment:

    Try this editor.getSession().setUseWorker(false); and see if it still fails. Local won't work because as it's dependent on other online relative files. That's why the relative GET's are failing. I'm not getting any errors using the first online link tho. Maybe something else is interrupting your javascript? Can you show a fuller version of your HTML/JS file?

    - Allendar, Mar 24 at 14:25

提交回复
热议问题