Welcome to the React feedback portal. We’re happy you’re here! If you have feedback on how to improve the React, we’d love to hear it!>
Thanks for joining our community and helping improve Syncfusion products!
In the documentation example of a custom tool in the rich text editor the custom tool button doesn't get disabled when toggling into Source Code mode. See attached image.

However on the SyncFusion demos site the demo of the same functionality has different code where it is disabled:
https://ej2.syncfusion.com/react/demos/#/material/rich-text-editor/insert-special-characters
... that demo appears to use actionCompleteHandler to add/remove "e-overlay" from the custom tool.
However when looking into the issue prior to finding that demo I found that you don't need to use actionCompleteHandler - if you set the property "command" to the string "Custom" on the custom tool then it will get handled automatically.
I found this when looking at getTBarItemsIndex which will not include in its results any tool of type object unless it has "command" set to "Custom" - see line 280