Closed
Bug 61996
Opened 24 years ago
Closed 24 years ago
"Save" not available in "HTML Source" View
Categories
(Core :: DOM: Editor, defect, P3)
Core
DOM: Editor
Tracking
()
VERIFIED
FIXED
mozilla0.9
People
(Reporter: darkmane, Assigned: cmanske)
Details
Attachments
(1 file)
|
1.41 KB,
patch
|
Details | Diff | Splinter Review |
Steps to reproduce:
1) Open an Exisiting Document
2) Change to view HTML Source
3) Add "<!-- This is a test comment -->" to the document.
Expected behavior:
The Save button should become active
Actual behavior:
Save buttin remains in active
Build: Gecko/20001028
Comment 1•24 years ago
|
||
Confirmed build 2000120420 win32. Switching back to "Normal Edit Mode", the save
button is enabled.
Did not find any duplicate, could this be a regression?
Fabian.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 2•24 years ago
|
||
that is correct, we force menu operations from the wysiwyg mode, assigning to
cmanske and setting to future
Assignee: beppe → cmanske
Target Milestone: --- → Future
| Assignee | ||
Comment 3•24 years ago
|
||
Current HTML source editing is a short-term kludge: it is simply a textarea and
the normal command enabling/disabling doesn't work while editing source.
These problems will go away after embedding/modularity work when we can use the
full text editor (with its own commands includind enabling behavior) for HTML
source. I'm not sure that will be done by milestone 0.9, but if not, then soon
after.
Status: NEW → ASSIGNED
Target Milestone: Future → mozilla0.9
Comment 4•24 years ago
|
||
i see this on linux, so marking all/all. [2001.01.11.08, mozilla verif] this
would not only convenient and useful to have implemented, but also important for
many folx who wish to hack html directly. :)
OS: Windows NT → All
Hardware: PC → All
| Assignee | ||
Comment 5•24 years ago
|
||
We actually DO support "Save" while in HTML Source mode. It automatically
switches back to 'Normal' mode and saves the file. The problem is that "Save"
is disabled if user has not made any changes in Normal mode or has just saved
the file. So to continue with the current source-editing kludge, the
simplest short-term solution is to set the modification flag before editing the
source so the Save button is enabled.
Comment 6•24 years ago
|
||
I think that's the wrong solution; it causes the modified flag to get out of step
with the contents of the document (DOM, not source).
I think the best approach is to change the IsCommandEnabled for the save command
to 'know about' source mode.
| Assignee | ||
Comment 7•24 years ago
|
||
You're correct - fix will be attached.
| Assignee | ||
Comment 8•24 years ago
|
||
| Assignee | ||
Comment 9•24 years ago
|
||
attached fix was checked in.
| Assignee | ||
Comment 10•24 years ago
|
||
checked in last week.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Comment 11•24 years ago
|
||
okay this is working however we two more problems now...
filing separate bugs.
verified in 1/23 build.
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•