2

When you type <div> and press enter on the standard ace editor (in html mode) it automatically creates a closing div tag and indents the cursor. You can see it here.

They have disabled it for the kitchen sink which is what I am after.

Is their a simple property setting like

editor.autoIndent = false;
editor.autoComplete = false;
4

1 回答 1

3

you can use editor.setBehavioursEnabled(false) https://github.com/ajaxorg/ace/blob/master/demo/kitchen-sink/demo.js#L353

于 2013-01-10T06:50:41.120 回答