The forum of the forums

Would you like to react to this message? Create an account in a few clicks or log in to continue.
The forum of the forums
3 posters

    how to send a multi-line message in the chat-box

    hbghlyj
    hbghlyj
    Forumember


    Male Posts : 32
    Reputation : 1
    Language : English+Chinese

    Solved how to send a multi-line message in the chat-box

    Post by hbghlyj Fri 20 Aug 2021 - 16:31

    Hello,
    Can I send a multi-line message in the chat-box Smile
    I tried Ctrl+Enter and Shift+Enter but neither starts a new line.
    If it is not supported, is it possible by adding a script to head of the chatbox?
    Also, how can I add a button to refresh manually chatbox (iframe) but not refreshing the parent document (top)?


    Last edited by hbghlyj on Thu 26 Aug 2021 - 16:36; edited 1 time in total
    Ape
    Ape
    Administrator
    Administrator


    Male Posts : 19325
    Reputation : 2005
    Language : fluent in dork / mumbojumbo & English haha

    Solved Re: how to send a multi-line message in the chat-box

    Post by Ape Fri 20 Aug 2021 - 18:17

    Right now NO you can not add a line in the chat box the chat box is made for only small amounts of text at a time.

    It would be nice to have the right to add more lines before you post your comment's

    Some one with good javaScript knowledge could maybe help you but I could not say who could do it.

    Have a great weekend.



    how to send a multi-line message in the chat-box Left1212how to send a multi-line message in the chat-box Center11how to send a multi-line message in the chat-box Right112
    how to send a multi-line message in the chat-box Ape_b110
    how to send a multi-line message in the chat-box Ape1010
    tikky
    tikky
    Forumember


    Posts : 922
    Reputation : 159
    Language : 🇵🇹

    Solved Re: how to send a multi-line message in the chat-box

    Post by tikky Thu 26 Aug 2021 - 16:26

    Hello @hbghlyj,

    Create a new Javascript page in the chatbox and use:
    Code:
    (function($) {
        'use strict';

        $(function() {

            var $message = $('#chatbox_footer').find('[name="message"]');

            $message
                .replaceWith('<textarea id="message" name="message" placeholder="Your message here" class="post" autocomplete="off" style="font-weight: normal; font-style: normal; color: rgb(51, 51, 51);"></textarea>');

        });
    }(jQuery));

    skouliki, Ape, TonnyKamper and hbghlyj like this post

    Ape
    Ape
    Administrator
    Administrator


    Male Posts : 19325
    Reputation : 2005
    Language : fluent in dork / mumbojumbo & English haha

    Solved Re: how to send a multi-line message in the chat-box

    Post by Ape Thu 26 Aug 2021 - 17:49

    Problem solved & topic archived.
    Please read our forum rules: ESF General Rules



    how to send a multi-line message in the chat-box Left1212how to send a multi-line message in the chat-box Center11how to send a multi-line message in the chat-box Right112
    how to send a multi-line message in the chat-box Ape_b110
    how to send a multi-line message in the chat-box Ape1010

      Current date/time is Mon 23 Sep 2024 - 10:17