Rich-text API, on contenteditable it's impossible to prevent the cell selection to show up
Categories
(Core :: DOM: Editor, defect, P3)
Tracking
()
People
(Reporter: cyril.auburtin, Unassigned)
References
(Blocks 1 open bug)
Details
(Whiteboard: [h2review-noted])
Attachments
(1 file)
(deleted),
image/png
|
Details |
Updated•9 years ago
|
Reporter | ||
Comment 1•9 years ago
|
||
Comment 2•8 years ago
|
||
Comment 3•5 years ago
|
||
This line should probably be conditional on something else.
Makoto, do you know what the right check is for this kind of stuff?
Updated•5 years ago
|
Comment 4•5 years ago
|
||
Hmm, I agree to change this. but I need discuss with masayuki about this.
Comment 5•5 years ago
|
||
First of all, enableInlineTableEditing
is not related to the table-selection.
The table-selection is widely implemented in layout, and editor uses the feature. So, if editor should have a new command to disable it, layout needs to have an API to stop handling table-selection.
Updated•5 years ago
|
Comment 6•5 years ago
|
||
Ah, it might be enough just to stop handling table selection here if the selection ancestor limiter is set to an editing host.
https://searchfox.org/mozilla-central/rev/efdf9bb55789ea782ae3a431bda6be74a87b041e/layout/generic/nsFrame.cpp#4849-4858
I guess that HTMLEditor
should have an API to allow/disallow table selection, and HTMLEditor
should allow it only when it's in email composer of Thunderbird, composer of SeaMonkey or BlueGriffon.
Makoto-san, do you have idea how to consider it?
Comment 7•5 years ago
|
||
(In reply to Masayuki Nakano [:masayuki] (he/him)(JST, +0900) from comment #6)
Ah, it might be enough just to stop handling table selection here if the selection ancestor limiter is set to an editing host.
https://searchfox.org/mozilla-central/rev/efdf9bb55789ea782ae3a431bda6be74a87b041e/layout/generic/nsFrame.cpp#4849-4858I guess that
HTMLEditor
should have an API to allow/disallow table selection, andHTMLEditor
should allow it only when it's in email composer of Thunderbird, composer of SeaMonkey or BlueGriffon.
Yes. nsFrameSelection
(nsISelectionController
) should have the API to manage this feature. Old Gecko based application wants to keep this, but Web content may not (I don't know most people likes this feature.). And we may add new execCommand
to enable/disable it.
Updated•4 years ago
|
Updated•2 years ago
|
Description
•