I have multiple Ace.js editors on the same page, and I'm willing to set their own set of autocompleted words. Is that something possible?
Here is my failed attempt: http://plnkr.co/edit/GTfRjmdDe4dlOvzYh60C?p=preview
As you can see, the last completer used ( langTools.setCompleters([myCompleter2]);
) overwrite previous one.
=> Is it possible to bind a specific completer/language_tools to a specific editor?
Here was the answer : http://plnkr.co/edit/0gXkJDCmbJyG2Amrwvuf?p=preview
It is possible to bind a completer to an editor. Happy wildguessing.
editor1.completers = [myCompleter1];
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.