Closed Bug 42740 Opened 25 years ago Closed 25 years ago

need nsHTMLEditor::GetFontColor()

Categories

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

x86
Windows NT
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: cmanske, Assigned: cmanske)

References

Details

(Whiteboard: [nsbeta3+][p:3])

We currently do not have methods equivalent to GetFontFace() to get the font color or size. I suggest changing GetFontFace to: GetFontProperty(nsString &aAttributeName, PRBool &aMixed, nsString &outValue) so we can use "face", "size", and "color" as values for aAttributeName.
Blocks: 40204
accepting; m17
Status: NEW → ASSIGNED
Target Milestone: --- → M17
i dont know what to report for size. the #1 way people are going to change the size, i think, is from the toolbar. that uses nested <big>s and <small>s, rather than a specific size. I think we should just not expose font size in the ui at all. Just let folks make it bigger or smaller, without ever giving it a name.
cc'ing folks for suggestions
We don't need font size feedback, so let's postpose that pain. But we must return the font color: simply return the text value of the 'COLOR' attribute. This is needed to show color feedback in the color picker.
Keywords: correctness, nsbeta3
setting to m18 -- please update thebsummary to reflect the corrected issue -- need to set the correct priority too (please note that in the comment section)
Whiteboard: [nsbeta3+]
Target Milestone: M17 → M18
updating summary, took my best guess at priority
Summary: nsHTMLEditor::GetFontFace() needs to be generalized to get font size and color → need nsHTMLEditor::GetFontColor()
Whiteboard: [nsbeta3+] → [nsbeta3+][p:3]
Charlie, use nsIHTMLEditor::GetInlinePropertyWithAttrValue(). If you want I can put a wrapper for this in editorShell. Assigning to charlie so he sees my comments.
Assignee: jfrancis → cmanske
Status: ASSIGNED → NEW
Ok, I can see how to do this now.
Status: NEW → ASSIGNED
checked in 8/22. We now have GetFontColorState() and GetBackgroundColorState()
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
marking verified.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.