Param

Method

Event

 

 

SetActiveTab v1.1 or higher

Specifies the active tab when CrossEditor is loaded.

 

Syntax

    HRESULT SetActiveTab(
    long newVal
    );

Parameters

[put] newVal

[in] Specifies the tabs to be displayed.

0

Edit tab

1

HTML tab

2

Preview tab

 

Return Values

Returns the currently set value.

 

Remarks

For this method to be called successfully, it must be called after the Main class is called and the editor is loaded.

 

Sample Code

JavaScript

var object = new NamoSE("test");
object.editorStart();
object.SetActiveTab(2);