Closed (fixed)
Project:
Quick Edit
Version:
7.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
20 Jan 2013 at 08:07 UTC
Updated:
20 Oct 2015 at 21:34 UTC
Jump to comment: Most recent, Most recent file

Comments
Comment #1
nod_So If I mess around the CSS rules applied to the element I can get the cursor to show up but I can't seem to make it show up without any messing around firebug. Will see if ckeditor guys have an idea about that.
Comment #2
nod_On CKEditor guys' advice toggling the contenteditable mode makes the cursor show up on FF. Still not working on chrome though.
This is probably an issue that needs solving upstream in createjs.
Comment #3
nod_(dup)
Comment #4
wim leersHow can Create.js "fix" this? It's plain
contentEditable, nothing more, nothing less.Can you reproduce the problem if you don't go into Edit mode, but manually set the
contentEditableattribute on the title? If you can't reproduce it that way, it might be (somehow) triggered by Edit's CSS or JS…Comment #5
nod_It's browser bug territory, default implementation should take care of it so that we don't have to do this kind of things in our code: http://drupalcode.org/project/edit.git/commitdiff/ce7d08a886bafef96cbdf9...
Comment #6
wim leers#5: possibly, but are you certain it's not a side-effect of some of Edit's CSS or JS? The simple test in #4 would assert that.
Comment #7
nod_If I set it from the console it works fine just setting the thing. But it doesn't work when used in edit JS. So yes it's a side effect but I don't know where from and how else to fix it.
I can't rely on firebug being open because that works when I mess around with it anyway.
Comment #8
wim leersThen you can do other tests to narrow it down! One by one, disable these:
- Edit's CSS
-
PropertyEditorDecorationView's (un)padding-
ToolbarView's (un)paddingComment #9
webchickAmending this. It does show up fine in a plain text field direct edit mode, it's only node titles that it fails on. Bizarre.
In other words, working:
Not working:
The only thing that stands out to me (other than we clearly need a few more dozen classes) is the aria roles that are present on node title but not on the text field. Not sure if that's related though.
Comment #10
webchickFor whatever reason this is working for me now. YAY! :D
Comment #12
wim leersNot working here. Note that with or without this hack, it works if you give focus to another app, then go back to Firefox. Tested on OS X 10.7.4, Firefox 19.0.2.
Since this hack is not at all reliable, reverting: http://drupalcode.org/project/edit.git/commit/e42d7d6
Comment #13
wim leersUnclear how we can solve this.
Comment #14
wim leersComment #15
wim leersI just spent a bit of time on this again. http://ckeditor.com/demo#inline works fine in Firefox. But CKEditor as used in Edit does not (I can reproduce the problem there too now). Open the developer tools, click somewhere in there, then go back to the field. Now the cursor *does* appear.
I really think this is a bug in Firefox, possibly something with timing, where the consequences of dynamically setting
contentEditable=trueneed to be parsed & rendered by Firefox *before* doing something else. Narrowing this down to the very specific timing problem is a very tricky and time consuming task though.Comment #16
wim leersThis was "kind of" fixed in D8 over at #2154775: In-place editing of title: works, but cursor is invisible.
Comment #17
devin carlson commentedA backport of #2154775-31: In-place editing of title: works, but cursor is invisible.
Comment #18
devin carlson commentedManually tested #17 with Firefox to confirm that the cursor is displayed. Also tested in Chrome, Safari and IE to verify that they continued to work properly.
Committed to Quick Edit 7.x-1.x.
Comment #20
wim leersWoot! Thanks Devin :)