eWebEditor Home >> eWebEditor Manual V11.2 >> Developer Guide >> Object Reference of EWEBEDITOR >> Properties and Methods of EWEBEDITOR

3.6.2.6 Automatic Replacement Event of EWEBEDITOR

EWEBEDITOR has enabled the function of replacing the automatic style class name by default, it can automatically replace the text box of <textarea class="ewebeditor"> on the page. You can use the property of EWEBEDITOR to set the default name, or turn off this feature.

<head>

<script type="text/javascript">

// replace all <textarea class="myclassname">

EWEBEDITOR.ReplaceByClassName = "myclassname";

 

// Disable replace by class

EWEBEDITOR.ReplaceByClassEnabled = false;

 

// Set config

EWEBEDITOR.Config = {style:"blue1", width:"600", height:"400"};

</script>

</head>