I'm pretty sure it is possible but it's sure not easy. My first idea
to implement is is like this:
1. Attach floating anchors
<https://github.com/ajaxorg/ace/blob/master/lib/ace/anchor.js> at the
places in your code where the writable parts begin/end.
2. Attach a listener to the keydown event. If the cursor is in a
readonly section call setReadonly(true)
This is just a rough sketch but it should work
Best,
Fabian
On Wed, Mar 23, 2011 at 11:21 AM, alex <alex.ma...@gmail.com> wrote:
> I need a js code editor to fill some code templates. There is any
> "easy way" to make some parts of the code in ACE editor readOnly.
>
> --
> You received this message because you are subscribed to the Google Groups "Ajax.org Cloud9 Editor (Ace)" group.
> To post to this group, send email to ace-d...@googlegroups.com.
> To unsubscribe from this group, send email to ace-discuss...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/ace-discuss?hl=en.
>
>