I'm really pleased with the new on-page editing feature of Couch. What a great treat to add on to v1.4! On-page editing makes a very usable interface for the least technically sophisticated users, and your implementation with its two types of editing - popup and inline - seems just right.
It was really easy to convert a site to on-page editing and I'm also adding some additional on-page admin tasks for really full-featured front-facing site management.
I ran into an unfortunate behavior I wanted to let you know about. My site uses JQuery Tools (http://jquerytools.org) for several UI features, including tabbed navigation. The "pages" of my site are all on the same page. As you navigate around the site, the page you're on is shown and the other panes are hidden.
In Firefox, on-page editing works like a charm. I can navigate from page to page and the editable regions in all of the different panes work as expected.
In Chrome, Safari, and Midori, however, the starting page works normally, but when I switch to another tab the inline editor doesn't work. There is no yellow border, and if I click on the area, the editor appears but it's icons are greyed out and it doesn't edit. The pop-up editor works normally.
If I refresh the page, then the editor works on the current page, but none of the others. So it still works. But you have to refresh the browser on the page you want to edit first. It's just a little clumsy and inelegant.
I imagine there's some sort of javascript or DOM conflict going on. I don't know if there's anything that can be done about it, but I wanted to let you know.
EDIT:
After a little more sleuthing, I discovered that non-working editor regions carry the style
while the working sections have
Adding the "good" styles to the element inline showed that the styles were applied (according to the inspector), but had no effect on the page. So far, I've had no luck overriding this webkit style.
It was really easy to convert a site to on-page editing and I'm also adding some additional on-page admin tasks for really full-featured front-facing site management.
I ran into an unfortunate behavior I wanted to let you know about. My site uses JQuery Tools (http://jquerytools.org) for several UI features, including tabbed navigation. The "pages" of my site are all on the same page. As you navigate around the site, the page you're on is shown and the other panes are hidden.
In Firefox, on-page editing works like a charm. I can navigate from page to page and the editable regions in all of the different panes work as expected.
In Chrome, Safari, and Midori, however, the starting page works normally, but when I switch to another tab the inline editor doesn't work. There is no yellow border, and if I click on the area, the editor appears but it's icons are greyed out and it doesn't edit. The pop-up editor works normally.
If I refresh the page, then the editor works on the current page, but none of the others. So it still works. But you have to refresh the browser on the page you want to edit first. It's just a little clumsy and inelegant.
I imagine there's some sort of javascript or DOM conflict going on. I don't know if there's anything that can be done about it, but I wanted to let you know.
EDIT:
After a little more sleuthing, I discovered that non-working editor regions carry the style
- Code: Select all
h1[Attributes Style] {-webkit-user-modify: read-only;}
while the working sections have
- Code: Select all
h1[Attributes Style] {-webkit-user-modify: read-write; word-wrap: break-word; -webkit-line-break: after-white-space;}
Adding the "good" styles to the element inline showed that the styles were applied (according to the inspector), but had no effect on the page. So far, I've had no luck overriding this webkit style.