Skip to main content
March 1, 2009
Answered

css copy paste problem in Dreamweaver CS4

  • March 1, 2009
  • 45 replies
  • 43741 views
Having a problem in CS4 when I want to copy and paste things in my stylesheet.
Whenever I do ctrl +c to select a something the whole stylesheet gets selected. And that is not what I want.
Even is I want to copy something from an other css into the css I am working on it won't do the job.

Anyone having the same problem and found a solution?
    This topic has been closed for replies.
    Correct answer

    Forgive me as I'm new to DW CS4, but I may have a solution.  I encountered the css copy problem as well, but I turned off (unchecked) "Enable Related Files" (Edit -> Preferences -> General -> Document Options -> Enable Related Files).  I had to restart Dreamweaver, but this seems to have fixed the bug.

    I've never used the "Enable Related Files" feature, so it's not a big deal to me - much less of a big deal than not being able to copy and paste.  At least it seems to be a stable work around to the "css copy paste" problem.

    Hope it helps!  Let me know if this resolves the issue for anyone else.

    -- Trevor

    Vista Home Premium 64

    DW CS4 Version 10.0 Build 4117

    45 replies

    Inspiring
    March 1, 2009
    Antonia60 wrote:

    > Did you open a plain css-file or did you open the css while first opening a .html file and click in bar where you can see the source code, the css, spry etc,?

    Tried them all. All work fine for me.

    --
    David Powers
    Adobe Community Expert, Dreamweaver
    http://foundationphp.com
    Participant
    March 10, 2009
    I'm having this same copy and paste issue in my Dreamweaver CS4. I've tried assigning the shortcut to my mouse buttons and STILL have the problem. I switched to Classic view and it hasn't manifested in the past few minutes.

    My platform:
    Vista 64x
    Dual Monitors
    CS4 Master collection

    March 1, 2009
    Oke thanks for answering.
    Did you open a plain css-file or did you open the css while first opening a .html file and click in bar where you can see the source code, the css, spry etc,?
    Inspiring
    March 1, 2009
    Antonia60 wrote:
    > The only thing I changed in my preferences is adding a keybord shortcut: ctrl
    > + q = save all.

    I doubt if that would be responsible, but it might be worth undoing it
    to see if it makes any difference.

    I realize how frustrating something like this can be, and wish I could
    help. I just wanted you to know that it's not the normal behaviour.
    Tracking down the cause of an erratic problem like this is extremely
    difficult unless others can reproduce it. Once you find several people
    with the same problem, it becomes easier to identify things their
    systems have in common. FWIW, I tested on a Mac Book Pro running OS X
    10.5.6.

    --
    David Powers
    Adobe Community Expert, Dreamweaver
    http://foundationphp.com
    March 1, 2009
    Thank you for replying.
    quote:

    Tracking down the cause of an erratic problem like this is extremely difficult .......

    I was hoping with this topic that some other users experienced the same problem (and found a solution)

    There is no difference between ctrl+c or a right mouse click and copy, they both highlight the whole css.

    I did reset the keybord shortcuts to Dreamweaver standard but that made no change.

    When I open a .css file the first click in the file randomly selects a big part of the css. Then when I click again I get a normal view but when I want to copy a selection I made automatically it selects the entire .css.

    Thanks again for trying to find a solution. Perhaps in future someone recognizes this topic.

    (working on Desktop PC, Vista Home Premium)

    Edit: I discovered that:
    when opening a .html file and then look in code-view, opening the attached .css the problem does not excist, I can copy and paste without a problem. So it seems only tot be a problem when I open the .css file on its own.
    Weird...........
    Known Participant
    March 1, 2009
    I observe this problem too on my Vista x64 machine with CS4 using dual monitors and split code/design views, and have found others who have this problem by searching Google.

    Description of problem: Roughly 50% of the time, when switching between files (regardless of type) and trying to select a block of code with my mouse (dragging over some code with the left button), it appears to work normally (the intended code is highlighted). However, when then attempting to CTRL-C (cut) or paste, the selected code instantly changes to a much larger block of code (usually selecting a specific div block or something). The cut or pasted code is then the larger (unintended) block of code.

    Once the code view selection works for a particular file (either it worked from the start or I poked at it long enough to work), it seems to remain working until switching to another file and then returning.

    Also, Dreamweaver CS3 didn't have this problem, so it's CS4 only.

    This is a workflow nuisance much like a word-processor deciding to insert a % character randomly every 10 seconds while typing.

    I found a Google groups thread here in which a poster writes that deleting the Dreamweaver configuration file fixes this temporarily (the problem eventually shows up again, and you lose all your customizations by doing this). The posters in this thread also describe the same problem with other hardware configurations.

    My current workaround is to type return then backspace when dropping in to the code-view of another file--kind of a pain, but at least predictable. I also tried avoided the issue by: (a) selecting something in the design view and then selecting something in the code view, and/or (b) telling Dreamweaver to show the "element view" (right click in design view, element view, Full), but this latter action may be superfluous.

    I'd be very interested if someone were to post a simple fix for this problem.

    thanks!

    JP

    PS. David: I've learned a lot from your books. Thanks for writing them!
    March 1, 2009
    I upgraded last week from CS3 to CS4. Had no problems what so ever in DW CS3.
    Nightmare? it costs me a lot of extra typing :(
    The only thing I changed in my preferences is adding a keybord shortcut: ctrl + q = save all.

    Strange thing is that it only gives the error in the stylesheet when copy and pasting, no such problem in html
    Inspiring
    March 1, 2009
    Antonia60 wrote:
    > Having a problem in CS4 when I want to copy and paste things in my stylesheet.
    > Whenever I do ctrl +c to select a something the whole stylesheet gets
    > selected. And that is not what I want.

    Sounds a nightmare, but I have no problems copying selected text in
    style sheets in either Windows or Mac. I don't know what could be
    causing the problem for you.

    --
    David Powers
    Adobe Community Expert, Dreamweaver
    http://foundationphp.com
    Participant
    January 13, 2011

    Well then why post?