Documentation > CMS Template API Library > WysiwygParams > AddButton(FeatureType)

AddButton

This function is used to add a button to the wysiwyg.

public System.Void AddButton(FeatureType)

Parameters

NameDescriptionType
button The button to add. CrownPeak.CMSAPI.FeatureType

Code Example

C#

Sample:

            
             WysiwygParams wParams = new WysiwygParams();
             wParams.AddButton(FeatureType.copy);
             wParams.AddButton(FeatureType.cut);
             wParams.AddButton(FeatureType.paste);
             wParams.AddButton(FeatureType.Separator);
             Input.ShowWysiwyg("Page Body", "page_body", wParams);    
            
            

Connect with Crownpeak