'TinyMCE commands from JavaScritp not editor?

Is it possible to send TinyMCE a command from another JavaScript script? I mean the commands like bold or coloring of text, insert table, undo, etc. Thanks



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source