This topic was marked solved by Nao, on March 4th, 2014, 11:20 AM
[Full Editor] Text is empty error

Pandos

  • Living on the edge of Wedge
  • Posts: 635
[Full Editor] Text is empty error
« 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.
# dpkg-reconfigure brain
error: brain is not installed or configured

Nao

  • Dadman with a boy
  • Posts: 16,082
[Full Editor] Re: Text is empty error
« Reply #1, 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..?

Pandos

  • Living on the edge of Wedge
  • Posts: 635
[Full Editor] Re: Text is empty error
« Reply #2, 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.

MultiformeIngegno

  • Posts: 1,337
[Full Editor] Re: Text is empty error
« Reply #3, on March 3rd, 2014, 01:36 PM »
I tried here from iOS but can't reproduce

Pandos

  • Living on the edge of Wedge
  • Posts: 635
[Full Editor] Re: Text is empty error
« Reply #4, on March 3rd, 2014, 01:43 PM »
That's odd. Tested with Chrome and IE. Both the same here on wedge.org.

Nao

  • Dadman with a boy
  • Posts: 16,082
[Full Editor] Re: Text is empty error
« Reply #5, on March 3rd, 2014, 02:29 PM »
I don't get it.
Tried in ie10 and chrome mobile. Nothing disappears when switching modes...

CerealGuy

  • Posts: 343
[Full Editor] Re: Text is empty error
« Reply #6, on March 3rd, 2014, 03:31 PM »
Cant reproduce with firefox 27 on linux.

Drunken Clam

  • Drool, drool, drool....!
  • Posts: 154
[Full Editor] Re: Text is empty error
« Reply #7, on March 3rd, 2014, 04:20 PM »
Working fine here on Chrome Version 34.0.1847.11 beta-m

Pandos

  • Living on the edge of Wedge
  • Posts: 635
[Full Editor] Re: Text is empty error
« Reply #8, on March 3rd, 2014, 04:24 PM »
Will give it a try later at home. Perhaps it's my firewall here in office.

Nao

  • Dadman with a boy
  • Posts: 16,082
[Full Editor] Re: Text is empty error
« Reply #9, 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.

Pandos

  • Living on the edge of Wedge
  • Posts: 635
[Full Editor] Re: Text is empty error
« Reply #10, on March 3rd, 2014, 07:55 PM »
Gotcha!
It's an issue with the WYSIWYG editor.
Enabling will break it.

Nao

  • Dadman with a boy
  • Posts: 16,082
[Full Editor] Re: Text is empty error
« Reply #11, 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?

Farjo

  • "a valuable asset to the community"
  • Posts: 492
[Full Editor] Re: Text is empty error
« Reply #12, on March 3rd, 2014, 08:30 PM »
I can reproduce this too, in the way that you (Nao) describe :cool:

Pandos

  • Living on the edge of Wedge
  • Posts: 635

Nao

  • Dadman with a boy
  • Posts: 16,082
[Full Editor] Re: Text is empty error
« Reply #14, 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.