enter image description hereI am using longTextarea field in VF page. But i am unable to add any text ,pictures, paste option nothing is working.

<apex:form id="contentform">

<script type="text/javascript" src="{!URLFOR($Resource.CMSForce, '/FCKEditor/fckeditor.js')}"/>
<script type="text/javascript">
    window.onload = function()
        var sBasePath = "{!URLFOR($Resource.CMSForce, '/FCKEditor/')}" ;

        var oFCKeditor = new FCKeditor( '{!$Component.page.contentform.contentblock.contentsection.content}' ) ;
        oFCKeditor.BasePath = sBasePath ;
        oFCKeditor.Config["CustomConfigurationsPath"] = sBasePath + "cmsforcefckconfig.js"  ;
        oFCKeditor.Config['SkinPath'] = sBasePath + 'editor/skins/silver/' ;
        oFCKeditor.Config['ImageBrowserURL'] = '/apex/DocumentManager' ;
        oFCKeditor.Config['LinkBrowserURL'] = '/apex/PageBrowser' ;
        oFCKeditor.Config['FlashBrowser'] = false;
        oFCKeditor.Config['FlashUpload'] = false;
        oFCKeditor.Config['ImageUpload'] = false;
        oFCKeditor.Config['LinkUpload'] = false;
        oFCKeditor.Config['ImageLink'] = false;
        oFCKeditor.Height = '{!IF($CurrentPage.Parameters.console == 'true', '500', '350')}' ;



<apex:pageMessages />

<apex:pageBlock title="Content Block" id="contentblock">
    <apex:pageBlockButtons >
        <apex:commandButton value="Save" action="{!save}"/>
        <apex:commandButton value="Cancel" action="{!cancel}"/>
    <apex:pageBlockSection title="Information" columns="2">
        <apex:inputField value="{!contentblock.Name}"/>
        <apex:inputField value="{!pagetoitem.Page__c}"/>
        <apex:pageBlockSectionItem >
            <apex:outputLabel value="Display in Content Block" for="blocks"/>
            <apex:selectList id="blocks" value="{!pagetoitem.Display_in_Contentblock__c}" size="1">
                <apex:SelectOptions value="{!blocknameselect}"/>
        <apex:inputField value="{!pagetoitem.Order__c}"/>
    <apex:pageBlockSection title="HTML Content" columns="1" id="contentsection">

      <apex:inputtextarea id="content" value="{!contentblock.Content__c}"/>



  • 2
    Check your JavaScript console for errors when the page loads and when you try to take action. – Keith C Jan 9 at 12:24
  • i have added the code in the question..could you you please help on this. Added attachemnt also – Vinothini Murugesh Jan 10 at 6:07
  • Most likely a JavaScript error; JavaScript is case sensitive and in CKEditor (not sure how FCKEditor relates to that) it should be config not Config. Use your browser's "Developer Tools" - there are probably multiple errors. – Keith C Jan 10 at 8:25

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.