On Jul 8, 8:45 am, Laurent Jouanneau <[EMAIL PROTECTED]> wrote:
> Hello,
>
> [EMAIL PROTECTED] wrote:
> > These form elements don't generate click and keypress event in editor.
> > It looks like the behavior is related to "-moz-user-input: none" rule
> > in EditorOverride.css. If I remove this line, the events will generate
> > fine. However, select will show the dropdown once clicked and radio/
> > checkbox will show their state, which is not desired for editor. My
> > question is how to prevent the dropdown/state from showing OR how to
> > keep the rule intact and still receive click and keypress events?
>
> Which form elements ? which checkbox/radio/select do you talk about ? in
> an edited document ? If yes, I don't understand why do you want to
> receive events from elements which are inside an edited document...
>
>
>
> > It looks like NVU was able to do it. I couldn't figure it out its
> > mechanism. Can anyone shed some light? Thanks a lot!
>
> Nvu is based on a very old version of Gecko :-)
>
> LaurentJ

Yes, they are in an edited document. If you are just talking about
adding and deleting the checkbox/radio/select, then it shouldn't
matter whether they fire events or not. However, imagine if you need
to change the attribute and/or style of those elements. How will you
do it? If I were the user, I would do it by double clicking or right
clicking on it. Other form elements are fine (well, with the exception
of those disabled ones:-) except for these three.

Nvu has its own mechanism of doing it, which is not from the Gecko
engine, according to my observation. Would be great if I can pinpoint
the spot in its code!

Feng
_______________________________________________
dev-tech-editor mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-editor

Reply via email to