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

tsmirnov picture tsmirnov  路  4Comments

levi0913 picture levi0913  路  7Comments

avalkowsky picture avalkowsky  路  6Comments

nenadlukic picture nenadlukic  路  6Comments

viridia picture viridia  路  4Comments