Open
Bug 607049
Opened 15 years ago
Updated 5 years ago
Add a way to control word-break characters
Categories
(Core :: DOM: Selection, defect, P5)
Core
DOM: Selection
Tracking
()
NEW
People
(Reporter: sheppy, Unassigned)
Details
Currently, there's no way to tell the editor what characters constitute a word break. When editing text that includes code, for example, this can be particularly annoying, since the editor treats the underscore "_" as a word break, even though in code it is not one. It would be nice to have a way to customize the set of characters considered to be word breaks.
Comment 1•15 years ago
|
||
By "a way" do you mean a pref or a web-page accessible API?
This will probably be possible by modifying the behavior of nsTextFrame::PeekOffsetWord, but I'm not sure what the best way to customize this behavior is.
Component: Editor → Selection
QA Contact: editor → selection
| Reporter | ||
Comment 2•15 years ago
|
||
I'd say an API. Having this available as a pref would be nice, but it may vary from site to site which characters you want to be word breaks. Maybe ideally there would be a pref for the default word break characters with support for sites customizing them through an API.
Comment 3•5 years ago
|
||
Bulk-downgrade of unassigned, >=5 years untouched DOM/Storage bugs' priority.
If you have reason to believe this is wrong (especially for the severity), please write a comment and ni :jstutte.
Severity: normal → S4
Priority: -- → P5
You need to log in
before you can comment on or make changes to this bug.
Description
•