Closed
Bug 241182
Opened 21 years ago
Closed 8 years ago
plain text editor - doCommand cmd_insertText not working when supportsCommand cmd_insertText returns true
Categories
(Core :: DOM: Editor, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 1220696
People
(Reporter: martijn.martijn, Unassigned)
Details
(Keywords: testcase)
Attachments
(1 file)
821 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+
I've asked it here before:
http://groups.google.com/groups?dq=&hl=en&lr=&ie=UTF-8&oe=UTF-8&threadm=Qzybc.11361%24Y22.123711%40zonnet-reader-1&prev=/groups%3Fhl%3Den%26lr%3D%26ie%3DUTF-8%26oe%3DUTF-8%26group%3Dnetscape.public.mozilla.qa.editor
This returns true to me:
textarea.controllers.getControllerForCommand('cmd_insertText').supportsCommand("cmd_insertText");
But when I try to use it:
textarea.controllers.getControllerForCommand('cmd_insertText').doCommand('cmd_insertText','hallo');
I get an NS_ERROR_NOT_IMPLEMENTED back.
It seems like this is the source that's causing the trouble:
http://lxr.mozilla.org/seamonkey/source/editor/libeditor/base/nsEditorCommands.cpp#711
Reproducible: Always
Steps to Reproduce:
1. Tried to use doCommand('cmd_insertText','hallo');
2.
3.
Actual Results:
I got an NS_ERROR_NOT_IMPLEMENTED back.
Expected Results:
It should work (preferrably) or the supportsCommand("cmd_insertText") should
return false.
Reporter | ||
Comment 1•21 years ago
|
||
Click on the two buttons.
You should click yes on the security warning.
After clicking the first button, you get returned 'true'.
But after clicking the second button, you get an error in the javascript
console.
Reporter | ||
Comment 2•19 years ago
|
||
The testcase needs to be downloaded and tested locally to see the bug.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Updated•18 years ago
|
QA Contact: bugzilla → editor
Updated•18 years ago
|
Assignee: mozeditor → nobody
Reporter | ||
Updated•8 years ago
|
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WORKSFORME
Updated•8 years ago
|
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
Updated•8 years ago
|
Status: REOPENED → RESOLVED
Closed: 8 years ago → 8 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•