logging every selection doesn't allow for property changes

NEW
Unassigned

Status

()

Core
Editor
P3
normal
19 years ago
12 years ago

People

(Reporter: Brade, Unassigned)

Tracking

({helpwanted})

Trunk
Future
helpwanted
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

19 years ago
When logging, you can't replay the commands to change the style since they are
lost when the selection is reset.

For example, in an empty document log the following steps:
 * type:  abc
 * click the bold icon
 * type:  def

Notice that in the log, the selection is set between each keystroke and command.
This means that setting bold won't work since the editor thinks that the
selection has changed (so the bold command is ignored).

Updated

19 years ago
Status: NEW → ASSIGNED
Target Milestone: M11

Comment 1

19 years ago
Accepting bug, setting milestone to M11.

Just wanted to note that you can replay style changes that are applied to
selected (hilighted) content. This bug happens when trying to apply a style when
the selection is a caret.

Comment 2

19 years ago
By the way, the temporary workaround for this is to edit the journal.js file and
comment out the calls to EditorSetSelectionFromOffset() before every call to
SetTextProperty.

Comment 3

19 years ago
Oops, screwed up on the workaround description above.

Comment out the call to EditorSetSelectionFromOffset() AFTER the call to
window.editorShell.SetTextProperty(), ONLY if the selection offsets for the
SetTextProperty() call match the selection offsets after it.

Comment 4

19 years ago
Moving some SpellChecker/TextServices feature requests and bugs, that can wait
till after beta 1, to milestone M14.

Comment 5

19 years ago
Moved to M15 to balance bug counts across milestones.

Comment 6

19 years ago
Moving all non-beta1 bugs to M16 since I am going on sabbatical.
Target Milestone: M15 → M16

Comment 7

19 years ago
moving to m17
Target Milestone: M16 → M17

Updated

18 years ago
Target Milestone: M17 → M19

Comment 8

18 years ago
Move to M19.

Comment 9

18 years ago
setting to future, although this was a great tool for QA to use for debugging
Target Milestone: M19 → Future

Comment 10

18 years ago
adding help wanted keyword
Keywords: helpwanted
QA Contact: sujay → editor
Assignee: kinmoz → nobody
Status: ASSIGNED → NEW
You need to log in before you can comment on or make changes to this bug.