BattleMaster Community

BattleMaster => BM General Discussion => Topic started by: Tom on April 04, 2012, 01:53:44 PM

Title: New Editor
Post by: Tom on April 04, 2012, 01:53:44 PM
Ok, I need the community here.

What is the problem with the new editor? I simply don't get it. I've been using it myself for quite a while now and I have no idea how people manage to mess up linebreaks, get HTML code into their messages or whatever the other issues are.

I really don't get it. But I need to in order to fix the problems, if there are any. So please help me out by telling me PRECISELY, STEP-BY-STEP how you do it. How do you manage to mess up the linebreaks? How do you get HTML code into your messages? Tell me.

Title: Re: New Editor
Post by: Indirik on April 04, 2012, 03:02:50 PM
One problem I have, not sure if this is the editor or something else in the message system: When using the mobile site from my Android phone (stock browser), all line breaks are stripped out. Your message is sent as one long paragraph.
Title: Re: New Editor
Post by: Velax on April 04, 2012, 03:23:00 PM
I get that as well, using the Mercury browser on my iPad. I have to specifically go and put the "br" tags in there. Just hitting ENTER means the line breaks get stripped out when I send the letter.

Edit: This is when using the mobile site.
Title: Re: New Editor
Post by: Anaris on April 04, 2012, 03:32:36 PM
I believe that these issues are related to the fact that the newly-updated poll code attempts to send poll notification messages with line break tags in them, but they all get stripped out.
Title: Re: New Editor
Post by: Indirik on April 04, 2012, 04:20:21 PM
Another issue I just remembered relates to using italics/bold with the keyboard shortcuts. Type a few words, then turn on bold (ctrl+b), then type a few more words. Then hit the left arrow key like you're going to go back and fix a typo. You will see that the cursor is actually still back where it was when you turned on bold text.
Title: Re: New Editor
Post by: vonGenf on April 04, 2012, 05:11:05 PM
When typing plain text, my main issues are:

-When I use m.battlemaster.org, all formatting disappears and my text is sent as one long paragraph. This occurs with chrome on a computer.

-I often write long texts in an external text editor (notepad type, ascii files or rtf files) and I copy them in the game editor when I'm ready to send them. When I do that, all line breaks are doubled and the spacing between paragraphs becomes too large.
Title: Re: New Editor
Post by: LilWolf on April 04, 2012, 05:21:35 PM
Quote from: vonGenf on April 04, 2012, 05:11:05 PM
-I often write long texts in an external text editor (notepad type, ascii files or rtf files) and I copy them in the game editor when I'm ready to send them. When I do that, all line breaks are doubled and the spacing between paragraphs becomes too large.

The editor really should default to paste-as-plain-text. The fact a copied message from in-game looks messed up(sender becomes invisible due to color issues etc.) in the editor without taking extra steps is an annoyance. It would also probably solve issues like the one vonGenf mentioned.
Title: Re: New Editor
Post by: egamma on April 04, 2012, 08:16:55 PM
Quote from: vonGenf on April 04, 2012, 05:11:05 PM
-I often write long texts in an external text editor (notepad type, ascii files or rtf files) and I copy them in the game editor when I'm ready to send them. When I do that, all line breaks are doubled and the spacing between paragraphs becomes too large.

That looks like a CR+LF problem, common between windows and linux type systems. Windows uses CR+LF as a single line feed, and Linux treats it as two separate line feeds.
Title: Re: New Editor
Post by: Perth on April 04, 2012, 08:33:12 PM
When using keyboard shortcuts for bold or italics (ctrl + b, ctril + i), often times when turning the bold/italics off via the same keyboard shortcut and then continue typing, for some reason it will fail to turn off the bold/italics. It usually takes me finishing what I am typing and then highlighting it and actually clicking the bold/italics button.

