Bug #1487
closedWt internal error: with WTextEdit when calling setEmptyText
0%
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.
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
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
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.
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
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.
Updated by Koen Deforche over 11 years ago
- Target version changed from 3.3.0 to 3.3.1
Updated by Koen Deforche about 11 years ago
- Target version changed from 3.3.1 to 3.3.2
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.
Updated by Koen Deforche over 10 years ago
- Status changed from Resolved to Closed