I was able to get the TinyMCE editor into the chatroom_message_entry_box by adding the following code:

$form['chatroom_message_entry_box_filter']['format'] = filter_form(2);

All the text created with TinyMCE appears in the chat messages after I hit the the submit button but:

  • the submitted text doesn't clear from the entry box
  • the submit button fails to work after that (no more new chat text). I can create new formatted text but the submit button doesn't work

I installed the Ajax plugin for wysiwyg but I still haven't had any luck even after installing other editors

The form does work again once if I refresh the page.

It would be great if I could give my users the features. Any help would be greatly appreciated.

Comments

Anonymous’s picture

thanks for the report.

i'm guessing we have a conflict over js events on the text entry box. if you have any js foo, look into that.

i'll investigate later.

Homeowner One’s picture

Adding WYSIWYG into the chatroom message entry box would be a fun addition for our community --faces, icons, etc.

BTW -thanks to the hard work to produce this code, we've waited a long time to have our own Drupal Chat Room feature.

pmagunia’s picture

Good News. I was able to get a WYSIWYG installed into the chat room text box entry. I don't think the Drupal WYSIWYG modules were working because they weren't jQuery. I installed the Drupal module 'markItUp' and suddenly everything started working normally. I had to configure the settings of where markItUp should appear as the default settings didn't work for the chat room text box, but other than that it was easy to install.

Anonymous’s picture

pmagunia - thanks for the feedback.

pmagunia’s picture

you're welcome