[CKEditor Dev] #8463: WebKit: Cut/Copy don't go on "enabled" state

16 views
Skip to first unread message

CKEditor

unread,
Oct 18, 2011, 5:40:03 AM10/18/11
to ckeditor...@googlegroups.com
#8463: WebKit: Cut/Copy don't go on "enabled" state
-----------------------------+-----------------
Reporter: fredck | Owner:
Type: Bug | Status: new
Priority: Normal | Milestone:
Component: General | Version:
Keywords: WebKit HasPatch |
-----------------------------+-----------------
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;
}
}}}

--
Ticket URL: <http://dev.ckeditor.com/ticket/8463>
CKEditor <http://ckeditor.com/>
The text editor for the Internet

CKEditor

unread,
Oct 18, 2011, 11:26:20 AM10/18/11
to ckeditor...@googlegroups.com
#8463: WebKit: Cut/Copy don't go on "enabled" state
----------------------+-----------------------------
Reporter: fredck | Owner:
Type: Bug | Status: confirmed
Priority: Normal | Milestone:
Component: General | Version: 3.5.1
Resolution: | Keywords: WebKit HasPatch
----------------------+-----------------------------
Changes (by j.swiderski):

* status: new => confirmed
* version: => 3.5.1


Comment:

Reproducible from CKEditor 3.5.1 rev [6311]

--
Ticket URL: <http://dev.ckeditor.com/ticket/8463#comment:1>

CKEditor

unread,
Feb 20, 2012, 9:10:13 AM2/20/12
to ckeditor...@googlegroups.com
#8463: WebKit: Cut/Copy don't go on "enabled" state
----------------------+-----------------------------
Reporter: fredck | Owner:
Type: Bug | Status: confirmed
Priority: Normal | Milestone:
Component: General | Version: 3.5.1
Resolution: | Keywords: WebKit HasPatch
----------------------+-----------------------------

Comment (by Reinmar):

That bug is visible from rev [6311] because in this revision states of
buttons had been bound to what `stateFromNamedComand` is returning. This
function was buggy even before that.

--
Ticket URL: <http://dev.ckeditor.com/ticket/8463#comment:2>

CKEditor

unread,
Jun 4, 2012, 2:45:50 PM6/4/12
to ckeditor...@googlegroups.com
#8463: WebKit: Cut/Copy don't go on "enabled" state
----------------------+-----------------------------
Reporter: fredck | Owner:
Type: Bug | Status: confirmed
Priority: Normal | Milestone:

Component: General | Version: 3.5.1
Resolution: | Keywords: WebKit HasPatch
----------------------+-----------------------------

Comment (by dbrownITR):

Are there any plans to integrate the proposed patch?

--
Ticket URL: <http://dev.ckeditor.com/ticket/8463#comment:3>

CKEditor

unread,
Jun 15, 2012, 11:18:00 AM6/15/12
to ckeditor...@googlegroups.com
#8463: WebKit: Cut/Copy don't go on "enabled" state
----------------------+-----------------------------
Reporter: fredck | Owner:
Type: Bug | Status: confirmed
Priority: Normal | Milestone:

Component: General | Version: 3.5.1
Resolution: | Keywords: WebKit HasPatch
----------------------+-----------------------------

Comment (by astjohn):

I would also like to see a solution for this issue.

--
Ticket URL: <http://dev.ckeditor.com/ticket/8463#comment:4>

CKEditor

unread,
Jun 18, 2012, 9:18:44 AM6/18/12
to ckeditor...@googlegroups.com
#8463: WebKit: Cut/Copy don't go on "enabled" state
----------------------+-----------------------------
Reporter: fredck | Owner: Reinmar
Type: Bug | Status: review
Priority: Normal | Milestone:

Component: General | Version: 3.5.1
Resolution: | Keywords: WebKit HasPatch
----------------------+-----------------------------
Changes (by Reinmar):

* owner: => Reinmar
* status: confirmed => review


Comment:

This issue is already fixed in dev version of next major release
(inaccessible for you).

I ported correct patch to version 3.6.3 - you can apply it if you want, or
wait for new major or bugfixing release.

--
Ticket URL: <http://dev.ckeditor.com/ticket/8463#comment:5>

CKEditor

unread,
Jun 18, 2012, 9:19:05 AM6/18/12
to ckeditor...@googlegroups.com
#8463: WebKit: Cut/Copy don't go on "enabled" state
----------------------+---------------------------------

Reporter: fredck | Owner: Reinmar
Type: Bug | Status: review
Priority: Normal | Milestone:
Component: General | Version: 3.6.4 (SVN - trunk)
Resolution: | Keywords: WebKit HasPatch
----------------------+---------------------------------
Changes (by Reinmar):

