Project

General

Profile

Actions

Improvements #11249

open

Improvements #11272: WTextEdit / TinyMCE improvements

Support Wt::WTextEdit::setPlaceholderText

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

Status:
Review
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.

Actions #2

Updated by Dries Mys about 2 years 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.

Actions

Also available in: Atom PDF