Closed
Bug 39849
Opened 25 years ago
Closed 24 years ago
Editor deletes TEXTAREAs when switching edit mode.
Categories
(Core :: DOM: Editor, defect, P2)
Tracking
()
VERIFIED
FIXED
M18
People
(Reporter: neil, Assigned: mozeditor)
References
()
Details
(Whiteboard: [nsbeta3+][p:2])
Build ID: 2000051820
Reproducible: Always
Steps to Reproduce:
1. Open any page containing a textarea.
2. Select File/Edit Page.
3. Ensure that the Edit Mode toolbar is visible.
4. Switch to HTML Source.
5. Switch to any other mode.
Actual Results: All TEXTAREAs deleted during one of the two switches.
Expected Results: No changes to the HTML should occur.
Comment 1•25 years ago
|
||
confirmed this with todays build on win32:
1. create an html file with the following code:
<html>
<head>
<title>test</title>
</head>
<body>
<form method=post action="foo.html">
<TEXTAREA name="textarea" rows="3" cols="26">First line of initial text. Second
line of initial text.</TEXTAREA>
</form>
</body>
</html>
2. bring the html file into composer
3. toggle from normal mode to html source mode
the textarea is deleted when toggling out of html source mode
Assignee: beppe → cmanske
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 2•25 years ago
|
||
Switching back to another other mode after using HTML Source simply
inserts the source back into the document using nsHTMLEditor::InsertHTML,
so that's where the problem is.
Have we ever tested inserting form-related HTML content?
Assignee: cmanske → jfrancis
Comment 3•25 years ago
|
||
The textarea doesn't even need to be inserted, it just needs to be an existing
html file with a textarea in it. We need to test other elements as well.
Priority: P3 → P2
Target Milestone: --- → M17
Assignee | ||
Comment 5•25 years ago
|
||
i suspect this is a dup of 10238, but i'm not marking it as such yet - i want to
confirm.
Assignee | ||
Comment 6•25 years ago
|
||
b3 nomination; this may be realted to 10238 but i dont know for sure yet.
Keywords: nsbeta3
Comment 8•25 years ago
|
||
setting priority in status whiteboard - editor deletes textareas when switching
modes
Whiteboard: nsbeta3+ → [nsbeta3+][p:2]
Comment 10•24 years ago
|
||
sfraser did some work to support form elements in editor, this is now fixed
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•