Skip to main content
Known Participant
September 25, 2020
Answered

Cursor moves lines in code panel

  • September 25, 2020
  • 2 replies
  • 992 views

Hi, has anybody else had this issue?

I am typing away in the code panel, and all of a sudden the cursor jumps about 5 or 6 lines down and to the left and carries on inputting the code as I type. So, I delete the code that has been entered in the wrong place, reposition the cursor to where I want it and start typing again... lo and behold, the cursor moves itself again. If I don't look up to see what I have typed I can completely ruin all sorts of code meaning I've got to physically look for what has been erroneously entered!

It's frustrating!

This topic has been closed for replies.
Correct answer Nancy OShea

I do have word wrap switched on, but this happens to very short lines of CSS properties as much as it does on longer lines. I've never had a single line of a CSS property be so long that it wraps though.

 

However, thinking about it now, if I manually minify a CSS class and all of its properties to a single line (less scrolling), then it doesn't happen. The only time it happens is when each property is on a line of its own.


Validate code and fix reported errors.

https://jigsaw.w3.org/css-validator/

 

2 replies

Roger L
Participant
July 5, 2021

For myself, this happens where, when using Dreamweaver 2021, in the code, you have script such as example highlighted which, in this instance, is taken from html source code when copying from email to Dreanweaver:.

<!--[if mso | IE]></td><td class="" style="vertical-align:top;width:295px;" ><![endif]-->

Delete these lines and hey presto, the cursor goes to where you want it. (If there is some other cure then please post here so we can all benefit.

Nancy OShea
Community Expert
Community Expert
July 5, 2021

@Roger L 

As stated last year, invalid markup can cause unexpected behavior in DW.  The code you posted above is NOT web standards compliant according to the W3C.  It's vendor-specific to Microsoft products only.

 

 

 

Nancy O'Shea— Product User & Community Expert
Community Expert
September 25, 2020

Are you working on a desktop or laptop?  Do you have a trackpad below your keyboard or one of those annoying red buttons from IBM in the middle of their keyboard?  If you are working on a laptop with that type of setting, I would check the sensitivity of the trackpad/red button and see if the issue is resolved.  If this doesn't apply, can you provide more details (DW version, OS)?

MotorIBAuthor
Known Participant
September 25, 2020

I'm on a MacBook, but I am using a mouse and full-size keyboard, not the laptop keyboard. The MacBook is nowhere near and is not receiving any sort of input.

 

Since posting, I have noticed that it only seems to be happening with CSS. I can code HTML without it happening, but where the cursor jumps to is anybody's guess.

 

The only time the cursor jumps is when I am in DW. If it was a trackpad and keyboard sensitivity issue, then it would present itself across all software that I use, but it only happens in DW and more to the point when typing CSS.

 

It's the latest DW, but it also happened in previous versions. The OS is Mojave 10.14.8

 

I have done a screen recording (183kb in size), but I can't upload it to this forum and I don't have access to anywhere else to store it.

Nancy OShea
Community Expert
Community Expert
September 25, 2020

Go to View > Code View Options.  Do you have WordWrap selected?

 

You may upload video to YouTube.  Once it's published on YouTube, you can post the video in this web forum. 

1. Click reply link.

2. Click the film strip icon in the rich text editor toolbar.

3. Paste the YouTube URL.

 

 

Nancy O'Shea— Product User & Community Expert