Closed
Bug 27266
Opened 26 years ago
Closed 26 years ago
Remove All Styles should work for all text attributes, not just B,I,U
Categories
(Core :: DOM: Editor, defect, P1)
Tracking
()
VERIFIED
FIXED
M16
People
(Reporter: cmanske, Assigned: mozeditor)
References
Details
(Whiteboard: Composer feature work)
Current implementation of this loops 3 times through RemoveInlineProperty
for B, I, and U. First, this ignores all other inline HTML attributes.
Second, it is inefficient. We should make nsHTMLEditor::RemoveInlineProperty
remove all inline attributes during the same iteration search through nodes
in the selection.
| Reporter | ||
Updated•26 years ago
|
Status: NEW → ASSIGNED
Target Milestone: M15
| Reporter | ||
Comment 2•26 years ago
|
||
Also, using this to turn off all text attributes at a collapsed selection
(caret point) needs work. It currently doesn't work at all. I tried changing
attribute names from 'B', 'I', and 'U' to 'b', 'i', and 'u', and then it acted
strange: Using command in bold text did turn of bold, but it turned on italic
and underline! This needs investigation.
| Reporter | ||
Comment 4•26 years ago
|
||
Joe says he was planing on doing this. We need to replace existing JS with
an nsEditor::RemoveInlineAttributes() (or some name like that.)
It should "remove all inline nodes that are also containers" as Joe says,
but it should NOT remove <a>, i.e., links.
Assignee: cmanske → jfrancis
Status: ASSIGNED → NEW
| Reporter | ||
Comment 5•26 years ago
|
||
Joe: After you implement the nsEditor method, please use it to change
nsEditorShell::RemoveTextProperty() for the case when "prop" = "all".
Or you can reassign this to me and I'll fix up that code.
Comment 7•26 years ago
|
||
updating keyword and status whiteboard to reflect that this is a beta 2 feature
work bug that the Composer team deems a must fix for beta 2.
| Assignee | ||
Comment 9•26 years ago
|
||
fixed
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
•