feat: add APIs to enable/disable spell checker (#26276)
* feat: add APIs to enable/disable bulitin spell checker * feat: add togglespellchecker menu item role
This commit is contained in:
parent
f77b56e926
commit
bb3fb548d8
9 changed files with 97 additions and 5 deletions
|
@ -17,7 +17,9 @@ Menu.prototype._init = function () {
|
|||
};
|
||||
|
||||
Menu.prototype._isCommandIdChecked = function (id) {
|
||||
return this.commandsMap[id] ? this.commandsMap[id].checked : false;
|
||||
const item = this.commandsMap[id];
|
||||
if (!item) return false;
|
||||
return item.getCheckStatus();
|
||||
};
|
||||
|
||||
Menu.prototype._isCommandIdEnabled = function (id) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue