Closed Bug 11804 Opened 26 years ago Closed 26 years ago

Toolbar buttons need to toggle type-in state

Categories

(Core :: DOM: Editor, defect, P3)

defect

Tracking

()

VERIFIED FIXED

People

(Reporter: sfraser_bugs, Assigned: buster)

References

Details

When typing in bold text, you should be able to hit the bold button to change to typing in non-bold. This doesn't work right now. We need to change the type-in state from the buttons.
Status: NEW → ASSIGNED
Target Milestone: M10
M10
M11
*** Bug 11794 has been marked as a duplicate of this bug. ***
Assignee: sfraser → buster
Status: ASSIGNED → NEW
Toggling off a text attribute when we have a collapsed selection doesn't work because SetTypeInStateForProperty() isn't clearing the "typeInState" correctly. This can be tested by placing caret in bold text and clicking on the bold toolbar button or using Format | Clear All Styles on the menu. Both call nsHTMLEditor::SetInlineProperty(), which calls SetTypeInStateForProperty() when the selection is collapsed. Steve: This is your method, so we're giving you first crack at this!
Status: NEW → ASSIGNED
SetTypeInStateForProperty is actually setting the state correctly, but CreateStyleForInsertText isn't responding to the state properly (notice the various "not yet implemented" messages.) The implementation is fairly straightforward, I'll shoot for M11.
OS: Mac System 8.5 → All
fixed for bold, italic, underline. still looking into fonts.
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
fixed
Status: RESOLVED → VERIFIED
verified in 9/22 build..
You need to log in before you can comment on or make changes to this bug.