add information about element CSS styles

This commit is contained in:
Fabian Jakobs 2011-05-16 07:45:07 -07:00
commit cbd1baed6e

View file

@ -52,6 +52,15 @@ The easiest version is simply:
}; };
</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
<script src="src/theme-twilight.js" type="text/javascript" charset="utf-8"></script> <script src="src/theme-twilight.js" type="text/javascript" charset="utf-8"></script>