Closed Bug 474836 Opened 16 years ago Closed 15 years ago

Copy & Paste not working in contentEditable divs in FF3.1 b2

Categories

(Core :: DOM: Editor, defect)

x86
Windows Server 2003
defect
Not set
major

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: bgravi, Unassigned)

Details

Attachments

(2 files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.1b2) Gecko/20081201 Firefox/3.1b2
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.1b2) Gecko/20081201 Firefox/3.1b2

I have a div with contentEditable set to true. If it has bold/italic or basically any rich text, I can't copy it nor can I copy rich text from other location and paste it into the div. If I press "ctrl+C" repeatedly sometimes, it then works.

Reproducible: Always

Steps to Reproduce:
1. Open a file and copy the html below:
<html>
    <head>
        <title>Test Page</title>
        
    </head>
<body>
    <div id="div1" contentEditable="true" designMode="true" style="width: 500px; height: 500px">Try this for test.</div>
    
    <hr />
    <div id="div2" contentEditable="true" designMode="true" style="width: 500px; height: 500px"><h1>abcd.</h1></div>
</body>
</html>

2. Open this in Firefox 3.1 Beta 2. Try copying the bold text in div2 and paste it into div1

3. Nothing happens. Expected result: the bold text should be copied as is.
Actual Results:  
The copied text couldn't be pasted

Expected Results:  
Copied text was pasted
Attached file reporter's testcase
Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1b3pre) Gecko/20090108 Shiretoko/3.1b3pre

Works fine for me, perhaps this was fixed since 3.1 beta 2, can you try the latest build from ftp://ftp.mozilla.org/pub/firefox/nightly/latest-mozilla-1.9.1/
Duplicate? 

https://bugzilla.mozilla.org/show_bug.cgi?id=480972
Flags: blocking-firefox3.1?
tan please see comment 1, can you reproduce this on the latest nightly? If so please provide a minimal testcase.
Keywords: testcase-wanted
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2a1pre) Gecko/20090302 Minefield/3.2a1pre

I can reproduce Bug 480972 but not this bug.
The closed 480972 seems to fixed in the latest.
I can not reproduce this issue with the latest.
Component: General → Editor
Flags: blocking-firefox3.1?
Product: Firefox → Core
QA Contact: general → editor
No confirmation means that we can't consider this for blocking. Might be WFM.
Keywords: qawanted
I am not able to repro this with the latest nightly-build. But I am seeing a different error, where if I have two content editable DIVs one below the other and content in the top div overflows into the bottom div. 

I am using the same HTML as in my initial bug report. I am attaching a snapshot of the bug
Marking WFM based on comment #9. 

(The overflow into the second div is as expected; set a CSS style of overflow: auto, hidden or scroll if you don't want this to happen
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: