Closed
Bug 208467
Opened 21 years ago
Closed 21 years ago
queryCommandValue for "inserthtml" should return serialized html of selection
Categories
(Core :: DOM: Editor, defect)
Core
DOM: Editor
Tracking
()
RESOLVED
FIXED
People
(Reporter: Brade, Assigned: Brade)
Details
(Whiteboard: midas)
Attachments
(1 file, 2 obsolete files)
(deleted),
patch
|
mkaply
:
review+
sfraser_bugs
:
superreview+
|
Details | Diff | Splinter Review |
queryCommandValue for "inserthtml" commandshould return the serialized html of
the current selection (if there is one, "" if not)
Assignee | ||
Updated•21 years ago
|
Status: NEW → ASSIGNED
Whiteboard: midas
Assignee | ||
Comment 1•21 years ago
|
||
Assignee | ||
Comment 2•21 years ago
|
||
Updated•21 years ago
|
Attachment #125091 -
Flags: superreview?(sfraser)
Attachment #125091 -
Flags: review+
Updated•21 years ago
|
Attachment #125092 -
Flags: superreview?(sfraser)
Attachment #125092 -
Flags: review+
Comment 3•21 years ago
|
||
I don't agree with this. Why would a command called "insertHTML" have a 'state'
which is the selected HTML?
We have another command, "cmd_getContents", to get the doc, or the selection as
text or HTML.
Assignee | ||
Comment 4•21 years ago
|
||
This patch is an alternate to both previous patches. It makes the code a
little uglier due to queryCommandValue vs ExecCommand.
The thinking for earlier patches is that users of "insertHTML" might want to
grab the selection that would be replaced before they call
ExecCommand("insertHTML").
Assignee | ||
Updated•21 years ago
|
Attachment #125227 -
Flags: superreview?(sfraser)
Comment 5•21 years ago
|
||
Comment on attachment 125091 [details] [diff] [review]
extend insertHTML command to return selection's raw html
minussing, since cmd_getContents already does this
Attachment #125091 -
Flags: superreview?(sfraser) → superreview-
Updated•21 years ago
|
Attachment #125092 -
Flags: superreview?(sfraser) → superreview-
Updated•21 years ago
|
Attachment #125227 -
Flags: superreview?(sfraser) → superreview+
Assignee | ||
Updated•21 years ago
|
Attachment #125091 -
Attachment is obsolete: true
Assignee | ||
Updated•21 years ago
|
Attachment #125092 -
Attachment is obsolete: true
Updated•21 years ago
|
Attachment #125227 -
Flags: review+
Assignee | ||
Comment 6•21 years ago
|
||
fix checked into trunk (revision 3.489)
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•