I use Firefox with OS X 10.7.
Title: Re: New Editor
Post by: Peri on April 05, 2012, 12:21:37 AM
A problem no one seem to have mentioned is that lengthy messages are cut down without warning. Before there was the double warning of the character count and the line break added when previewing a long message. Now, once preview is hit, the text which doesn't fit simply disappears.

Also, very useful plugins such as Lazarus form recovery do not work. (at least not with chrome on mac os x and win 7). Probably that's nothing that can be fixed by you anyway, just wanted to remind it.
Title: Re: New Editor
Post by: Indirik on April 05, 2012, 01:23:03 AM
The cutting of messages short is especially an issue when including pasted text. The text is pasted as rich text, with HTML markup included. It is truncated before disallowed code is stripped. For example, try copy/pasting a dozen scout reports. Over half will get chopped, but the returned text will have well under 5k characters.
Title: Re: New Editor
Post by: Lorgan on April 05, 2012, 02:14:29 AM
I've grown used to it. And honestly, playing mainly on testing, it feels weird to type in the old message box. The new one really is way handier when it comes to underlining, quoting etc. If it works as intended.

I often have that I write something in italic, then turn italics off, but that action puts my mouse back at the front of the letter and where I was typing, it's still italics.

I've learned to circumvent it by just selecting what I want to put in italics, or what I wanted to quote after I've written my letter, which is still a lot more user-friendly than the html.
Title: Re: New Editor
Post by: Chenier on April 05, 2012, 02:52:28 AM
Quote from: LilWolf on April 04, 2012, 05:21:35 PM
The editor really should default to paste-as-plain-text. The fact a copied message from in-game looks messed up(sender becomes invisible due to color issues etc.) in the editor without taking extra steps is an annoyance. It would also probably solve issues like the one vonGenf mentioned.

I wish it would keep the formatting, but strip the colors (which don't get sent), if that's at all possible. Keeping the bold is really nice to transfer messages, makes it easier to spot where they start and end.
Title: Re: New Editor
Post by: Tom on April 05, 2012, 11:25:19 AM
If we had a javascript hacker, all kinds of modifications would be easy.


I largely take it that a lot of the issues are from differences between the editors and once you get used to the new one, most stuff works. One more reason to update stable very soon.

Title: Re: New Editor
Post by: Tom on April 05, 2012, 01:13:12 PM
Quote from: Indirik on April 04, 2012, 03:02:50 PM
One problem I have, not sure if this is the editor or something else in the message system: When using the mobile site from my Android phone (stock browser), all line breaks are stripped out. Your message is sent as one long paragraph.

This will be fixed in the next update.


Quote from: LilWolf on April 04, 2012, 05:21:35 PM
The editor really should default to paste-as-plain-text.

It will in the next update.


Quote from: Indirik on April 04, 2012, 04:20:21 PM
Type a few words, then turn on bold (ctrl+b), then type a few more words. Then hit the left arrow key like you're going to go back and fix a typo. You will see that the cursor is actually still back where it was when you turned on bold text.

Can't reproduce this despite trying several times.


Quote from: Perth on April 04, 2012, 08:33:12 PM
When using keyboard shortcuts for bold or italics (ctrl + b, ctril + i), often times when turning the bold/italics off via the same keyboard shortcut and then continue typing, for some reason it will fail to turn off the bold/italics.

Some browser and OS as you, but can't reproduce.
Title: Re: New Editor
Post by: Tom on April 05, 2012, 01:14:59 PM
Quote from: vonGenf on April 04, 2012, 05:11:05 PM
-I often write long texts in an external text editor (notepad type, ascii files or rtf files) and I copy them in the game editor when I'm ready to send them. When I do that, all line breaks are doubled and the spacing between paragraphs becomes too large.

Can you give me an example to reproduce this problem with? Attach here as a file to ensure that the forum doesn't change the formating.
Title: Re: New Editor
Post by: vonGenf on April 05, 2012, 03:53:56 PM
Here's one.

Strangely I wasn't able to reproduce it today. There must be something I do that triggers it; I'm not yet sure what exactly.