AddTabJS

Creates a new tab in the web editor with the specified name and content. Returns a JavaScript command that adds a new tab to the editor with the provided script content.

Usage:

Api.misc.AddTabJS(string name, string content);

Example:

string tabName = "MyScript";
string scriptContent = "print('Hello from new tab!')";
string jsCommand = Api.misc.AddTabJS(tabName, scriptContent);
// Returns: addTab("MyScript", "print('Hello from new tab!')")

Last updated