I use boostrap default example theme: http://getbootstrap.com/examples/jumbotron-narrow/
and i\'d like to past ace editor instead central block, but ace editor doesn\'t
Ace should work fine with Bootstrap. Make sure you've included the appropriate ACE js scripts and set an specific height for it's container.
Ace Bootstrap Example
http://www.bootply.com/5wt39zvswV
To test what goes wrong:
<div id="editor">
, if no, there must be some js error in console.<div id="editor">
and comment out ace.edit
line to see what size ace will get (ace tries to match height of that div)maxLines
and minLines
options as shown in https://github.com/ajaxorg/ace-builds/blob/v1.1.6/demo/autoresize.html#L41-L43, however setting maxLines very large isn't recomended since it disables optimization of drawing only visible text, and can make editor slow for large documents.