Closed
Bug 159924
Opened 23 years ago
Closed 23 years ago
table split up when applying paragraph style to select all
Categories
(Core :: DOM: Editor, defect)
Core
DOM: Editor
Tracking
()
VERIFIED
FIXED
M1
People
(Reporter: Brade, Assigned: mozeditor)
Details
(Whiteboard: EDITORBASE+; fixinhand;)
Attachments
(1 file)
3.34 KB,
patch
|
glazou
:
review+
kinmoz
:
superreview+
|
Details | Diff | Splinter Review |
(please change summary to something else)
There is a problem with applying styles in Composer.
I ran across it in mail but these are the steps I can reproduce in Composer
(thanks to Daniel for helping me to enumerate them):
* launch new computer page
* insert default table
* put text in each cell (not sure this step is necessary)
* switch to source mode
* add a space and remove it
* switch to normal mode
* select all
* choose "Paragraph" from dropdown list on toolbar
notice that the table becomes 4 separate tables; this is very bad! It should
remain as 1 table.
Reporter | ||
Updated•23 years ago
|
Whiteboard: EDITORBASE
confirming:
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1b) Gecko/20020722
[Not positive if this is designed behavior or not]
Is there a way to duplicate this without using HTML view? If not, perhaps
EDITORBASE-
Assignee | ||
Comment 3•23 years ago
|
||
strip out non-editible nodes from the array we use to drive block operations
Assignee | ||
Comment 4•23 years ago
|
||
note: the step of going to source view *is* neccessary. Either that or saving
the doc and reloading it. That causes the serializer to put in a bunch of
formatting text nodes, which are neccessary to drive this bug.
Status: NEW → ASSIGNED
Whiteboard: EDITORBASE+ → EDITORBASE+; fixinhand; need r=,sr=
Target Milestone: --- → M1
Joe, this patch has CR coded for Mac only and it is hardly useable on another
platform...
Comment on attachment 94909 [details] [diff] [review]
patch to nsHTMLEditRules.cpp
r=glazman
Attachment #94909 -
Flags: review+
Updated•23 years ago
|
Whiteboard: EDITORBASE+; fixinhand; need r=,sr= → EDITORBASE+; fixinhand; needs sr=
Assignee | ||
Comment 7•23 years ago
|
||
daniel - simply open the patch with VC and save it out again - that will convert
it for you if you dont have an easier way.
Comment on attachment 94909 [details] [diff] [review]
patch to nsHTMLEditRules.cpp
deja vu :-) ... sr=kin@netscape.com
Same questions about whether |nsAutoString| should be used:
+ nsString tString(*aBlockType);
Attachment #94909 -
Flags: superreview+
Whiteboard: EDITORBASE+; fixinhand; needs sr= → EDITORBASE+; fixinhand;
Assignee | ||
Comment 9•23 years ago
|
||
heh, I had merely moved that line - it's not new. I'll open a new bug to do a
pass through editor for unneeded nsStrings.
meanwhile... fix landed on trunk.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•