The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Balise [justify] problem in sceditor?

View previous topic View next topic Go down

Solved Balise [justify] problem in sceditor?

Post by Shek on 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
Active Poster

Male Posts : 1092
Reputation : 31
Language : Portuguese and English
Location : Brazil

http://www.shiftactif.com/

Back to top Go down

Solved Re: Balise [justify] problem in sceditor?

Post by Ramdaman on 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
Active Poster

Male Posts : 1614
Reputation : 96
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 on 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
Forumaster

Male Posts : 13021
Reputation : 2684
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Balise [justify] problem in sceditor?

Post by Shek on 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
Active Poster

Male Posts : 1092
Reputation : 31
Language : Portuguese and English
Location : Brazil

http://www.shiftactif.com/

Back to top Go down

Solved Re: Balise [justify] problem in sceditor?

Post by Ange Tuteur on 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
Forumaster

Male Posts : 13021
Reputation : 2684
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Balise [justify] problem in sceditor?

Post by Shek on 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
Active Poster

Male Posts : 1092
Reputation : 31
Language : Portuguese and English
Location : Brazil

http://www.shiftactif.com/

Back to top Go down

Solved Re: Balise [justify] problem in sceditor?

Post by Ange Tuteur on 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
Forumaster

Male Posts : 13021
Reputation : 2684
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Balise [justify] problem in sceditor?

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

Okay, thanks a lot friend. Wink Solved!

Shek
Active Poster

Male Posts : 1092
Reputation : 31
Language : Portuguese and English
Location : Brazil

http://www.shiftactif.com/

Back to top Go down

Solved Re: Balise [justify] problem in sceditor?

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

Topic solved and archived


Forum Rules : : Forumotion Staff : : Appeal A Warning : : FAQ : : Tips & Tricks : : Forgotten Password/Login Issues
You need one post to send a PM
When your topic has been solved, ensure you mark the topic solved
Never post your email in public


Derri
Administrator
Administrator

Male Posts : 8355
Reputation : 571
Language : English & Basic French
Location : Scotland, United Kingdom

Back to top Go down

View previous topic View next topic Back to top


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