<div class="gmail_quote">On Tue, Mar 11, 2008 at 11:21 PM, Ryan Culpepper <<a href="mailto:ryanc@ccs.neu.edu">ryanc@ccs.neu.edu</a>> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div class="Ih2E3d">Ben Simon wrote:<br>> Hey All,<br>><br>> Any suggestions how I can create a read only editor? That is, an editor that<br>> my code can append/insert into, but that users can't?<br>><br>
> Thoughts? Or do I need to be creating a big 'ol multi line message%?<br></div>When the editor is locked (see the 'lock' method), all modifications<br>silently fail. So users can type in the editor and nothing happens.</blockquote>
<div> </div>
<div>Interesting. Is it considered acceptable style leverage this fact and write code that depends on this?</div>
<div> </div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><span id=""></span>Just unlock the editor before your code changes the contents and lock it<br>again afterwards.</blockquote>
<div> </div>
<div>Nice, will do.</div>
<div> </div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><span id=""></span>You might also find 'begin-edit-sequence',<br>'end-edit-sequence', and 'hide-caret' useful.<br>
</blockquote>
<div>Thanks for the pointers.</div>
<div> </div>
<div>-Ben</div>
<div> </div>
<div> </div></div><br>