| Summary: | Selection is broken after TextView hide/unhide | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Mihai Sucan <mihai.sucan> |
| Component: | Editor | Assignee: | Project Inbox <orion.editor-inbox> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | cedricv, eclipse.felipe, mihai.sucan, Silenio_Quarti |
| Version: | unspecified | ||
| Target Milestone: | 0.4 M1 | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
|
Description
Mihai Sucan
Awesome! This is now fixed in Orion. The fix I had prepared for our Orion version was to call e.preventDefault() in Firefox from _handleMouseDown() (it was only for Opera and Chrome). It looks like the latest Orion changes include this as well. Changing the parent element.style.display to none then back to block no longer causes the selection breakage. I am not closing this bug for the moment, because I need to integrate the latest Orion into Firefox. Will see how that goes and I'll close the bug when I can confirm the latest Orion works in our Style Editor. Thanks for your work! The e.preventDefault() in mouse down was added because we removed the overlayDiv. We also changed the way we handle non-requirejs setups, if you don't have requirejs you should include: <script src="../../orion/textview/global.js"></script> Finally, we changed the signature of addEventListener() to match that of W3C (see Bug 349957). All our types are using that now (view/editor/model/annotation model/etc). If you have any problems with the integration please let me know. (In reply to comment #2) > The e.preventDefault() in mouse down was added because we removed the > overlayDiv. > > We also changed the way we handle non-requirejs setups, if you don't have > requirejs you should include: > <script src="../../orion/textview/global.js"></script> > > Finally, we changed the signature of addEventListener() to match that of W3C > (see Bug 349957). All our types are using that now > (view/editor/model/annotation model/etc). > > If you have any problems with the integration please let me know. Thank you very much! Yep, I've seen there have been some important changes. Thanks a lot for your explanation. I am mostly worried by the DnD landing, but more details on that once I test it. (In reply to comment #2) > The e.preventDefault() in mouse down was added because we removed the > overlayDiv. > > We also changed the way we handle non-requirejs setups, if you don't have > requirejs you should include: > <script src="../../orion/textview/global.js"></script> We don't use requirejs, we just include Orion. global.js looks like what I need, but it seems to be missing a minimal require() implementation. Currently it has only a minimal define(). Hi Mihai, do you still need this bug ? (In reply to comment #5) > Hi Mihai, do you still need this bug ? No. Thank you! I was going to triage the open bugs when I complete the next Orion update, but I can confirm that this bug is indeed fixed with the latest Orion inside our devtools. (btw, the Style Editor is ready - you can test it in the latest Firefox nightlies!) |