You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For some predefined commands, has a new name and old name. It tells the user to use the new one as preferred.
If choosing the new command name to extend, will not works, that because of old names in the internal.
The reason is: In commands/index.js, the added or extended commands are the newly created views (extends from CommandAbstract).
Here is my code snippet, it not works if the defaultCommand option value is select-comp
constCommand=editor.Commands.get('core:component-select')editor.Commands.extend('core:component-select',{// Overwrite this private method to make the toolbar conditionally display.updateToolbar(mod){
...
Command.updateToolbar.call(this,mod)}})
The text was updated successfully, but these errors were encountered:
For some predefined commands, has a new name and old name. It tells the user to use the new one as preferred.
If choosing the new command name to extend, will not works, that because of old names in the internal.
The reason is: In
commands/index.js
, the added or extended commands are the newly created views (extends fromCommandAbstract
).Here is my code snippet, it not works if the
defaultCommand
option value isselect-comp
The text was updated successfully, but these errors were encountered: