When im using ckeditor for the shoutbox the first time i press "Shout" it says "Enter a message", then i press again shout and it submits normally, In plain text this doesn't happend.

Comments

Drupality’s picture

Version: 6.x-2.x-dev » 6.x-2.7

I have the same problem with V2.7
It is related to the CKEditor in my case. For some reason, the original textarea stays empty when you type something in the CKE textarea.

So i tried to fill the textarea myself with javascript in Drupal.shoutbox.validate function:

// Check if the CKEditor is attached to the textarea, and write the data in the textarea
if(CKEDITOR.instances[jqForm[0].message.id])
{
form.message.value = CKEDITOR.instances[jqForm[0].message.id].getData();
}

This would prevent the errormessage that the field is empty even if you typed already something. Sadly, it dont fix the problem that you need to shout two times to get the text into the records.

Has anyone a solution to this ?

Drupality’s picture

Assigned: Unassigned » Drupality
vitalblue’s picture

Issue summary: View changes
Status: Active » Closed (outdated)