The Coldfusion Open Source Forums
Home | ImageCFC | CFFM | BlogCFM | CFMBB | CFOpenMail / ImapCFC | CFOpenChat
Forums | Profile | Inbox | Members | Chat | Search | Login | RSS
Vivio Technologies Dedicated Hosting
New Topic Reply Subscription Options   Previous Page  Page: 1   Previous Page

Forums: CFFM: NEW Ckeditor problem with save
Created on: 12/22/09 {ts '2013-05-19 23:38:00'} Views: 6400 Replies: 5
NEW Ckeditor problem with save
Posted Tuesday, December 22, 2009 at {ts '2013-05-19 23:38:00'}

Hello,

I have been trying to implement the Ckeditor into your CFFM file manger. I can get it to come up, display properly. it just will not save any content that i type in on the file.

Now if i use the regular <textarea> tag that was provided in your sample documentation, everything works.

The code:
This code i replaced with your form tag in your cffm.cfm file.

<cfoutput>
      <p><a href="javascript:void(0);" onClick="loadDirectoryListing()" class="white">#cffm.resourcekit['Msg.t14']#</A></p>
      <form method="post" onSubmit="return false" id="frmEditFile" name="frmEditFile">
      <input type="hidden" name="editFilename" class="formText" value="#variables.editFilename#">
      <textarea class="cffm_editor" id="editor1" name="editFileContent">#variables.content#</textarea>
<script type="text/javascript">
   CKEDITOR.replace( 'editor1',
      {
      

         filebrowserBrowseUrl : 'cffm.cfm?editorType=cke&EDITOR_RESOURCE_TYPE=file',
         filebrowserImageBrowseUrl : 'cffm.cfm?editorType=cke&EDITOR_RESOURCE_TYPE=image',
         filebrowserFlashBrowseUrl : 'cffm.cfm?editorType=cke&EDITOR_RESOURCE_TYPE=flash',
         filebrowserUploadUrl : 'cffm.cfm?action=QuickUpload&editorType=cke&EDITOR_RESOURCE_TYPE=file',
         filebrowserImageUploadUrl : 'cffm.cfm?action=QuickUpload&editorType=cke&EDITOR_RESOURCE_TYPE=image',
         filebrowserFlashUploadUrl : 'cffm.cfm?action=QuickUpload&editorType=cke&EDITOR_RESOURCE_TYPE=flash'
      }
);
</script>

I also added this to the top of the page:
<script type="text/javascript" src="../ckeditor/ckeditor.js"></script>


Everything looks great and it works just like it is supposed to, but if i click the save button in the form or the save button on the ckeditor.... it will not save the document. However with that said the image uploader and file uploader built into ckeditor works like a champ. I just cannot edit a files contents or code.

One more thing, if i use a regular <textarea> tag for this form, it saves no problems. It just doesnt save with ckeditor.

Thanks for your time.

RE: NEW Ckeditor problem with save
Posted Wednesday, December 30, 2009 at {ts '2013-05-19 15:16:00'}

does it do ANYTHING when you try to save it? Or does the save button just not do anything....

RE: NEW Ckeditor problem with save
Posted Wednesday, December 30, 2009 at {ts '2013-05-19 19:35:00'}

both save buttons do nothing.

If i use the save button that is in the form (form submit button) or if i use the save button within ckeditor, neither of them work.

RE: NEW Ckeditor problem with save
Posted Wednesday, December 30, 2009 at {ts '2013-05-19 19:36:00'}

however if i use a regular form (removing ckeditor) the form saves no problem and all works well.

it only wont save when i use Ckeditor.

RE: NEW Ckeditor problem with save
Posted Wednesday, December 30, 2009 at {ts '2013-05-19 20:38:00'}

rick, i reread your reply and yes the buttons do do something, they take me back to the directory listing when clicked, however the content is not saved.

RE: NEW Ckeditor problem with save
Posted Tuesday, January 10, 2012 at {ts '2013-05-19 01:02:00'}

Is there any update on last question.I am also facing same issue.

New Topic Reply Subscription Options   Previous Page  Page: 1   Previous Page
Subscription Options
Subscription options are available after you log in.

There are 12 active user sessions right now.