Contributor tasks needed
Task Novice task? Contributor instructions Complete?
Reroll the patch if it no longer applies. Yes Instructions
Update the issue summary Yes Instructions
Embed before and after screenshots in the issue summary Novice Instructions

Reported by jessebeach at #2154589-4: Edit breaks when the entity title is promoted to the page title (discovered by backporting):

We should change the cursor to a text cursor, especially for field like title which is a link. It doesn't seem editable with a point. So something like this.

div.edit-editing,
p.edit-editing,
span.edit-editing,
input.edit-editing,
a.edit-editing {
  cursor: text;
}

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

InternetDevels’s picture

Status: Active » Needs review
FileSize
14.78 KB
582 bytes

It looks like Chrome bug (in Firefox caret is visible). Also text looks messy with many words (attachment), so I've fix it with "display: inline-block". Caret is visible now.

Wim Leers’s picture

#1: maybe you've succeeded in working around that browser bug that makes the caret invisible, but… at the same time, you seem to have broken the styling?

Wim Leers’s picture

Issue tags: +CSS, +Novice, +CSS novice
kirkkala’s picture

Assigned: Unassigned » kirkkala
FileSize
28.35 KB

Patch did not apply - needed to apply it manually and needs to be rerolled since it seem to be breaking functionality on Chrome (OS X): Title becomes uneditable as the tooltip covers the fiield.

kirkkala’s picture

FileSize
606 bytes
566 bytes

Caret visible now, tested on Firefox & Chrome (OS X). Also fixed the issue with title breaking on multiple lines.

Found out the invisible caret is actually a contenteditable chrome bug, see https://code.google.com/p/chromium/issues/detail?id=170148 and proof at http://html5demos.com/contenteditable

kirkkala’s picture

Assigned: kirkkala » Unassigned
xjm’s picture

Component: edit.module » quickedit.module
minneapolisdan’s picture

Issue summary: View changes
dcam’s picture

Issue summary: View changes
Issue tags: +Needs reroll

Patch no longer applies.

dcam’s picture

Status: Needs review » Needs work

Forgot the status, sorry.

Barnettech’s picture

I'm working on this ....

Barnettech’s picture

The directory structure had changed so the old patch wouldn't apply.

Barnettech’s picture

Status: Needs work » Needs review

forgot to change this to needs review.

bdevore’s picture

Status: Needs review » Needs work

Doesn't appear to work for me on osx Chrome using the simplytest.me from dreditor to test...

nsuit’s picture

Issue tags: -Needs reroll

This still applies cleanly. I removed the Needs reroll tag.

jbennett’s picture

This worked for me in OS X with Chrome 35 and other browsers. This didn't work right away because of caches so make sure they are cleared for you.

Looks good to me.

andyguzman’s picture

On OSX, Chrome 35/Firefox 29/Safari 7 all work after clearing browser and site cache.

The cursor does appear now when clicking into the box, but with a long title the .quickedit-editable class field gets messy again when quick edit mode is enabled as mentioned in #1 of this thread.

er.pushpinderrana’s picture

Assigned: Unassigned » er.pushpinderrana
er.pushpinderrana’s picture

Status: Needs work » Needs review
FileSize
5.7 KB
5.14 KB
395 bytes
981 bytes

I hope this patch would look better. I am also adding screenshot here:

Before:
Before applying this patch

After:
After applying this patch

gippy’s picture

I tested patch 19 with all five browsers. For four of the five browsers on OS X (Chrome, Safari, Opera, Firefox) patch 19 worked exactly as is shown in the screenshots in 19 above. The patch also worked with Internet Explorer 11 on Windows 7. In all cases a long title caused there to be boxes around each word. After the patch, the long title was properly enclosed in a single box.

However, I had to upgrade Internet Explorer from 9 to 11 in order to get the quickedit icon to appear (core/misc/icons/bebebe/pencil.svg). I tried configuring Internet Explorer 9.0.26 many ways to get the .SVG icon to appear, without any success.

