How to load ace editor

后端 未结 4 1715
半阙折子戏
半阙折子戏 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:33

    I know this won't answer your question exactly but I'm writing this for people who land on this page and have the same problem where

    
        Header set Access-Control-Allow-Origin "*"
        Header set Access-Control-Allow-Credentials: "true"
    
    

    or

    editor.getSession().setUseWorker(false);
    

    don't work.

    I had the same issue on Chrome. I tested my site in Firefox and Opera and it worked as expected. I kept getting Uncaught RangeError: Maximum call stack size exceeded errors when loading the page.

    The solution was to empty Chrome's cache and it worked again. Even a control/command + shift + r or control + F5 wouldn't work. I literally had to go into the settings and empty the cache.

    Again, I know this only partially relevant but this is for other who land on this page!

提交回复
热议问题