* version: 3.5.1 => 3.6.4 (SVN - trunk)


--
Ticket URL: <http://dev.ckeditor.com/ticket/8463#comment:6>

CKEditor

unread,
Jun 18, 2012, 9:23:25 AM6/18/12
to ckeditor...@googlegroups.com
#8463: WebKit: Cut/Copy don't go on "enabled" state
----------------------+---------------------------------
Reporter: fredck | Owner: Reinmar
Type: Bug | Status: review
Priority: Normal | Milestone:

Component: General | Version: 3.6.4 (SVN - trunk)
Resolution: | Keywords: WebKit HasPatch
----------------------+---------------------------------

Comment (by astjohn):

@Reinmar, that's awesome. Thank you for this!

--
Ticket URL: <http://dev.ckeditor.com/ticket/8463#comment:7>

CKEditor

unread,
Jun 18, 2012, 9:37:49 AM6/18/12
to ckeditor...@googlegroups.com
#8463: WebKit: Cut/Copy don't go on "enabled" state
----------------------+---------------------------------
Reporter: fredck | Owner: Reinmar
Type: Bug | Status: review
Priority: Normal | Milestone: CKEditor 3.6.4

Component: General | Version: 3.6.4 (SVN - trunk)
Resolution: | Keywords: WebKit HasPatch
----------------------+---------------------------------
Changes (by garry.yao):

* milestone: => CKEditor 3.6.4


--
Ticket URL: <http://dev.ckeditor.com/ticket/8463#comment:8>

CKEditor

unread,
Jun 20, 2012, 6:31:26 AM6/20/12
to ckeditor...@googlegroups.com
#8463: WebKit: Cut/Copy don't go on "enabled" state
---------------------------+---------------------------------
Reporter: fredck | Owner: Reinmar
Type: Bug | Status: review_passed

Priority: Normal | Milestone: CKEditor 3.6.4
Component: UI : Toolbar | Version: 3.6.4 (SVN - trunk)
Resolution: | Keywords: WebKit
---------------------------+---------------------------------
Changes (by garry.yao):

* keywords: WebKit HasPatch => WebKit
* status: review => review_passed
* component: General => UI : Toolbar


--
Ticket URL: <http://dev.ckeditor.com/ticket/8463#comment:9>

CKEditor

unread,
Jun 21, 2012, 7:46:12 AM6/21/12
to ckeditor...@googlegroups.com
#8463: WebKit: Cut/Copy don't go on "enabled" state
---------------------------+---------------------------------
Reporter: fredck | Owner: Reinmar
Type: Bug | Status: closed

Priority: Normal | Milestone: CKEditor 3.6.4
Component: UI : Toolbar | Version: 3.6.4 (SVN - trunk)
Resolution: fixed | Keywords: WebKit
---------------------------+---------------------------------
Changes (by Reinmar):

* status: review_passed => closed
* resolution: => fixed


Comment:

Fixed with [7504].

--
Ticket URL: <http://dev.ckeditor.com/ticket/8463#comment:10>

CKEditor

unread,
Jul 12, 2012, 3:13:39 AM7/12/12
to ckeditor...@googlegroups.com
#8463: WebKit: Cut/Copy don't go on "enabled" state
---------------------------+----------------------------

Reporter: fredck | Owner: Reinmar
Type: Bug | Status: closed
Priority: Normal | Milestone: CKEditor 3.6.4
Component: UI : Toolbar | Version: 3.5.1
Resolution: fixed | Keywords: WebKit
---------------------------+----------------------------
Changes (by wwalc):

* version: 3.6.4 (SVN - trunk) => 3.5.1


--
Ticket URL: <http://dev.ckeditor.com/ticket/8463#comment:11>

CKEditor

unread,
Jul 16, 2012, 4:21:25 AM7/16/12
to ckeditor...@googlegroups.com
#8463: WebKit: Cut/Copy don't go on "enabled" state
---------------------------+----------------------------
Reporter: fredck | Owner: Reinmar
Type: Bug | Status: closed
Priority: Normal | Milestone: CKEditor 3.6.4
Component: UI : Toolbar | Version: 3.5.1
Resolution: fixed | Keywords: WebKit
---------------------------+----------------------------

Comment (by j.swiderski):

#9143 - there is still a problem when you select content with cursor
placed underneath this content.

--
Ticket URL: <http://dev.ckeditor.com/ticket/8463#comment:12>

Reply all
Reply to author
Forward
0 new messages