Topic on 2017 wikitext editor/Feedback

Cursor keeps jumping!

12
Some Gadget Geek (talkcontribs)

Hello everyone,

I have been using this new feature on Wikipedia's VE using the latest Google Chrome browser, but the cursor keeps jumping to the beginning of the paragraph when I try to type in the middle of it. This alone is already very irritating, and I don't want to look to see if anyone already brought this up. Is someone looking into this?

Cheers,

SGG

Elitre (WMF) (talkcontribs)

Hi there, I don't think I've seen this reported yet - can you share an example of page where this happens for you? Does it happen anywhere in the page? Does it happen from another browser or while you're logged out (maybe try incognito mode)? Thanks!

Some Gadget Geek (talkcontribs)

Well apparently this does not happen on Internet Explorer. But what happens on Chrome is, when I click in the middle of a paragraph (after a word) to insert text, and begin typing, the text appears at the beginning of the paragraph. It is most apparent when I edit large bodies of text.

Example:

This is the original text:

"This is a sentence. This is another sentence."

This is what I want to change it to:

"This is a sentence. This is yet another sentence."

All I need to do is add the word "yet" after "is", but after placing the cursor after "is", "yet" appears at the beginning instead as follows:

"yet This is a sentence. This is another sentence."

Hope you get what I mean.

Regards, SGG

IKhitron (talkcontribs)

It's about a 100th time I wish Chrome should be removed from Wiki support at all.

Whatamidoing (WMF) (talkcontribs)

We had a problem with a cursor jumping around when the shift key was pressed. It's described at phab:T156228. Do you think that might be what's happening to you?

Some Gadget Geek (talkcontribs)

Nay, it happens regardless of whether I press shift or not.

Elitre (WMF) (talkcontribs)

Nothing happened when I tested with the current version of Chrome (on Mac). My questions above still apply. Also, while VEditing to test, you could append &safemode=1 at the end of the URL - if cursor doesn't jump anymore, then it's a gadget or script you have that's interfering.

Some Gadget Geek (talkcontribs)

I added &safemode=1 to the URL and the problem was fixed. Now, where and how do I find out what gadget is interfering?

Whatamidoing (WMF) (talkcontribs)

Someday, Elitre should remind me to write up a standard help page on how to do this.

Here's the general system:

  • You have some user scripts enabled at some wikis.
  • You probably have some gadgets enabled in Special:Preferences at some wikis.

Gadgets are just user scripts that are easy to enable. But, as a rule of thumb, gadgets tend to be better written and better maintained than user scripts (also, there are wikis that don't offer any gadgets), so we begin with the assumption that the problem is in your user scripts. I'm also assuming that you've not changed any of your scripts recently, as you probably wouldn't be asking if it worked fine, you made a change, and it broke immediately afterwards. ;-)

So step #1 is "Find your user scripts". Here are your options, assuming that you're experiencing this problem at the English Wikipedia.

(There are also matching CSS files, if you have weird display issues, but that doesn't seem very relevant in this instance.)

Step #2 is to figure out which script(s) is the likely cause. Assuming that only one script is broken (usually true), then the fastest system is to blank each .js page in turn, and see whether that fixed the problem. So blank vector.js, reload, and see if the cursor still jumps. If it does, then revert your blanking, go to the next page in the list, and repeat.

When you discover which page seems to contain the problem, then we reach Step #3: Restore half the contents of the broken page, and re-test. Continue restoring (or removing) half of the scripts until you've restore all but one script.

The point behind doing this by halves is that if you have a lot of scripts, then it takes too long to restore each individually. A binary search tree is more efficient.

Some Gadget Geek (talkcontribs)
Whatamidoing (WMF) (talkcontribs)

Do you have this problem at any other wiki?

If not, then we're going to have to look at the gadgets in Special:Preferences at simple.wiki.

Some Gadget Geek (talkcontribs)

Yes, enabled it on en-wiki and the same problem. I'm disabling on all wikis for now. It probably has to do with my browser.

Reply to "Cursor keeps jumping!"