﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
8463	"WebKit: Cut/Copy don't go on ""enabled"" state"	Frederico Caldeira Knabben	Piotrek Koszuliński	"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;
}
}}}"	Bug	closed	Normal	CKEditor 3.6.4	UI : Toolbar	3.5.1	fixed	WebKit	nmaxim@…
