The Zoom dropdown of CuteEditor by default displays a predefined set of zoom
ratios. You can easily modify this default set using the following methods.
|
1: Edit Dropdown Configuration file (Common.config).
You can modify the Zoom element to create your own format block list. Example:
<Zoom> <item text="300%" value="300%"></item> <item text="200%" value="200%"></item> <item text="100%" value="100%"></item> <item text="66%" value="66%"></item> </Zoom> Now the Zoom dropdown contains the following zoom ratios.
|
|
<?php
$editor=new CuteEditor(); $editor->ID="Editor1"; $editor->Text="Type here"; $editor->FilesPath="CuteEditor_Files"; //Programmatically populate the Zoom dropdown $editor->ZoomsList="50%, 75%, 100%"; $editor->Draw(); $editor=null; //use $_POST["Editor1"]to catch the data ?> |