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)
Core
DOM: Editor
Tracking
()
VERIFIED
FIXED
M11
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.
| Reporter | ||
Updated•26 years ago
|
Status: NEW → ASSIGNED
Target Milestone: M10
| Reporter | ||
Comment 1•26 years ago
|
||
M10
| Reporter | ||
Comment 2•26 years ago
|
||
M11
Updated•26 years ago
|
Assignee: sfraser → buster
Status: ASSIGNED → NEW
Comment 4•26 years ago
|
||
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!
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.
fixed for bold, italic, underline. still looking into fonts.
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•