# Custom auto-completer of ace editor

**URL:** <https://discourse.nodered.org/t/custom-auto-completer-of-ace-editor/41399>\
**Category:** General\
**Created:** [22 February 2021 06:46 UTC](https://discourse.nodered.org/t/custom-auto-completer-of-ace-editor/41399 "2021-02-22T06:46:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chiche](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/chiche/32/35401_2.png) [@chiche](https://discourse.nodered.org/u/chiche)\
**Post date:** [22 February 2021 06:46 UTC](https://discourse.nodered.org/t/custom-auto-completer-of-ace-editor/41399/1 "2021-02-22T06:46:10Z")

</div>

I have a custom node using editor javascript. I want to customize the auto-completer in my node.  
I modify as below:

```auto
this.editor = function (id, value, defaultValue) {
...
 mode: "ace/mode/javascript",
}
this.editor.completers.push(customEditor);

```

I run well in my node. But one big problem is that the completer in the node [function] editor was changed. How can the custom completer work in my node scope only?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [23 April 2021 06:46 UTC](https://discourse.nodered.org/t/custom-auto-completer-of-ace-editor/41399/2 "2021-04-23T06:46:36Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
