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.

Balise [justify] problem in sceditor?

4 posters

Go down

Solved Balise [justify] problem in sceditor?

Post by Shek September 2nd 2014, 11:31 pm

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, 8:38 pm; edited 1 time in total
Shek
Shek
Active Poster

Male Posts : 1679
Reputation : 60
Language : Portuguese and English
Location : Brazil

https://publipos.net

Back to top Go down

Solved Re: Balise [justify] problem in sceditor?

Post by Ramdaman September 3rd 2014, 12:18 am

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, 4:52 pm; edited 1 time in total
Ramdaman
Ramdaman
Active Poster

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

http://ndihme.forumotion.com/forum

Back to top Go down

Solved Re: Balise [justify] problem in sceditor?

Post by Ange Tuteur September 3rd 2014, 12:36 am

@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. ^^
Ange Tuteur
Ange Tuteur
Forumaster

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

https://fmdesign.forumotion.com

Back to top Go down

Solved Re: Balise [justify] problem in sceditor?

Post by Shek September 3rd 2014, 4:24 pm

Thanks Ramdaman and Age...

Age, but without the code then see that it is a technical problem that we can not fix alone. Wink
Shek
Shek
Active Poster

Male Posts : 1679
Reputation : 60
Language : Portuguese and English
Location : Brazil

https://publipos.net

Back to top Go down

Solved Re: Balise [justify] problem in sceditor?

Post by Ange Tuteur September 3rd 2014, 10:00 pm

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.
Ange Tuteur
Ange Tuteur
Forumaster

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

https://fmdesign.forumotion.com

Back to top Go down

Solved Re: Balise [justify] problem in sceditor?

Post by Shek September 5th 2014, 12:27 am

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

Thanks Age... Smile
Shek
Shek
Active Poster

Male Posts : 1679
Reputation : 60
Language : Portuguese and English
Location : Brazil

https://publipos.net

Back to top Go down

Solved Re: Balise [justify] problem in sceditor?

Post by Ange Tuteur September 5th 2014, 1:17 am

Perhaps, however, I believe that the BR directly after the justified DIV element should not be ignored. It could be an error.
Ange Tuteur
Ange Tuteur
Forumaster

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

https://fmdesign.forumotion.com

Back to top Go down

Solved Re: Balise [justify] problem in sceditor?

Post by Shek September 11th 2014, 8:36 pm

Okay, thanks a lot friend. Wink Solved!
Shek
Shek
Active Poster

Male Posts : 1679
Reputation : 60
Language : Portuguese and English
Location : Brazil

https://publipos.net

Back to top Go down

Solved Re: Balise [justify] problem in sceditor?

Post by Derri September 11th 2014, 9:07 pm

Topic solved and archived
Derri
Derri
Helper
Helper

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

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum