Wedge

Public area => Bug reports => The Pub => Archived fixes => Topic started by: Pandos on March 3rd, 2014, 12:31 PM

Title: [Full Editor] Text is empty error
Post by: Pandos on March 3rd, 2014, 12:31 PM
Write a line in Quick reply and switch to the full editor.
Then paste your line again and click submit.
Error: Text is empty.
Title: Re: [Full Editor] Text is empty error
Post by: Nao on March 3rd, 2014, 12:38 PM
Paste your line again..?
It doesn't delete anything when I click Switch to full editor, so I don't have to paste..?
Title: Re: [Full Editor] Text is empty error
Post by: Pandos on March 3rd, 2014, 12:52 PM
When I'm writing a line in quick reply and then switch to full editor, the text is gone.
Title: Re: [Full Editor] Text is empty error
Post by: MultiformeIngegno on March 3rd, 2014, 01:36 PM
I tried here from iOS but can't reproduce
Title: Re: [Full Editor] Text is empty error
Post by: Pandos on March 3rd, 2014, 01:43 PM
That's odd. Tested with Chrome and IE. Both the same here on wedge.org.
Title: Re: [Full Editor] Text is empty error
Post by: Nao on March 3rd, 2014, 02:29 PM
I don't get it.
Tried in ie10 and chrome mobile. Nothing disappears when switching modes...
Title: Re: [Full Editor] Text is empty error
Post by: CerealGuy on March 3rd, 2014, 03:31 PM
Cant reproduce with firefox 27 on linux.
Title: Re: [Full Editor] Text is empty error
Post by: Drunken Clam on March 3rd, 2014, 04:20 PM
Working fine here on Chrome Version 34.0.1847.11 beta-m
Title: Re: [Full Editor] Text is empty error
Post by: Pandos on March 3rd, 2014, 04:24 PM
Will give it a try later at home. Perhaps it's my firewall here in office.
Title: Re: [Full Editor] Text is empty error
Post by: Nao on March 3rd, 2014, 05:19 PM
I don't see why your firewall would break it, but... Indeed, I can't think of anything else.
Title: Re: [Full Editor] Text is empty error
Post by: Pandos on March 3rd, 2014, 07:55 PM
Gotcha!
It's an issue with the WYSIWYG editor.
Enabling will break it.
Title: Re: [Full Editor] Text is empty error
Post by: Nao on March 3rd, 2014, 08:29 PM
You mean, enabling it by default in your profile, and then doing Switch to Full Editor with text entered?
Title: Re: [Full Editor] Text is empty error
Post by: Farjo on March 3rd, 2014, 08:30 PM
I can reproduce this too, in the way that you (Nao) describe :cool:
Title: Re: [Full Editor] Text is empty error
Post by: Pandos on March 3rd, 2014, 08:38 PM
Yes.
Title: Re: [Full Editor] Text is empty error
Post by: Nao on March 3rd, 2014, 11:55 PM
Okay, found the problem... It's a Pete bug (September 8, 2010... That's basically 2 weeks after Wedge was started!!)

If Wysiwyg is enabled by default, then the quick reply box is also in Wysiwyg by default.
Wedge thinks otherwise, though, and when you switch to the full editor, it requests a mode change from text to Wysiwyg. Because the text mode has no content (it's all in the contentEditable div), the div is thus replaced with empty content.

I've simply removed the couple of lines that requested the change. It seems to work here. I'll have to test in non-Wysiwyg mode, though... :^^;:

:edit: Working, too.
Title: Re: [Full Editor] Text is empty error
Post by: Farjo on March 4th, 2014, 08:57 AM
Both modes look good to me (and this presumably fixes http://wedge.org/pub/bugs/8282/quick-reply-bug/ also?).
Title: Re: [Full Editor] Text is empty error
Post by: Nao on March 4th, 2014, 09:55 AM
Looks like the same error yeah... only I completely missed that topic! (See how I didn't post in it... usually a bad sign ;))
Title: Re: [Full Editor] Text is empty error
Post by: Pandos on March 4th, 2014, 10:55 AM
*lol*
OK, already mentioned, but completely forgotten by me :)
Title: Re: [Full Editor] Text is empty error
Post by: Nao on March 4th, 2014, 11:19 AM
That's why Farjo's job matters :D