How to turn off inline editor
colinbdclark at gmail.com
Wed Sep 16 20:07:16 UTC 2009
On 16-Sep-09, at 3:46 PM, Cindy Qi Li wrote:
> The nodes in the tree structure act as links at most time. Inline
> editor is to provide users with a convenient way to edit the link
> titles. That's why a switch is being used. I had a look at the
> windows explorer, one click on the folder opens up the folder
> content, a slow double click turns the text into edit mode. Is that
> what you meant how to have view and edit within the same mode. I was
> told that double click is not applicable for accessibility reason.
> Some ppl with disability may not be able to make 2 quick clicks.
Yep, that's exactly what I mean. Users with mobility impairments have
access to features on their desktop like mouse keys to address the
timing issue, so I wouldn't rule out the idea completely. It's not a
coincidence that desktop platforms don't implement these sorts of
features using modes: it's the result of lots of user testing to
determine what was the most efficient and successful.
> In terms of 2 suggestions of turning on and off inline editor:
> 1. I use the onBeginEdit event and try to override the hover
> invitation and the tooltip. The links are still not clickable.
Sorry this didn't work for you. I'd guess we've probably got an event
handler there that is swallowing the browser's default action on the
links. We'll have to add a new feature to allow for disabling inline
editors. Don't think we'll get it in time for the 1.2 release, but
I've filed a bug about it:
> How can I switch the links from inline editor back to the real
> clickable links. Pain!
Here's another idea: do a shallow clone of the markup in your list.
When you implement your edit button, swap between the chunk of the DOM
that has the inline editor and the clone. A shallow clone won't copy
over event handlers, so there won't be a problem with InlineEdit
getting in the way.
Something like $(".tree").clone(false) should do the trick:
It's not a very efficient approach, so if you have a large list, it
may be very slow to do this.
> I will be on vacation for 2 weeks from tomorrow. So, I will stay
> quiet for a while. Cheers!
Have a great vacation. Talk to you when you get back!
Technical Lead, Fluid Project
More information about the fluid-work