From cbd1baed6eca99063b80c4c14c61e576eaf86290 Mon Sep 17 00:00:00 2001 From: Fabian Jakobs Date: Mon, 16 May 2011 07:45:07 -0700 Subject: [PATCH] add information about element CSS styles --- Readme.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Readme.md b/Readme.md index 50857bc1..b21bdc0e 100644 --- a/Readme.md +++ b/Readme.md @@ -51,6 +51,15 @@ The easiest version is simply: var editor = ace.edit("editor"); }; + +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