Closed
Bug 241191
Opened 21 years ago
Closed 10 months ago
midas - insert html command (cmd_insertHTML) should select the inserted html
Categories
(Core :: DOM: Editor, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: martijn.martijn, Unassigned)
Details
(Keywords: testcase)
Attachments
(1 file)
928 bytes,
text/html
|
Details |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7b) Gecko/20040323 Firefox/0.8.0+
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7b) Gecko/20040323 Firefox/0.8.0+
execCommand('inserthtml', false, '<b>b</b>') does work fine, after using the
command the inserted html is not selected.
This is not consistent with other execCommands.
It would be much handier if the inserted html would get selected.
I wil attach a testcase to show exactly what I mean.
Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Reporter | ||
Comment 1•21 years ago
|
||
-Type some text in the midas iframe.
-Select some text in the midas iframe.
- Button "execCommand('bold', false, false)" makes the selection bold and
retains the selection
- Button "execCommand('inserthtml',false,'<b>b</b>')" deletes the old selected
text and inserts the new html, but doesn't select the inserted html
Reporter | ||
Updated•19 years ago
|
Assignee: mozeditor → nobody
Status: UNCONFIRMED → NEW
Ever confirmed: true
QA Contact: bugzilla
Updated•18 years ago
|
QA Contact: editor
Updated•3 years ago
|
Severity: normal → S3
Comment 2•10 months ago
|
||
According to the testcase, Chrome selects all text in the <iframe>
with the focus()
call after execCommand
. However, as far as I've tested, Chrome does not select inserted content and that matches with "insertText"
command. So, we should not change our behavior from both compatibility and consistent points of view.
Status: NEW → RESOLVED
Closed: 10 months ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•