This link has the following statement: "Internet Explorer 9 does not display SVG graphics that were created using the ODS HTML destination. Use the ODS HTML5 destination to create SVG graphics that are to appear in Internet Explorer 9. Internet Explorer 9 does not support animated SVG graphics. For animated SVG graphics, use Internet Explorer 8 or another browser. Certain settings are required for Inline SVG files in HTML5 output to display in Internet Explorer 9 . If the SVG file looks similar to the following output and does not display any graphic, you must set the Browser Mode and the Document Mode to properly view the SVG file.
corrupted inline svg image as it appears in IE9"
http://support.sas.com/documentation/cdl/en/graphref/66521/HTML/default/...

I'm new at this. Is this a known issue for Internet Explorer 9? Does this resolve the current issue? Should a new issue be opened for rendering with IE 9?

gippy’s picture

FileSize
29.61 KB
31.37 KB

Patch 19 was tested in five browsers and found to work properly. A related issue was uncovered about the pencil.svg icon not appearing in Internet Explorer 9, but being resolved in Internet Explorer 11. A new issue was opened for that problem. Changing the status to "tested and reviewed".

gippy’s picture

Status: Needs review » Reviewed & tested by the community

Tested and reviewed per comment 21.

webchick’s picture

Status: Reviewed & tested by the community » Fixed

Oh, great! This has been really annoying me. :)

Committed and pushed to 8.x. Thanks! Sorry for this sitting around so long; my post-DrupalCon life got a bit hectic.

  • webchick committed 3973634 on 8.x
    Issue #2154775 by er.pushpinderrana, barnettech, kirkkala,...
Wim Leers’s picture

Status: Fixed » Active

I have my doubts about this patch. Was this tested in themes other than Bartik? What if a theme uses display:inline or width: 50% or something like that? The committed patch would break in such scenarios AFAICT.

Wim Leers’s picture

Wim Leers’s picture

Title: In-place editing of title: works, but cursor is invisible » [Revert] In-place editing of title: works, but cursor is invisible
Priority: Normal » Major

I just manually tested #2226493: Apply formatters and widgets to Node base fields. Because of this patch, fields that are rendered inline are rendered as blocks as soon as in-place editing is enabled. That's a huge regression.

This confirms the fears I expressed at #25. It might be better to next time wait for a component maintainer to RTBC fragile things like this :)

er.pushpinderrana’s picture

Assigned: er.pushpinderrana » Unassigned
webchick’s picture

Title: [Revert] In-place editing of title: works, but cursor is invisible » In-place editing of title: works, but cursor is invisible
Priority: Major » Normal
Issue tags: -Novice, -CSS novice

Ok, reverted for now. Guess this means it's also not a novice issue.

  • webchick committed 8f18b14 on 8.0.x
    Revert "Issue #2154775 by er.pushpinderrana, barnettech, kirkkala,...
yvesvanlaer’s picture

Status: Active » Needs review
FileSize
1.72 KB

Hey all

The cursor was blocked by the "background-color" css styling.
This styling was the result of a part of javascript code.

By removing the javascript code I was able to fix this issue.

I have attached a patch, enjoy!

Wim Leers’s picture

Status: Needs review » Reviewed & tested by the community

Manually tested. Conclusion:

  1. The patch in #31 fixes the problem described in the issue summary and title
  2. I tested this with #2226493: Apply formatters and widgets to Node base fields applied and I can confirm that this does not cause the regression described in #27, for which the originally committed patch was reverted.

Thank you very much for the fix — as you can tell from this issue's history, we've been figuring out a way for some time to get it fixed, so it's wonderful to have you jump in and just fix it in a very simple way! :)

I hope we'll see more from you, Yves! :)

Wim Leers’s picture

Issue tags: +DUGBE1409
alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed 61215d0 and pushed to 8.0.x. Thanks!

  • alexpott committed 61215d0 on 8.0.x
    Issue #2154775 by yvesvanlaer, er.pushpinderrana, kirkkala, barnettech,...
Wim Leers’s picture

Hurray! Congrats, @yvesvanlaer, with landing your very first Drupal core patch :)

nod_’s picture

Issue tags: +JavaScript

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.