WebKit: Cut/Copy don't go on "enabled" state
Original message from our contact form, Ticket REF : 3815-QDFX-1500.
I found that 'cut' and 'copy' icons do not go to enabled state after you
select text in editor (chrome v. 14.0.835.202 m windows). After exploring
this I found that there is a problem with queryCommandEnabled function in
clipboard plugin, so I propose a solution to you.
function stateFromNamedCommand( command, editor )
{
// IE Bug: queryCommandEnabled('paste') fires also
'beforepaste(copy/cut)',
// guard to distinguish from the ordinary sources( either
// keyboard paste or execCommand ) (#4874).
CKEDITOR.env.ie && ( depressBeforeEvent = 1 );
var retval = CKEDITOR.TRISTATE_OFF;
try {retval = editor.document.$.queryCommandEnabled( command ) ||
CKEDITOR.env.webkit && editor.getSelection().getRanges()[0].startOffset !=
editor.getSelection().getRanges()[0].endOffset ? CKEDITOR.TRISTATE_OFF :
CKEDITOR.TRISTATE_DISABLED;}catch( er ){}
depressBeforeEvent = 0;
return retval;
}
Change History (13)
Status: |
new →
confirmed
|
Version: |
→ 3.5.1
|
Owner: |
set to Piotrek Koszuliński
|
Status: |
confirmed →
review
|
Version: |
3.5.1 →
3.6.4 (SVN - trunk)
|
Milestone: |
→ CKEditor 3.6.4
|
Component: |
General →
UI : Toolbar
|
Keywords: |
HasPatch removed
|
Status: |
review →
review_passed
|
Resolution: |
→ fixed
|
Status: |
review_passed →
closed
|
Version: |
3.6.4 (SVN - trunk) →
3.5.1
|
Reproducible from CKEditor 3.5.1 rev [6311]