Use below sample code to integrate FCKEditor with liferay and replace with your value :
<liferay-ui:input-editor /><input
name="directoryDescription" type="hidden" />
<script>
function <portlet:namespace />initEditor() {
var content = '<%=productDirectory!=null ? UnicodeFormatter.toString(productDirectory.getDirectoryDesc()) : "" %>';
return content ;
}
function directoryDescription() {
var x = document.<portlet:namespace />fm2.directoryDescription.value = window.<portlet:namespace />editor.getHTML();
}
</script>
<liferay-ui:input-editor /><input
name="directoryDescription" type="hidden" />
<script>
function <portlet:namespace />initEditor() {
var content = '<%=productDirectory!=null ? UnicodeFormatter.toString(productDirectory.getDirectoryDesc()) : "" %>';
return content ;
}
function directoryDescription() {
var x = document.<portlet:namespace />fm2.directoryDescription.value = window.<portlet:namespace />editor.getHTML();
}
</script>