I have one visualforce page and trying to display only Notes
as a Richtextarea
but not sure why all TextArea
are replacing with the rich text
When i am clicking on Add Product Button then all textarea displayed on the page is replaced with the richtextarea don't know why....
Can anyone please take a look into this ?
function ReloadCKEditor() {{
$(".ckeditor").each(function(){ CKEDITOR.replace('ckeditor1');} );
}
<apex:commandButton value="Add Product" action="{!AddProduct}" rerender="theForm" oncomplete="ReloadCKEditor();">
<apex:param name="ProductIndex" value="{!G.Index}"/>
</apex:commandButton>
<apex:column breakBefore="true" colspan="5">
<apex:outputLabel value="Note : " style="font-weight:bold;" />
<apex:includescript value="{!URLFOR($Resource.CKEditor, 'ckeditor/ckeditor.js')}" />
<apex:inputTextarea id="ckeditor1" styleClass="ckeditor" richtext="false" value="{!PW.TempProductSelection.RichTextArea__c}" >
</apex:inputTextarea>
</apex:column>