eWebEditor Home >> eWebEditor Manual V8.0 >> Developer Guide >> Object Reference of EWEBEDITOR >> Properties and Methods of EWEBEDITOR.editor

3.6.5.2 Hide Method

Functional Description:

Hide or show the editor instance which has been created.

Method prototype:

editor.Hide( b_Hide )

Parameters Description:

Parameters

Types

Required

Explanation

b_Hide

boolean

No

1. If it's not set or set to be false, it will show the editor.

2. If it's set to be true, it will hide the editor.

Return Value:

       None

Sample Code:

<head>

<script type="text/javascript">

function HideEditor(){

       var editor = EWEBEDITOR.Instances["textarea1"];

       editor.Hide(true);      //Hide Editor

       editor = null;

}

</script>

</head>

<body>

<textarea name="textarea1"></textarea>

<script type="text/javascript">

       EWEBEDITOR.replace("textarea1");

</script>

 

<input type="button" value="Hide Editor" onclick="HideEditor()">

</body>