Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
Anonymous (not verified) CreditAttribution: Anonymous commentedthanks 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.
Comment #2
Homeowner One CreditAttribution: Homeowner One commentedAdding 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.
Comment #3
pmaguniaGood 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.
Comment #4
Anonymous (not verified) CreditAttribution: Anonymous commentedpmagunia - thanks for the feedback.
Comment #5
pmaguniayou're welcome