Project

General

Profile

Actions

Bug #1487

closed

Wt internal error: with WTextEdit when calling setEmptyText

Added by Mamadou Babaei about 12 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
10/19/2012
Due date:
% Done:

0%

Estimated time:

Description

When you have WTextEdit calling setEmptyText on the widget causing this error:

Wt internal error: TypeError: Object [object Object] has no method 'render', code: undefined, description: undefined.

I tried both git version and 3.2.3-rc1.

Actions #1

Updated by Koen Deforche about 12 years ago

  • Status changed from New to InProgress
  • Assignee set to Koen Deforche
  • Target version set to 3.2.3
Actions #2

Updated by Koen Deforche about 12 years ago

Hey,

WTextEdit::setEmptyText() is not actually implemented (nor is it possible, unless TinyMCE has support for this). We should probably indicate this in the documentation.

Regards,

koen

Actions #3

Updated by Mamadou Babaei about 12 years ago

Hi Koen,

Yeah I realized that it is not working because of TinyMCE. But using setEmptyText with older versions was safe and it was behaved like setText.

Actions #4

Updated by Koen Deforche about 12 years ago

  • Status changed from InProgress to Feedback
  • Target version changed from 3.2.3 to 3.3.0

Hey,

I'm not sure if this can be fixed. Making it behave like setText() is not correct either, it would seem to me ?

Regards,

koen

Actions #5

Updated by Mamadou Babaei about 12 years ago

Hi,

Then why setEmptyText() is there?? when it has no use. Maybe you should deprecate or remove it from WTextEdit class until TinyMCE has support for it. It's confusing.

Actions #6

Updated by Koen Deforche over 11 years ago

  • Target version changed from 3.3.0 to 3.3.1
Actions #7

Updated by Koen Deforche about 11 years ago

  • Target version changed from 3.3.1 to 3.3.2
Actions #8

Updated by Koen Deforche over 10 years ago

  • Status changed from Feedback to Resolved

It's now documented that WTextEdit::setPlaceholderText() does not work, and it throws an exception.

Actions #9

Updated by Koen Deforche over 10 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF