I know this has been reported before, but I updated recently from 6.x-1.1 and from the release notes I thought this issue had been addressed.

But apparently it has not, or maybe I am missing something. Here's what happens with my installation:

When I list my drafts on http://www.mysite/drafts/list I can see the body in the list, but when go and edit the draft the body is empty.

That's without the draft_views component, because when I enable it the body field does not even show on the drafts list at all.

Any help will be much appreciated, I have been looking forward to using this module for a while now.

Tx

CommentFileSizeAuthor
#26 fckeditor.png269.93 KBjaganathpanda

Comments

darren.ferguson’s picture

Component: Miscellaneous » Code
Assigned: Unassigned » darren.ferguson

Based off what you are saying the body is being saved in the table using FCKEditor but it seems that the body is not being put back into the Text Box on the site once you go to view a draft correct?

Some information is required to test this since FCKEditor seems to be the one always providing problems.

1. What version of FCKEditor are you using?
2. Are you getting any Javascript errors or warnings?

Not sure why it would not show up in the view but does in the php view since they do exactly the same thing. When you updated the module did you remove the old view before having the draft module views enable?

Also did you completely remove the old drafts folder since the structure of the module changed also in this latest release?

castawaybcn’s picture

wow, thanks for such a quick answer!

You are right: the body contents shows on the drafts list but does not when viewing it.

1. I am using FCKeditor version 6.x-1.3 (module) and 2.6.4 (editor)
2. Not that I am aware of, how could I check?

When I updated the module I did empty the folder with version 6.x-1.1 as usual, but I did not delete the folder itself. Also, when I run update.php I first got an error when I selected the 6001 version for the draft module (something about cron_remove, but I don't remember exactly). I changed it to 6000 and everything worked fine. I can reproduce the whole installation process if you want.

I can also see a large list of drafts saved with the previous version of the module, but none of them show anything in the bodies.

Do not hesitate telling me if any of my explanations are unclear. I am rather new to Drupal and to make things more fun I am not even a native English speaker either, so no offence will be taken ;)

darren.ferguson’s picture

Okay on the update.php can you now run 6001 this seems to be a small issue on my part where i thought it would run 6000 then 6001 together i guess it did not want too.

So you should now be able to run 6001 all this does is update the cron_remove to 1 so it will not remove your drafts from the previous version utilizing Cron.

On the FCKEditor it looks like the data is not getting put back into the FCKEditor but it is coming out of it fine.
Will do some testing on the FCKEditor and will update the module and this thread.

Respectfully,
Darren Ferguson

castawaybcn’s picture

Updated to 6001 successfully (I think): This is the message I got:

The following queries were executed
draft module
Update #6001

    * UPDATE {drafts} SET cron_remove = 1

Checked the drafts after updating and everything remains the same.

Thanks a lot

darren.ferguson’s picture

Okay that looks good it did the update. Will check the FCKEditor module and why it is not working. Something probably has altered in their API

darren.ferguson’s picture

Have created a new version of the FCKEditor code after looking at the FCKEditor documentation.
This code is in CVS and should be in the next development snapshot. If it is good and works for you will commit it as a 6.1.2.2 release of the module since have some small fixes in there also that are required.

When checking please make sure the version from development you download has the Changelog revision for $418314

castawaybcn’s picture

Will do, but since I do not have any CVS client installed at the moment it may not be that quick. I will go through it before the end of the week though.

Should you want to speed things up, you may also post a file in this thread or send it trough email. I do understand this is not the way to go however, just offering an alternative.

Thanks a lot

darren.ferguson’s picture

Will put it in the dev branch it will be available today at some point.
Respectfully,
Darren Ferguson

darren.ferguson’s picture

It is in the dev branch however i have checked fully with FCKEditor 2.6.4 and feel confident it is good so have created a release with this and some other minor fixes in it so you can look on the Draft Module page and retrieve the 6.x-1-3 release updated today. That is the latest release for the module and let me know if the FCKEditor is now working for you.

castawaybcn’s picture

Version: 6.x-1.2 » 6.x-1.3

I have tried and something funny happens. It does show for a split second around

tags, before loading the full FCKeditor interface, and then disappears. Switching to plain text or source (fck interface) does not bring it back. I am not using the views option, I don't know if this would make any difference.

Could it be a filters issue?

And btw, I think you updated the release with the dev file, they seem identical to me and in my installation I am getting an error on the modules page suggesting to install 1.2 instead

darren.ferguson’s picture

Would it be possible to have a web login for your site so i could check what is happening?

It could be that the timing issue is there and the FCKEditor is not 100% loaded but if you can provide a simple user login so i could verify i would appreciate it.

castawaybcn’s picture

ok, but I need to set up a limited user for you and I am a bit busy right now.

I would very much prefer sending you the login data through email though. Use drupal.org's contact form if you do not wish to post it here.

darren.ferguson’s picture

Did testing on the site of castawaybcn and the code only worked once the page stopped loading and then the FCKEditor code is run from the command line.

Going to do some more digging in this one

darren.ferguson’s picture

Thinking this is probably an issue with the FCKEditor not completely being loaded when entering of the value is happening.

darren.ferguson’s picture

Have committed into the Development snapshot for tonight what should be the fix. Apparently the code was looking for the LaunchedJSID but this does not always get set hence it is now going through the FCKEditorAPI object to retrieve the information pertaining to instances on the page.

Will await a confirmation before closing out this issue.

darren.ferguson’s picture

Status: Active » Fixed

Confirmation it now works for FCKEditor
Closing issue

darren.ferguson’s picture

Status: Fixed » Closed (fixed)
ahayrape’s picture

Hello,

I have a problem with FCKeditor saved draft body with Google Chrome.
I create and save a draft of my content (by clicking on 'Save As Draft' button). I can see that the draft is saved in the database. When I am trying to view the draft (draft/list -> View), I get the empty body. When I view the page source, I can see the draft content there, it is just not displayed.

I am using the following versions of the software:
Drupal: 6:13
Draft module: 6.x - 1.7
FCKeditor: 2.6.4.1

Could you please help with this issue?
Thank you in advance,
Arsen.

ahayrape’s picture

Category: bug » support
Priority: Normal » Critical
Status: Closed (fixed) » Active

I don't know whether should I have posted the message in the closed thread but can anyone answer my question please?

jscm’s picture

I have e problem with

WYSIWYG + FCKeditor o CKeditor.

I have:
WYSIWG 6.x-2.x-dev
FCKeditor 2.6.5
CKeditor 3.0.1.4391
draft newest stable version

With this contest it don't save Body.

Do you have suggestions?

thaks

Jerry
Milan (italy)

darren.ferguson’s picture

It has not been tested with any of them, and if someone would like to supply the patch fot this combination i will definitely look at it, but currently i am working on other things and hence this combination is not something i can test quickly or debug.

Patches are definitely welcomed for this thread.

pribeh’s picture

Bump, trying to get it working with CKeditor 3.0.1. I will see what I can do but my php skills are lacking.

darren.ferguson’s picture

Priority: Critical » Normal
Status: Active » Closed (fixed)

For this one everyone states the WSYIWG module is being used, i have not used it and have no plans for using it, however if someone wants to write a patch that includes all the other functionality for the WSYIWYG then i will look at it and make sure it does not break any existing editors and gladly put it into the module, however for me it is not something i had planned at this moment.

ratnesh aarohi’s picture

Version: 6.x-1.3 » 6.x-1.x-dev
Category: support » bug

I came across this module today and installed (dev version) immediately.
i am facing the same problem - the draft list shows that a draft has been (auto) saved - but when i click on it - it does not load in the body of FCK editor 2.6.6) Any clue how do it get it to put the matter saved in the editor in the body field box.

Update:
I do get a "Populating Draft form" message at the top of my drupal page - but my browser shows page loading "done". Is this of help? Is it possible that instance is getting saved but the content is not - how do i find this out?

Further update:
Okay i checked the Mysql table of drafts - it has NULL entries both for title and body.
That means it is not saving anything? What could be going wrong here? (I am using Drupal 6.17 and FCKeditor - 6.x-2.1)

ratnesh aarohi’s picture

update:
when i use the SAVE AS DRAFT button it works fine (it even shows a message saved with id xxx) - it appears in draft/list and when i click on view i get the matter also in the (fckeditor) field.
However the auto save does not seem to save the matter - although the entry is very much there in the draft/list.
How can set this right?

jaganathpanda’s picture

StatusFileSize
new269.93 KB

The bleow is my textarea code and if getting fckeditor on the textarea when ever i am trying to submit this for this text area value is coming as null i.e below this value ...
$form['content']=array(
'#type' => 'textarea',
'#rows' => '15',
'#cols' => '5',
'#title' => 'Email Content',
'#weight'=>8,
'#default_value'=>"  ",
'#id' => 'content_textarea',
'#resizable' => TRUE,
'#name'=>'content_textarea',
);

value:
[communication] => 1
[mark] => 0
[content] =>

[samplepreview] => jagaa@gmail.com
[op] => Save
[submit] => Save
[execute] => Execute
[form_build_id] => form-926c204524e05aa10e16960e8c0dd758
[form_token] => 389b833feadde24b94b866d492152652
[form_id] => my_promotion_form
please find this attachment also...

if any one have solution please let me know its very urgent...thanks