add information about element CSS styles
This commit is contained in:
parent
2f906bb2c6
commit
cbd1baed6e
1 changed files with 9 additions and 0 deletions
|
|
@ -51,6 +51,15 @@ The easiest version is simply:
|
||||||
var editor = ace.edit("editor");
|
var editor = ace.edit("editor");
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
With "editor" being the id of the DOM element, which should be converted to an editor. Note that this element must be explicitly sized and positioned `absolute` or `relative` for Ace to work. e.g.
|
||||||
|
|
||||||
|
#editor {
|
||||||
|
position: absolute;
|
||||||
|
width: 500px;
|
||||||
|
height: 400px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
To change the theme simply include the Theme's JavaScript file
|
To change the theme simply include the Theme's JavaScript file
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue