Chapter 4. Inside WCM Explorer

CSS
Javascript
CKEditor

Basically, if you want to add a rich text area into your dialogs, you can use addRichtextField method. But sometimes, you want to add the rich text editor by yourself manually. So first you need to use addTextAreaField method and some addition javascript like this

<%
	String[] fieldDescription = ["jcrPath=/node/exo:description"] ;
	uicomponent.addTextAreaField("description", fieldDescription)
%>
<script>
  var instances = CKEDITOR.instances['description'];
  if (instances) instances.destroy(true);
  CKEDITOR.replace('description', {
    toolbar : 'CompleteWCM',
    uiColor : '#9AB8F3'
  });
</script>