[Mozile] temporarily disabling editing

James A. Overton james at overton.ca
Thu Apr 19 06:56:51 PDT 2007


Hi Reto,

Try using mozile.edit.enable() and mozile.edit.disable() instead.  
(I've renamed these to start() and stop() in my working copy, so  
watch out the next time you update Mozile.) The only difference is  
turning on and off the mozile.edit.editable flag.

James


On 2007-04-19, at 6:37 AM, Reto Bachmann-Gmür wrote:

> In my app several divS are editable using mozile or optionally in a
> source-edit mode. The source-edit mode opens a TextArea in a div
> absolutely positioned over the mozile-editable div. The problem is  
> that
> key-events still act on the mozile-editable div even if the user  
> clicks
> in the TextArea, the only workaround I found is to press on an  
> arrow key
> for a while till after a while the cursor in the TextArea starts  
> moving
> (that's when the mozile cursors gets out of the div). I tried
> mozile.edit.setStatus(false); in the hope to temporarily disable  
> mozile
> but this didn't seem to have any effect.
>
> Any suggestion?
>
> Reto
> _______________________________________________
> Mozile mailing list
> Mozile at mozdev.org
> http://mozdev.org/mailman/listinfo/mozile



More information about the Mozile mailing list