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
4 posters

    Balise [justify] problem in sceditor?

    Shek
    Shek
    Active Poster


    Male Posts : 1697
    Reputation : 61
    Language :  
    Location : Brazil

    Solved Balise [justify] problem in sceditor?

    Post by Shek September 3rd 2014, 00:31

    Hi.

    I received a complaint from an administrator in my support, not being able to use more than one code to justify text in messages.

    He used twice:
    Code:
    [justify]TEXT[/justify]

    [justify]TEXT[/justify]
    By doing this, when the message is sent, ñot there is a line break. Example:
    Code:
    [justify]A [b]Golden Punisher[/b] é uma escopeta rara de NX. É uma das escopetas mais cobiçadas e raramente vistas dentro de Combat Arms. Assim como todas as versões da "Double Barrel", a Golden Punisher pode facilmente matar um inimigo com um tiro dos dois canos. Graças ao seu maior dano e alcance, a arma permite que você acerte os inimigos de uma distância ainda mais longe, sem redução de dano. Um jogador de [i]"camper" (ato do jogador ficar parado esperando possíveis alvos)[/i] pode usar eficazmente as suas estatísticas exclusivas para se esconder nos cantos.[/justify]

    [justify]Embora esta arma tem uma capacidade de apenas duas capsulas e um curto intervalo para uma escopeta, o tempo de saque é extremamente rápido e esquecido. A Golden Punisher e o resto da família "Double Barrel" continua a manter o título das escopetas mais poderosas de Combat Arms, tendo o maior dano por tiro de qualquer arma.[/justify]

    [center][table border=10][tr][td colspan=2][center][size=18][b]Golden Punisher[/b][/size][/center]
    [/td]
    [/tr]
    [/table]
    [/center]
    If you send, because there is no space between one paragraph and another? If you take the code "Justify" and remove, the line break works.

    Is bug? If so, move to the correct subforum, please.


    Last edited by Shek on September 11th 2014, 21:38; edited 1 time in total
    Ramdaman
    Ramdaman
    Active Poster


    Male Posts : 1590
    Reputation : 99
    Language : English, Albanian, Macedonian, Russian | HTML, CSS
    Location : New York City

    Solved Re: Balise [justify] problem in sceditor?

    Post by Ramdaman September 3rd 2014, 01:18

    Hi,

    The bbcode mess up May be because of ScEditor

    Try implementing this JavaScript.

    Credits to Ea from the French Support Team, and to Ange Tuteur for translating.

    Code:
    $(function() {
      var a = $("#text_editor_textarea"), t;
      a.length && (t = a.val()) && $(function() {
        a.sceditor && a.sceditor("instance") && a.sceditor("instance").val(t);
      });
    });


    Last edited by Ramdaman on September 3rd 2014, 17:52; edited 1 time in total
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    Solved Re: Balise [justify] problem in sceditor?

    Post by Ange Tuteur September 3rd 2014, 01:36

    @Shek All the other alignments successfully add a break line where specified. I'm not sure why justify doesn't. For now you can consider it a bug until we get some clarification.

    center

    center

    left

    left

    right

    right

    justify
    justify

    Ramdaman wrote:Hi,

    The bbcode mess up May be because of ScEditor

    Try implementing this JavaScript.

    Credits to Ange Tuteur

    Ea from French Support wrote the tuto and script. I translated it for English members. ^^
    Shek
    Shek
    Active Poster


    Male Posts : 1697
    Reputation : 61
    Language :  
    Location : Brazil

    Solved Re: Balise [justify] problem in sceditor?

    Post by Shek September 3rd 2014, 17:24

    Thanks Ramdaman and Age...

    Age, but without the code then see that it is a technical problem that we can not fix alone. Wink
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    Solved Re: Balise [justify] problem in sceditor?

    Post by Ange Tuteur September 3rd 2014, 23:00

    I don't even think that code would fix this problem. This deals with the submission of the message. A single line break doesn't add a break, but if you insert two it adds one. It's like the line break which is directly after the justify element is being ignored.
    Shek
    Shek
    Active Poster


    Male Posts : 1697
    Reputation : 61
    Language :  
    Location : Brazil

    Solved Re: Balise [justify] problem in sceditor?

    Post by Shek September 5th 2014, 01:27

    I understand. In this case, is the natural behavior of the Editor? I see no other alternative to resolve the situation.

    Thanks Age... Smile
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    Solved Re: Balise [justify] problem in sceditor?

    Post by Ange Tuteur September 5th 2014, 02:17

    Perhaps, however, I believe that the BR directly after the justified DIV element should not be ignored. It could be an error.
    Shek
    Shek
    Active Poster


    Male Posts : 1697
    Reputation : 61
    Language :  
    Location : Brazil

    Solved Re: Balise [justify] problem in sceditor?

    Post by Shek September 11th 2014, 21:36

    Okay, thanks a lot friend. Wink Solved!
    Derri
    Derri
    Helper
    Helper


    Male Posts : 8711
    Reputation : 638
    Language : English & Basic French
    Location : Scotland, United Kingdom

    Solved Re: Balise [justify] problem in sceditor?

    Post by Derri September 11th 2014, 22:07

    Topic solved and archived

      Current date/time is November 14th 2024, 13:23