Project

General

Profile

Improvements #11249

Improvements #11272: WTextEdit / TinyMCE improvements

Support Wt::WTextEdit::setPlaceholderText

Added by Dries Mys 2 months ago. Updated 2 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
Start date:
01/16/2023
Due date:
% Done:

0%

Estimated time:

Description

Supporting placeholders should be quite easy: just call the base implementation.

The textarea placeholder is supported from TinyMCE 5.2:

If the editor is initialized on a textarea element, the placeholder attribute can be used instead.

see:

Not sure if we still need to support TinyMCE 4, one possibility is to only throw the error when TinyMCE 4 is used.

#1

Updated by Roel Standaert 2 months ago

  • Target version set to future
  • Parent task set to #11272
#2

Updated by Dries Mys 2 months ago

Note that the proposed solution only works for setting the placeholder on first render, but TinyMCE does not seem to have an official method to change the placeholder after creation.

Also available in: Atom PDF