Closed
Bug 14526
Opened 25 years ago
Closed 25 years ago
Implement HTML Source edit mode
Categories
(Core :: DOM: Editor, enhancement, P5)
Core
DOM: Editor
Tracking
()
VERIFIED
FIXED
M16
People
(Reporter: CodeMachine, Assigned: cmanske)
References
Details
(Whiteboard: [nsbeta2+] Composer feature work)
This is a request to add a page source editor to the editing modes of the
editor. The UI of changing between modes was discussed in bug #11140.
I won't go into all the features that page source editors can have, I'm sure
others know more than me. The important thing however is that you can edit in
one mode and then change over to the other. This is obviously non-trivial in
that you need to avoid the graphical editing losing comments and stuff entered
in page source editor mode.
Reporter | ||
Comment 1•25 years ago
|
||
Ideally this editor could be initially designed at least to work with any XML in
preparation to having an arbitrary XML editor in Mozilla.
Reporter | ||
Updated•25 years ago
|
Assignee: buster → nobody
Reporter | ||
Updated•25 years ago
|
Summary: Page source editor → [HELP WANTED]Page source editor
Comment 3•25 years ago
|
||
The current standard for dual-mode editors has been set by Dreamweaver
<URL:http://www.macromedia.com/software/dreamweaver/>. Macromedia guarantees
that after editing in graphical mode, *no changes whatsoever* will happen to
any line of the file upon saving that were not a direct result of the
graphical editing (Promoting the feature here, not the company).
Now that the bar has been raised to that level I am not sure that it is
worth trying to create a dual-mode editor without meeting that strict
standard of noninterference with hand-coding in source files.
Having said that, it would be absolutely excellent to have such an editor
available in Mozilla, so long as the non-graphical mode also allowed
regex search and replace.
Reporter | ||
Comment 4•25 years ago
|
||
I would imagine regexp would be a feature that would be implemented by the
underlying plaintext editor.
Updated•25 years ago
|
Keywords: helpwanted
Assigning all open "nobody@mozilla.org" bugs to "leger@netscape.com" to weed
thru.
Assignee: nobody → leger
Updated•25 years ago
|
Summary: [HELP WANTED]Page source editor → Page source editor
Comment 7•25 years ago
|
||
Some tips from akkana on n.p.m.editor for whoever wants to help out with this
bug
It's not hard to do this (basically, save on focus out, and check
last-mod date on focus in, and voila, you can work with an external
source editor), and would certainly be useful to a lot of people, but we
inside netscape may not have time for it in the first release unless
someone else helps out, which is why the bug is marked helpwanted.
Updated•25 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 10•25 years ago
|
||
Help would be nice, but we are planning to support this feature.
Status: NEW → ASSIGNED
Target Milestone: M20 → M16
Assignee | ||
Comment 11•25 years ago
|
||
*** Bug 33594 has been marked as a duplicate of this bug. ***
Comment 12•25 years ago
|
||
*** Bug 36774 has been marked as a duplicate of this bug. ***
Comment 13•25 years ago
|
||
Copying over some comments I made in bug 36774, though if we use a tabbed view
(which would be great!), these aren't all relevant:
Our current Insert HTML Source dialog (in the insert menu) is cool in that if
something is selected, the source of that part of the dialog will be loaded into
the dialog when it's brought up.
Several of us agreed at the last editor team meeting that this wasn't very
discoverable, and in any case it's ugly (it's fine as a little dialog, but lousy
for editing entire documents).
We need several changes to give us usable source editing:
1. Make it look more like an editor window. Ideally, it should look a lot like
the plaintext editor (TextEditorAppShell.xul) -- maybe even use that same xul
file, if possible -- including using normal-size CSS fonts, not the microscopic
fonts that UE insists on using for dialogs.
2. It should probably be somewhere else, like under the Edit menu -- probably
leave the existing little InsertSource dialog where it is, and then let the
marketing/UE people fight about where each one should go.
3. If the selection is collapsed when the dialog is brought up, then instead of
coming up blank (like the insert source dialog), it should get the contents of
the whole document (i.e. it shouldn't include the "selection only" flag when
calling the output routines).
Assignee | ||
Comment 14•25 years ago
|
||
The basic feature is finished. But I have to disable UI that is inappropriate
to HTML editing. That has to be done before beta2, I think, else you could get
into real trouble. I wish we could do that during the beta2 bug fixing phase
(that's not M17, right?) instead of before May 16th. That task is related to
other menu/command enabling/disabling work that needs to be done. I'm not sure
how critical all of that is. Simon?
Keywords: helpwanted
Assignee | ||
Comment 15•25 years ago
|
||
Why wasnt' this marked as nsbeta2 before? Doing so now.
HTML Source editing is done except for disabling UI, so changing summary to
reflect that task.
Part of this is to collapse the toolbars, which currently doesn't work because
of bug 36628
Comment 16•25 years ago
|
||
Putting on [nsbeta2+] radar.
Whiteboard: Composer feature work → [nsbeta2+] Composer feature work
Assignee | ||
Comment 17•25 years ago
|
||
Collapse now works to hide the toolbars. Still need to modify the menu to
allow only limited commands while editing source.
Assignee | ||
Comment 18•25 years ago
|
||
Changin summary back to the general implementation item
Problems with this feature are covered by bugs 38875 and 38972
Assignee | ||
Updated•25 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 19•25 years ago
|
||
This feature is finished. Other bugs cover problems.
Note that the HTML Source item is in both the
Edit and View menus and will do exactly the same: Go to editor's HTML Source
window. We may decide to remove it from one menu or the other later.
You need to log in
before you can comment on or make changes to this bug.
Description
•