Commands that can split a block or modify it's position (indent/unindent) should not be called when the editor is in embedded block mode.
This takes care of redirecting the command if possible (see WithOnTriggerByEmbeddedBlockOptions.onTriggerByEmbeddedBlock), otherwise it logs a warning.
If the command should not be called at all and offers no redirect, don't pass the redirect parameter and it will log a different warning.
Commands that can split a block or modify it's position (indent/unindent) should not be called when the editor is in embedded block mode.
This takes care of redirecting the command if possible (see WithOnTriggerByEmbeddedBlockOptions.onTriggerByEmbeddedBlock), otherwise it logs a warning.
If the command should not be called at all and offers no redirect, don't pass the redirect parameter and it will log a different warning.
You can use it in a command like this: