17 October, 2011

Add FCKEditor

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>

Popular Posts

Featured Post

Liferay 7.3 compatibility matrix

Compatibility Matrix Liferay's general policy is to test Liferay Portal CE against newer major releases of operating systems, open s...