React-ace: Disable syntax checker

Created on 21 Mar 2016  ·  3Comments  ·  Source: securingsincity/react-ace

I'd like to disable syntax checker as my editor is a partial html editor.
I found two ways to achieve this but I need an access to the editor instance or mode prototype
http://stackoverflow.com/a/13016089/729454
https://groups.google.com/forum/?fromgroups=#!topic/ace-discuss/bOovWtXhtdE

Any suggestion for achieving this?

Most helpful comment

168

this works too

setOptions={{useWorker: false}}

All 3 comments

I found a way to get a reference to the editor instance
https://github.com/securingsincity/react-ace/issues/65

For anyone else that's looking for this, here's a working ES6 code example:

<AceEditor
  mode="css"
  theme="github"
  onLoad={(editor) => {
    editor.getSession().setUseWorker(false)
  }}
/>

168

this works too

setOptions={{useWorker: false}}
Was this page helpful?
0 / 5 - 0 ratings

Related issues

levi0913 picture levi0913  ·  7Comments

burks10 picture burks10  ·  3Comments

dmavrin picture dmavrin  ·  3Comments

kolbinski picture kolbinski  ·  5Comments

danush picture danush  ·  7Comments