Closed
Bug 42740
Opened 25 years ago
Closed 25 years ago
need nsHTMLEditor::GetFontColor()
Categories
(Core :: DOM: Editor, defect, P3)
Tracking
()
VERIFIED
FIXED
M18
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.
Comment 2•25 years ago
|
||
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.
Comment 3•25 years ago
|
||
cc'ing folks for suggestions
Assignee | ||
Comment 4•25 years ago
|
||
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
Comment 5•25 years ago
|
||
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
Comment 6•25 years ago
|
||
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]
Comment 7•25 years ago
|
||
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
Assignee | ||
Comment 9•25 years ago
|
||
checked in 8/22. We now have GetFontColorState() and GetBackgroundColorState()
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•