Opened 13 years ago
Closed 11 years ago
#8274 closed New Feature (fixed)
editor API to query command state
Reported by: | Garry Yao | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | |
Keywords: | v4 | Cc: |
Description
Command state is now updated by the "selectionchange" event only, while it's more of an UI event (which have latency), we need an command API to query the command state explicitly and optionally update it.
Change History (2)
comment:1 Changed 13 years ago by
Status: | new → confirmed |
---|
comment:2 Changed 11 years ago by
Resolution: | → fixed |
---|---|
Status: | confirmed → closed |
Seems to be fixed. One can force selection change check using http://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-forceNextSelectionCheck. Context sensitive commands are always updated accordingly. And if any command needs to be updated more often, one can force that calling
command.refresh()
.