eWebEditor Home >> eWebEditor Manual V11.2 >> Developer Guide >> Object Reference of EWEBEDITOR >> Properties and Methods of EWEBEDITOR 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.


<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"};