# Compliance Check Dialog

> note As of R2 2018 the **CSDialog** dialog is no longer supported. In the previous couple of years, the third party content validating mechanism used by the dialog experienced multiples changes in terms of licensing and API, which made the maintainance of the tool impossible.

Starting from Q3 2010, RadEditor for ASP.NET AJAX offers a new Compliance Check Dialog (CSDialog) to verify the editor content. The compliance check dialog is developed by [HiSoftware](https://www.appgate.com/) and integrates with their Compliance Sheriff tool. The [Accessible Editor](https://demos.telerik.com/aspnet-ajax/editor/examples/accessibleeditor/defaultcs.aspx) demo page shows the RadEditor control with the compliance check tool (the green check mark in the editor toolbar).

Here are the steps to enable the Compliance Check Dialog in your application:

1. Add the button named CSDialog to the toolbar of RadEditor. You can see how to add a button in this article: [Adding Standard Buttons](https://www.telerik.com/products/aspnet-ajax/documentation/controls/editor/functionality/toolbars/buttons/add-standard-buttons).

2. Put the following CSDialog web service declaration in the Web.config file between the <configuration> tags:

```XML
<system.servicemodel>
	<bindings>
	 <customBinding>
	  <binding name="wsHttpEndpointBasic">
	   <textMessageEncoding maxReadPoolSize="64" maxWritePoolSize="16"
	   messageVersion="Soap12" writeEncoding="utf-8">
		<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
		maxBytesPerRead="4096" maxNameTableCharCount="16384" />
	   </textMessageEncoding>
	  </binding>
	 </customBinding>
	 <wsHttpBinding>
	  <binding name="wsHttpEndpointBasic1" closeTimeout="00:01:00"
	  openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
	  bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard"
	  maxBufferPoolSize="524288" maxReceivedMessageSize="524288" messageEncoding="Text"
	  textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false">
	   <readerQuotas maxDepth="32" maxStringContentLength="524288" maxArrayLength="16384"
	   maxBytesPerRead="4096" maxNameTableCharCount="16384" />
	   <reliableSession ordered="true" inactivityTimeout="00:10:00"
	   enabled="false" />
	   <security mode="None" />
	  </binding>
	 </wsHttpBinding>
	</bindings>
	<client>
	 <endpoint binding="customBinding" bindingConfiguration="wsHttpEndpointBasic"
	 contract="BasicServiceReference.Basic" name="wsHttpEndpointBasic" />
	 <endpoint address=http://api.hisoftware.com/Service.svc binding="wsHttpBinding"
	 bindingConfiguration="wsHttpEndpointBasic1" contract="BasicServiceReference.Basic"
	 name="wsHttpEndpointBasic1">
	 </endpoint>
	</client>
</system.servicemodel>
```

To unlock the dialog, contact [HiSoftware](http://www.hisoftware.com/) for a CSApiKey key and register it in the appSetting web.config section as shown below:

```XML
<appSettings>
 <add key="CSApiKey" value="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"/>
</appSettings> 
```
