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)

defect
Not set
normal

Tracking

()

VERIFIED FIXED

People

(Reporter: Brade, Assigned: mozeditor)

Details

(Whiteboard: EDITORBASE+; fixinhand;)

Attachments

(1 file)

(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.
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-
Keywords: nsbeta1+
Whiteboard: EDITORBASE → EDITORBASE+
strip out non-editible nodes from the array we use to drive block operations
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+
Whiteboard: EDITORBASE+; fixinhand; need r=,sr= → EDITORBASE+; fixinhand; needs sr=
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;
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
verified in 9/5 trunk build.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: